Windows: Build updates
- Generate rc files from version.rc.in + CMake variable information in CMakeLists files - Add step to generate .lib file for windows developers - Re-structure tool flag usage, apparently ADD_DEFINTIONS adds them to _ALL_ tools. This is bad for rc files with the windres tool. Needs other platform testing, as the flags have changed to fix Windows rc file generation.
This commit is contained in:
parent
eddc46fd78
commit
54e0bdb62f
5 changed files with 97 additions and 12 deletions
35
windows/version.rc.in
Normal file
35
windows/version.rc.in
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
#include "windows.h"
|
||||
|
||||
1 VERSIONINFO
|
||||
FILEVERSION @VERSION_MAJOR@,@VERSION_MINOR@,@VERSION_PATCH@,0
|
||||
PRODUCTVERSION @VERSION_MAJOR@,@VERSION_MINOR@,@VERSION_PATCH@,0
|
||||
FILEFLAGSMASK 0x3fL
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS VS_FF_DEBUG|VS_FF_PRERELEASE
|
||||
#else
|
||||
FILEFLAGS 0L
|
||||
#endif
|
||||
FILEOS VOS_NT_WINDOWS32
|
||||
FILETYPE @RC_FILE_TYPE@
|
||||
FILESUBTYPE 0x0L
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904e4"
|
||||
BEGIN
|
||||
VALUE "Comments", "@RC_COMMENT@\0"
|
||||
VALUE "CompanyName", "libnfc.org\0"
|
||||
VALUE "FileDescription", "\0"
|
||||
VALUE "FileVersion", "@VERSION_MAJOR@.@VERSION_MINOR@.@VERSION_PATCH@.0\0"
|
||||
VALUE "InternalName", "@RC_INTERNAL_NAME@ @WIN32_MODE@\0"
|
||||
VALUE "LegalCopyright", "Copyright (C) @CURRENT_YEAR@\0"
|
||||
VALUE "OriginalFilename", "@RC_ORIGINAL_NAME@\0"
|
||||
VALUE "ProductName", "@PACKAGE_NAME@ @WIN32_MODE@\0"
|
||||
VALUE "ProductVersion", "@VERSION_MAJOR@.@VERSION_MINOR@.@VERSION_PATCH@.0\0"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x0409, 1252
|
||||
END
|
||||
END
|
||||
Loading…
Add table
Add a link
Reference in a new issue