Autogenerate version numbers on Mac too

This commit is contained in:
Latif Khalifa
2013-11-19 00:25:52 +01:00
parent 7183797e05
commit cce3809a26
4 changed files with 15 additions and 8 deletions

3
.gitignore vendored
View File

@@ -27,4 +27,5 @@ qtcreator-build/
/build-*
/viewer-*
/indra/newview/res/viewerRes.rc
/indra/newview/res/viewerRes_bc.rc
/indra/newview/res/viewerRes_bc.rc
/indra/newview/English.lproj/InfoPlist.strings

View File

@@ -45,6 +45,13 @@ if (WINDOWS)
)
endif (WINDOWS)
if (DARWIN)
configure_file(
${CMAKE_SOURCE_DIR}/newview/English.lproj/InfoPlist.strings.in
${CMAKE_SOURCE_DIR}/newview/English.lproj/InfoPlist.strings
)
endif (DARWIN)
# Compose the version.
set(viewer_VERSION "${vMAJOR}.${vMINOR}.${vPATCH}.${vBUILD}")
if (viewer_VERSION MATCHES "^[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+$")

View File

@@ -1,7 +0,0 @@
/* Localized versions of Info.plist keys */
CFBundleName = "Singularity";
CFBundleShortVersionString = "Singularity Viewer 1.7.0.0";
CFBundleGetInfoString = "Singularity Viewer 1.7.0.0, Copyright 2012 Siana Gearz";

View File

@@ -0,0 +1,6 @@
/* Localized versions of Info.plist keys */
CFBundleName = "Singularity";
CFBundleShortVersionString = "Singularity Viewer ${vMAJOR}.${vMINOR}.${vPATCH}.${vBUILD}";
CFBundleGetInfoString = "Singularity Viewer ${vMAJOR}.${vMINOR}.${vPATCH}.${vBUILD}, Copyright 2012 Siana Gearz";