Embed version information under Windows
parent
c3c0f5028c
commit
3a610d3d66
|
@ -17,6 +17,7 @@ CMakeLists.txt.user
|
||||||
|
|
||||||
# Generated
|
# Generated
|
||||||
assimp.pc
|
assimp.pc
|
||||||
|
assimp.aps
|
||||||
revision.h
|
revision.h
|
||||||
contrib/zlib/zconf.h
|
contrib/zlib/zconf.h
|
||||||
contrib/zlib/zlib.pc
|
contrib/zlib/zlib.pc
|
||||||
|
|
|
@ -145,6 +145,10 @@ SET( Core_SRCS
|
||||||
Assimp.cpp
|
Assimp.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
IF(MSVC)
|
||||||
|
list(APPEND Core_SRCS "res/assimp.rc")
|
||||||
|
ENDIF(MSVC)
|
||||||
|
|
||||||
SET( Logging_SRCS
|
SET( Logging_SRCS
|
||||||
${HEADER_PATH}/DefaultLogger.hpp
|
${HEADER_PATH}/DefaultLogger.hpp
|
||||||
${HEADER_PATH}/LogStream.hpp
|
${HEADER_PATH}/LogStream.hpp
|
||||||
|
|
|
@ -31,8 +31,8 @@ LANGUAGE LANG_GERMAN, SUBLANG_GERMAN
|
||||||
//
|
//
|
||||||
|
|
||||||
VS_VERSION_INFO VERSIONINFO
|
VS_VERSION_INFO VERSIONINFO
|
||||||
FILEVERSION 1,1,SVNRevision, 0
|
FILEVERSION VER_FILEVERSION
|
||||||
PRODUCTVERSION 1,1,SVNRevision,0
|
PRODUCTVERSION VER_FILEVERSION
|
||||||
FILEFLAGSMASK 0x17L
|
FILEFLAGSMASK 0x17L
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
FILEFLAGS 0x1L
|
FILEFLAGS 0x1L
|
||||||
|
@ -50,12 +50,12 @@ BEGIN
|
||||||
VALUE "Comments", "Licensed under a 3-clause BSD license"
|
VALUE "Comments", "Licensed under a 3-clause BSD license"
|
||||||
VALUE "CompanyName", "assimp team"
|
VALUE "CompanyName", "assimp team"
|
||||||
VALUE "FileDescription", "Open Asset Import Library"
|
VALUE "FileDescription", "Open Asset Import Library"
|
||||||
VALUE "FileVersion", 1,1,SVNRevision,0
|
VALUE "FileVersion", VER_FILEVERSION
|
||||||
VALUE "InternalName", "assimp "
|
VALUE "InternalName", "assimp "
|
||||||
VALUE "LegalCopyright", "Copyright (C) 2006-2010"
|
VALUE "LegalCopyright", "Copyright (C) 2006-2010"
|
||||||
VALUE "OriginalFilename", "assimpNN.dll"
|
VALUE "OriginalFilename", "assimpNN.dll"
|
||||||
VALUE "ProductName", "Open Asset Import Library"
|
VALUE "ProductName", "Open Asset Import Library"
|
||||||
VALUE "ProductVersion", 1,1,SVNRevision,0
|
VALUE "ProductVersion", VER_FILEVERSION_STR
|
||||||
,0
|
,0
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
|
|
|
@ -4,4 +4,15 @@
|
||||||
#define GitVersion 0x@GIT_COMMIT_HASH@
|
#define GitVersion 0x@GIT_COMMIT_HASH@
|
||||||
#define GitBranch "@GIT_BRANCH@"
|
#define GitBranch "@GIT_BRANCH@"
|
||||||
|
|
||||||
|
#define VER_MAJOR @ASSIMP_VERSION_MAJOR@
|
||||||
|
#define VER_MINOR @ASSIMP_VERSION_MINOR@
|
||||||
|
#define VER_PATCH @ASSIMP_VERSION_PATCH@
|
||||||
|
#define VER_BUILD @ASSIMP_PACKAGE_VERSION@
|
||||||
|
|
||||||
|
#define STR_HELP(x) #x
|
||||||
|
#define STR(x) STR_HELP(x)
|
||||||
|
|
||||||
|
#define VER_FILEVERSION VER_MAJOR,VER_MINOR,VER_PATCH,VER_BUILD
|
||||||
|
#define VER_FILEVERSION_STR STR(VER_MAJOR) "." STR(VER_MINOR) "." STR(VER_PATCH) "." STR(VER_BUILD)
|
||||||
|
|
||||||
#endif // ASSIMP_REVISION_H_INC
|
#endif // ASSIMP_REVISION_H_INC
|
||||||
|
|
Loading…
Reference in New Issue