diff options
author | Dimitri Stolnikov <horiz0n@gmx.net> | 2013-04-16 21:53:09 +0200 |
---|---|---|
committer | Dimitri Stolnikov <horiz0n@gmx.net> | 2013-04-16 21:53:09 +0200 |
commit | ae2de75272c560ad93c18d541058436b15a3e619 (patch) | |
tree | c3a842c2bed321551e0af3eab89f4867a9881640 /lib | |
parent | afd56f4b5a5c9ac107aaca91364239c0ce61634d (diff) |
cmake: add windows dll resource file
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CMakeLists.txt | 14 | ||||
-rw-r--r-- | lib/gnuradio-osmosdr.rc.in | 55 |
2 files changed, 69 insertions, 0 deletions
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 2f4767f..850a660 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -133,6 +133,20 @@ CONFIGURE_FILE( @ONLY) ######################################################################## +# Set up Windows DLL resource files +######################################################################## +IF(MSVC) + include(${CMAKE_SOURCE_DIR}/cmake/Modules/GrVersion.cmake) + + configure_file( + ${CMAKE_CURRENT_SOURCE_DIR}/gnuradio-osmosdr.rc.in + ${CMAKE_CURRENT_BINARY_DIR}/gnuradio-osmosdr.rc + @ONLY) + + GR_OSMOSDR_APPEND_SRCS(${CMAKE_CURRENT_BINARY_DIR}/gnuradio-osmosdr.rc) +ENDIF(MSVC) + +######################################################################## # Setup libgnuradio-osmosdr library ######################################################################## ADD_LIBRARY(gnuradio-osmosdr SHARED ${gr_osmosdr_srcs}) diff --git a/lib/gnuradio-osmosdr.rc.in b/lib/gnuradio-osmosdr.rc.in new file mode 100644 index 0000000..62fd5ea --- /dev/null +++ b/lib/gnuradio-osmosdr.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-osmosdr" + VALUE "FileVersion", "@VERSION@" + VALUE "InternalName", "gnuradio-osmosdr.dll" + VALUE "LegalCopyright", "Licensed under GPLv3 or any later version" + VALUE "OriginalFilename", "gnuradio-osmosdr.dll" + VALUE "ProductName", "gnuradio-osmosdr" + VALUE "ProductVersion", "@VERSION@" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1200 + END + END |