From 780e5e7244b0e2e35eef71c058259caf8aa1d620 Mon Sep 17 00:00:00 2001 From: Maarten ter Huurne Date: Sun, 11 Dec 2011 16:54:37 +0100 Subject: [PATCH] Use a custom template to generate the Info.plist for the OS X bundle. This allows us to add keys that don't exist in the CMake template. I added the keys from the Info.plist that was generated by our SCons build to the new template. --- Source/Core/DolphinWX/CMakeLists.txt | 8 +--- Source/Core/DolphinWX/Info.plist.in | 63 ++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+), 7 deletions(-) create mode 100644 Source/Core/DolphinWX/Info.plist.in diff --git a/Source/Core/DolphinWX/CMakeLists.txt b/Source/Core/DolphinWX/CMakeLists.txt index 7979b5cc58..91c1c1b58f 100644 --- a/Source/Core/DolphinWX/CMakeLists.txt +++ b/Source/Core/DolphinWX/CMakeLists.txt @@ -124,13 +124,7 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") # Ask for an application bundle. set_target_properties(${DOLPHIN_EXE} PROPERTIES MACOSX_BUNDLE true - MACOSX_BUNDLE_BUNDLE_NAME Dolphin - MACOSX_BUNDLE_ICON_FILE Dolphin.icns - MACOSX_BUNDLE_GUI_IDENTIFIER com.dolphin-emulator.dolphin - MACOSX_BUNDLE_SHORT_VERSION_STRING ${DOLPHIN_WC_DESCRIBE} - MACOSX_BUNDLE_LONG_VERSION_STRING ${DOLPHIN_WC_REVISION} - MACOSX_BUNDLE_BUNDLE_VERSION "${DOLPHIN_VERSION_MAJOR}.${DOLPHIN_VERSION_MINOR}" - MACOSX_BUNDLE_COPYRIGHT "Licensed under GPL version 2" + MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist.in ) # Install Cg framework into application bundle. diff --git a/Source/Core/DolphinWX/Info.plist.in b/Source/Core/DolphinWX/Info.plist.in new file mode 100644 index 0000000000..e365e462ae --- /dev/null +++ b/Source/Core/DolphinWX/Info.plist.in @@ -0,0 +1,63 @@ + + + + + CFBundleDocumentTypes + + + CFBundleTypeExtensions + + ciso + dol + elf + gcm + gcz + iso + wad + + CFBundleTypeIconFile + Dolphin.icns + CFBundleTypeName + Nintendo GC/Wii file + CFBundleTypeRole + Viewer + + + CFBundleExecutable + Dolphin + CFBundleIconFile + Dolphin.icns + CFBundleIdentifier + com.dolphin-emulator.dolphin + CFBundleDevelopmentRegion + English + CFBundleLocalizations + + ar + el + en + es + fr + hu + pt + pt_BR + tr + + CFBundlePackageType + APPL + CFBundleShortVersionString + ${DOLPHIN_WC_DESCRIBE} + CFBundleLongVersionString + ${DOLPHIN_WC_REVISION} + CFBundleVersion + ${DOLPHIN_VERSION_MAJOR}.${DOLPHIN_VERSION_MINOR} + NSHumanReadableCopyright + Licensed under GPL version 2 + LSMinimumSystemVersion + 10.5.4 + LSRequiresCarbon + + CSResourcesFileMapped + + +