summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Corgan <nick.corgan@ettus.com>2013-04-12 10:40:18 -0700
committerNicholas Corgan <nick.corgan@ettus.com>2013-04-12 10:40:18 -0700
commit464c98f856b39b2006ec5ef769348065f0fc82b9 (patch)
treee3c434de216cf0017e086fd3c498dcb4fbf67864
parent4d28885465d10b1439b41caf0ac1435f68e1f5a0 (diff)
pmt: added DLL resource file for MSVC
-rw-r--r--gnuradio-runtime/lib/pmt/CMakeLists.txt15
-rw-r--r--gnuradio-runtime/lib/pmt/gnuradio-pmt.rc.in55
2 files changed, 70 insertions, 0 deletions
diff --git a/gnuradio-runtime/lib/pmt/CMakeLists.txt b/gnuradio-runtime/lib/pmt/CMakeLists.txt
index 30a62ead7f..df07db45cb 100644
--- a/gnuradio-runtime/lib/pmt/CMakeLists.txt
+++ b/gnuradio-runtime/lib/pmt/CMakeLists.txt
@@ -85,6 +85,21 @@ list(APPEND gnuradio_pmt_libs
${LOG4CPP_LIBRARIES}
)
+#Add Windows DLL resource file if using MSVC
+if(MSVC)
+ include(${CMAKE_SOURCE_DIR}/cmake/Modules/GrVersion.cmake)
+
+ configure_file(
+ ${CMAKE_CURRENT_SOURCE_DIR}/gnuradio-pmt.rc.in
+ ${CMAKE_CURRENT_BINARY_DIR}/gnuradio-pmt.rc
+ @ONLY)
+
+ list(APPEND gr_pmt_sources
+ ${CMAKE_CURRENT_BINARY_DIR}/gnuradio-pmt.rc
+ )
+endif(MSVC)
+
+
add_library(gnuradio-pmt SHARED ${pmt_sources})
target_link_libraries(gnuradio-pmt ${gnuradio_pmt_libs})
diff --git a/gnuradio-runtime/lib/pmt/gnuradio-pmt.rc.in b/gnuradio-runtime/lib/pmt/gnuradio-pmt.rc.in
new file mode 100644
index 0000000000..242223ef15
--- /dev/null
+++ b/gnuradio-runtime/lib/pmt/gnuradio-pmt.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-pmt"
+ VALUE "FileVersion", "@VERSION@"
+ VALUE "InternalName", "gnuradio-pmt.dll"
+ VALUE "LegalCopyright", "Licensed under GPLv3 or any later version"
+ VALUE "OriginalFilename", "gnuradio-pmt.dll"
+ VALUE "ProductName", "gnuradio-pmt"
+ VALUE "ProductVersion", "@VERSION@"
+ END
+ END
+ BLOCK "VarFileInfo"
+ BEGIN
+ VALUE "Translation", 0x409, 1200
+ END
+ END