From Sherman Wilcox, added VS versioning information into libs
This commit is contained in:
parent
2e58416826
commit
f3166c2d96
@ -271,6 +271,15 @@ CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/src/osg/Config.in"
|
||||
# INSTALL_FILES(/include/osg/ FILES "${OPENSCENEGRAPH_CONFIG_HEADER}")
|
||||
|
||||
|
||||
################################################################################
|
||||
# Set Version Info resource file
|
||||
|
||||
IF(WIN32)
|
||||
SET(OPENSCENEGRAPH_VERSIONINFO_RC "${PROJECT_BINARY_DIR}/PlatformSpecifics/Windows/VersionInfo.rc")
|
||||
CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/PlatformSpecifics/Windows/VersionInfo.rc.in"
|
||||
"${OPENSCENEGRAPH_VERSIONINFO_RC}")
|
||||
ENDIF(WIN32)
|
||||
|
||||
################################################################################
|
||||
# Optional build components
|
||||
|
||||
|
117
PlatformSpecifics/Windows/VersionInfo.rc.in
Normal file
117
PlatformSpecifics/Windows/VersionInfo.rc.in
Normal file
@ -0,0 +1,117 @@
|
||||
// Microsoft Visual C++ generated resource script.
|
||||
//
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 1 resource.
|
||||
//
|
||||
#include "afxres.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// English (U.S.) resources
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
||||
#ifdef _WIN32
|
||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
#pragma code_page(1252)
|
||||
#endif //_WIN32
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// TEXTINCLUDE
|
||||
//
|
||||
|
||||
//OLD - Visual C++ generated script
|
||||
//1 TEXTINCLUDE
|
||||
//BEGIN
|
||||
// "resource.h\0"
|
||||
//END
|
||||
//
|
||||
//2 TEXTINCLUDE
|
||||
//BEGIN
|
||||
// "#include ""afxres.h""\r\n"
|
||||
// "\0"
|
||||
//END
|
||||
//
|
||||
//3 TEXTINCLUDE
|
||||
//BEGIN
|
||||
// "\r\n"
|
||||
// "\0"
|
||||
//END
|
||||
//
|
||||
//NEW
|
||||
1 TEXTINCLUDE
|
||||
BEGIN
|
||||
"#include ""afxres.h""\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
2 TEXTINCLUDE
|
||||
BEGIN
|
||||
"\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Version
|
||||
//
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION ${OPENSCENEGRAPH_MAJOR_VERSION}, ${OPENSCENEGRAPH_MINOR_VERSION}, ${OPENSCENEGRAPH_PATCH_VERSION}, ${OPENSCENEGRAPH_SOVERSION}
|
||||
PRODUCTVERSION ${OPENSCENEGRAPH_MAJOR_VERSION}, ${OPENSCENEGRAPH_MINOR_VERSION}, ${OPENSCENEGRAPH_PATCH_VERSION}, ${OPENSCENEGRAPH_SOVERSION}
|
||||
FILEFLAGSMASK 0x17L
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
#else
|
||||
FILEFLAGS 0x0L
|
||||
#endif
|
||||
FILEOS 0x4L
|
||||
FILETYPE 0x0L
|
||||
FILESUBTYPE 0x0L
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904b0"
|
||||
BEGIN
|
||||
VALUE "FileDescription", "OpenSceneGraph Binary"
|
||||
VALUE "FileVersion", "${OPENSCENEGRAPH_MAJOR_VERSION}, ${OPENSCENEGRAPH_MINOR_VERSION}, ${OPENSCENEGRAPH_PATCH_VERSION}, ${OPENSCENEGRAPH_SOVERSION}"
|
||||
VALUE "InternalName", "OSG"
|
||||
VALUE "LegalCopyright", "Copyright (C) 2009"
|
||||
VALUE "OriginalFilename", ""
|
||||
VALUE "ProductName", "OpenSceneGraph"
|
||||
VALUE "ProductVersion", "${OPENSCENEGRAPH_MAJOR_VERSION}, ${OPENSCENEGRAPH_MINOR_VERSION}, ${OPENSCENEGRAPH_PATCH_VERSION}, ${OPENSCENEGRAPH_SOVERSION}"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x409, 1200
|
||||
END
|
||||
END
|
||||
|
||||
#endif // English (U.S.) resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
#ifndef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 3 resource.
|
||||
//
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#endif // not APSTUDIO_INVOKED
|
||||
|
@ -318,6 +318,7 @@ ADD_LIBRARY(${LIB_NAME}
|
||||
VertexProgram.cpp
|
||||
View.cpp
|
||||
Viewport.cpp
|
||||
${OPENSCENEGRAPH_VERSIONINFO_RC}
|
||||
)
|
||||
|
||||
LINK_INTERNAL(${LIB_NAME}
|
||||
|
@ -50,6 +50,7 @@ ADD_LIBRARY(${LIB_NAME}
|
||||
VertexInfluence.cpp
|
||||
UpdateCallback.cpp
|
||||
Timeline.cpp
|
||||
${OPENSCENEGRAPH_VERSIONINFO_RC}
|
||||
)
|
||||
|
||||
LINK_INTERNAL(${LIB_NAME}
|
||||
|
@ -70,6 +70,7 @@ ADD_LIBRARY(${LIB_NAME}
|
||||
SharedStateManager.cpp
|
||||
Version.cpp
|
||||
WriteFile.cpp
|
||||
${OPENSCENEGRAPH_VERSIONINFO_RC}
|
||||
)
|
||||
|
||||
IF(APPLE)
|
||||
|
@ -37,6 +37,7 @@ ADD_LIBRARY(${LIB_NAME}
|
||||
Technique.cpp
|
||||
Validator.cpp
|
||||
Version.cpp
|
||||
${OPENSCENEGRAPH_VERSIONINFO_RC}
|
||||
)
|
||||
|
||||
LINK_INTERNAL(${LIB_NAME}
|
||||
|
@ -48,6 +48,7 @@ ADD_LIBRARY(${LIB_NAME}
|
||||
UFOManipulator.cpp
|
||||
Version.cpp
|
||||
CameraViewSwitchManipulator.cpp
|
||||
${OPENSCENEGRAPH_VERSIONINFO_RC}
|
||||
)
|
||||
|
||||
LINK_INTERNAL(${LIB_NAME}
|
||||
|
@ -54,6 +54,7 @@ ADD_LIBRARY(${LIB_NAME}
|
||||
Utility.cpp
|
||||
Value.cpp
|
||||
Version.cpp
|
||||
${OPENSCENEGRAPH_VERSIONINFO_RC}
|
||||
)
|
||||
|
||||
LINK_INTERNAL(${LIB_NAME}
|
||||
|
@ -57,6 +57,7 @@ ADD_LIBRARY(${LIB_NAME}
|
||||
TranslateAxisDragger.cpp
|
||||
TranslatePlaneDragger.cpp
|
||||
Version.cpp
|
||||
${OPENSCENEGRAPH_VERSIONINFO_RC}
|
||||
)
|
||||
|
||||
LINK_INTERNAL(${LIB_NAME}
|
||||
|
@ -74,6 +74,7 @@ ADD_LIBRARY(${LIB_NAME}
|
||||
SmokeEffect.cpp
|
||||
SmokeTrailEffect.cpp
|
||||
Version.cpp
|
||||
${OPENSCENEGRAPH_VERSIONINFO_RC}
|
||||
)
|
||||
|
||||
LINK_INTERNAL(${LIB_NAME}
|
||||
|
@ -51,6 +51,7 @@ ADD_LIBRARY(${LIB_NAME}
|
||||
MinimalShadowMap.cpp
|
||||
StandardShadowMap.cpp
|
||||
ViewDependentShadowTechnique.cpp
|
||||
${OPENSCENEGRAPH_VERSIONINFO_RC}
|
||||
)
|
||||
|
||||
LINK_INTERNAL(${LIB_NAME}
|
||||
|
@ -62,6 +62,7 @@ ADD_LIBRARY(${LIB_NAME}
|
||||
SphereSegment.cpp
|
||||
Version.cpp
|
||||
VisibilityGroup.cpp
|
||||
${OPENSCENEGRAPH_VERSIONINFO_RC}
|
||||
)
|
||||
|
||||
LINK_INTERNAL(${LIB_NAME}
|
||||
|
@ -29,6 +29,7 @@ ADD_LIBRARY(${LIB_NAME}
|
||||
Terrain.cpp
|
||||
GeometryTechnique.cpp
|
||||
Version.cpp
|
||||
${OPENSCENEGRAPH_VERSIONINFO_RC}
|
||||
)
|
||||
|
||||
LINK_INTERNAL(${LIB_NAME}
|
||||
|
@ -34,6 +34,7 @@ ADD_LIBRARY(${LIB_NAME}
|
||||
Text.cpp
|
||||
Text3D.cpp
|
||||
Version.cpp
|
||||
${OPENSCENEGRAPH_VERSIONINFO_RC}
|
||||
)
|
||||
|
||||
LINK_INTERNAL(${LIB_NAME}
|
||||
|
@ -88,6 +88,7 @@ ADD_LIBRARY(${LIB_NAME}
|
||||
TriStripVisitor.cpp
|
||||
UpdateVisitor.cpp
|
||||
Version.cpp
|
||||
${OPENSCENEGRAPH_VERSIONINFO_RC}
|
||||
)
|
||||
|
||||
LINK_INTERNAL(${LIB_NAME}
|
||||
|
@ -34,6 +34,7 @@ SET(LIB_COMMON_FILES
|
||||
Viewer.cpp
|
||||
ViewerBase.cpp
|
||||
ViewerEventHandlers.cpp
|
||||
${OPENSCENEGRAPH_VERSIONINFO_RC}
|
||||
)
|
||||
|
||||
SET(LIB_EXTRA_LIBS)
|
||||
|
@ -33,6 +33,7 @@ ADD_LIBRARY(${LIB_NAME}
|
||||
Volume.cpp
|
||||
VolumeTechnique.cpp
|
||||
VolumeTile.cpp
|
||||
${OPENSCENEGRAPH_VERSIONINFO_RC}
|
||||
)
|
||||
|
||||
|
||||
|
@ -56,6 +56,7 @@ ADD_LIBRARY(${LIB_NAME}
|
||||
Widget.cpp
|
||||
Window.cpp
|
||||
WindowManager.cpp
|
||||
${OPENSCENEGRAPH_VERSIONINFO_RC}
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user