summaryrefslogtreecommitdiff
path: root/gnuradio-runtime
diff options
context:
space:
mode:
authorNicholas Corgan <nick.corgan@ettus.com>2013-04-03 13:22:47 -0700
committerNicholas Corgan <nick.corgan@ettus.com>2013-04-03 13:22:47 -0700
commit55dc5e28c5a5835a4e8e444ef94fb6e5e32f354d (patch)
treec401d0d311e66cddd2d279ddb5628d3e1436a730 /gnuradio-runtime
parent23e591100d19b1edb3c4e69a384cf8f4a3ad6ff1 (diff)
runtime: add DLL resource file when using MSVC
Diffstat (limited to 'gnuradio-runtime')
-rw-r--r--gnuradio-runtime/lib/CMakeLists.txt17
-rw-r--r--gnuradio-runtime/lib/gnuradio-runtime.rc.in55
2 files changed, 72 insertions, 0 deletions
diff --git a/gnuradio-runtime/lib/CMakeLists.txt b/gnuradio-runtime/lib/CMakeLists.txt
index 429a5a282..c0f84b209 100644
--- a/gnuradio-runtime/lib/CMakeLists.txt
+++ b/gnuradio-runtime/lib/CMakeLists.txt
@@ -189,6 +189,23 @@ list(APPEND gnuradio_runtime_libs
endif(ENABLE_GR_CTRLPORT)
########################################################################
+# Add DLL resource file when using MSVC
+########################################################################
+
+if(MSVC)
+ include(${CMAKE_SOURCE_DIR}/cmake/Modules/GrVersion.cmake)
+
+ configure_file(
+ ${CMAKE_CURRENT_SOURCE_DIR}/gnuradio-runtime.rc.in
+ ${CMAKE_CURRENT_BINARY_DIR}/gnuradio-runtime.rc
+ @ONLY)
+
+ list(APPEND gnuradio_runtime_sources
+ ${CMAKE_CURRENT_BINARY_DIR}/gnuradio-runtime.rc
+ )
+endif(MSVC)
+
+########################################################################
# Control availability of vmcircbuf methods.
# For now, only allows disabling of shm methods, which cause uncatchable
# segmentation faults on Cygwin with gcc 4.x (x <= 5)
diff --git a/gnuradio-runtime/lib/gnuradio-runtime.rc.in b/gnuradio-runtime/lib/gnuradio-runtime.rc.in
new file mode 100644
index 000000000..361d6a92e
--- /dev/null
+++ b/gnuradio-runtime/lib/gnuradio-runtime.rc.in
@@ -0,0 +1,55 @@
+/* -*- c++ -*- */
+/*
+ * Copyright 2013 Free Software Foundation, Inc.
+ *
+ * This file is part of GNU Radio
+ *
+ * GNU Radio is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3, or (at your option)
+ * any later version.
+ *
+ * GNU Radio is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with GNU Radio; see the file COPYING. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street,
+ * Boston, MA 02110-1301, USA.
+ */
+
+#include <afxres.h>
+
+VS_VERSION_INFO VERSIONINFO
+ FILEVERSION @MAJOR_VERSION@,@API_COMPAT@,@RC_MINOR_VERSION@,@RC_MAINT_VERSION@
+ PRODUCTVERSION @MAJOR_VERSION@,@API_COMPAT@,@RC_MINOR_VERSION@,@RC_MAINT_VERSION@
+ FILEFLAGSMASK 0x3fL
+#ifndef NDEBUG
+ FILEFLAGS 0x0L
+#else
+ FILEFLAGS 0x1L
+#endif
+ FILEOS VOS__WINDOWS32
+ FILETYPE VFT_DLL
+ FILESUBTYPE VFT2_DRV_INSTALLABLE
+ BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "040904b0"
+ BEGIN
+ VALUE "FileDescription", "gnuradio-runtime"
+ VALUE "FileVersion", "@VERSION@"
+ VALUE "InternalName", "gnuradio-runtime.dll"
+ VALUE "LegalCopyright", "Licensed under GPLv3 or any later version"
+ VALUE "OriginalFilename", "gnuradio-runtime.dll"
+ VALUE "ProductName", "gnuradio-runtime"
+ VALUE "ProductVersion", "@VERSION@"
+ END
+ END
+ BLOCK "VarFileInfo"
+ BEGIN
+ VALUE "Translation", 0x409, 1200
+ END
+ END