diff options
| author | Geenz <geenz@geenzo.com> | 2013-05-14 00:53:42 -0400 | 
|---|---|---|
| committer | Geenz <geenz@geenzo.com> | 2013-05-14 00:53:42 -0400 | 
| commit | 45cd21f7e1f87da60bfe16944267371f8a518799 (patch) | |
| tree | fb2f72775f20db1a30ce1fac12d9966c2af751a4 | |
| parent | 3779e51bfc2010877960d11b463c7316514bf991 (diff) | |
Fix incorrect generation of Info.plist.  Use a custom Info.plist template here.
| -rwxr-xr-x | indra/newview/CMakeLists.txt | 25 | ||||
| -rwxr-xr-x | indra/newview/Info-SecondLife.plist | 30 | 
2 files changed, 35 insertions, 20 deletions
| diff --git a/indra/newview/CMakeLists.txt b/indra/newview/CMakeLists.txt index bf0913a06b..221d421f30 100755 --- a/indra/newview/CMakeLists.txt +++ b/indra/newview/CMakeLists.txt @@ -1965,20 +1965,25 @@ if (LINUX)  endif (LINUX)  if (DARWIN) +  # These all get set with PROPERTIES    set(product "Second Life") - +  set(MACOSX_BUNDLE_INFO_STRING "Second Life Viewer") +  set(MACOSX_BUNDLE_ICON_FILE "secondlife.icns") +  set(MACOSX_BUNDLE_GUI_IDENTIFIER "com.secondlife.indra.viewer") +  set(MACOSX_BUNDLE_LONG_VERSION_STRING "${VIEWER_CHANNEL} ${VIEWER_SHORT_VERSION}.${VIEWER_VERSION_REVISION}") +  set(MACOSX_BUNDLE_BUNDLE_NAME "SecondLife") +  set(MACOSX_BUNDLE_SHORT_VERSION_STRING "${VIEWER_SHORT_VERSION}") +  set(MACOSX_BUNDLE_BUNDLE_VERSION "${VIEWER_SHORT_VERSION}${VIEWER_MACOSX_PHASE}${VIEWER_REVISION}") +  set(MACOSX_BUNDLE_COPYRIGHT "Copyright © Linden Research, Inc. 2007") +  set(MACOSX_BUNDLE_NSMAIN_NIB_FILE "SecondLife.nib") +  set(MACOSX_BUNDLE_NSPRINCIPAL_CLASS "NSApplication") +      set_target_properties(      ${VIEWER_BINARY_NAME}      PROPERTIES -    OUTPUT_NAME "${product}" -    MACOSX_BUNDLE_INFO_STRING "Second Life Viewer" -    MACOSX_BUNDLE_ICON_FILE "secondlife.icns" -    MACOSX_BUNDLE_GUI_IDENTIFIER "com.secondlife.indra.viewer" -    MACOSX_BUNDLE_LONG_VERSION_STRING "${VIEWER_CHANNEL} ${VIEWER_SHORT_VERSION}.${VIEWER_VERSION_REVISION}" -    MACOSX_BUNDLE_BUNDLE_NAME "Second Life" -    MACOSX_BUNDLE_SHORT_VERSION_STRING "${VIEWER_SHORT_VERSION}" -    MACOSX_BUNDLE_BUNDLE_VERSION "${VIEWER_SHORT_VERSION}${VIEWER_MACOSX_PHASE}${VIEWER_REVISION}" -    MACOSX_BUNDLE_COPYRIGHT "Copyright © Linden Research, Inc. 2007" +	OUTPUT_NAME "${product}" +	MACOSX_BUNDLE_INFO_PLIST +	"${CMAKE_CURRENT_SOURCE_DIR}/Info-SecondLife.plist"      )    configure_file( diff --git a/indra/newview/Info-SecondLife.plist b/indra/newview/Info-SecondLife.plist index c7f1090e86..f584b61768 100755 --- a/indra/newview/Info-SecondLife.plist +++ b/indra/newview/Info-SecondLife.plist @@ -5,19 +5,33 @@  	<key>CFBundleDevelopmentRegion</key>  	<string>English</string>  	<key>CFBundleExecutable</key> -	<string>Second Life</string> +	<string>${MACOSX_BUNDLE_EXECUTABLE_NAME}</string> +	<key>CFBundleGetInfoString</key> +	<string>${MACOSX_BUNDLE_INFO_STRING}</string>  	<key>CFBundleIconFile</key> -	<string>secondlife.icns</string> +	<string>${MACOSX_BUNDLE_ICON_FILE}</string>  	<key>CFBundleIdentifier</key> -	<string>com.secondlife.indra.viewer</string> +	<string>${MACOSX_BUNDLE_GUI_IDENTIFIER}</string>  	<key>CFBundleInfoDictionaryVersion</key>  	<string>6.0</string> +	<key>CFBundleLongVersionString</key> +	<string>${MACOSX_BUNDLE_LONG_VERSION_STRING}</string>  	<key>CFBundleName</key> -	<string>SecondLife</string> +	<string>${MACOSX_BUNDLE_BUNDLE_NAME}</string>  	<key>CFBundlePackageType</key>  	<string>APPL</string> +	<key>CFBundleShortVersionString</key> +	<string>${MACOSX_BUNDLE_SHORT_VERSION_STRING}</string>  	<key>CFBundleSignature</key>  	<string>????</string> +	<key>CFBundleVersion</key> +	<string>${MACOSX_BUNDLE_BUNDLE_VERSION}</string> +	<key>CSResourcesFileMapped</key> +	<true/> +	<key>LSRequiresCarbon</key> +	<true/> +	<key>NSHumanReadableCopyright</key> +	<string>${MACOSX_BUNDLE_COPYRIGHT}</string>  	<key>CFBundleDocumentTypes</key>  	<array>  		<dict> @@ -59,13 +73,9 @@  			<true/>  		</dict>  	</array> -	<key>CFBundleVersion</key> -	<string>${VIEWER_VERSION_MAJOR}.${VIEWER_VERSION_MINOR}.${VIEWER_VERSION_PATCH}.${VIEWER_VERSION_REVISION}</string>  	<key>NSPrincipalClass</key> -	<string>NSApplication</string> +	<string>${MACOSX_BUNDLE_NSPRINCIPAL_CLASS}</string>  	<key>NSMainNibFile</key> -	<string>SecondLife</string> -	<key>CSResourcesFileMapped</key> -	<true/> +	<string>${MACOSX_BUNDLE_NSMAIN_NIB_FILE}</string>  </dict>  </plist> | 
