Mac Build - heinous additions for bundle management

actorid
Ardekantur 15 years ago
parent 9c6fcc7be5
commit 25ba9933f6

@ -105,7 +105,6 @@ endif (APPLE)
# Main executable # Main executable
add_executable(openmw add_executable(openmw
MACOSX_BUNDLE
${BSA} ${BSA_HEADER} ${BSA} ${BSA_HEADER}
${TOOLS} ${TOOLS_HEADER} ${TOOLS} ${TOOLS_HEADER}
${OGRE} ${OGRE_HEADER} ${OGRE} ${OGRE_HEADER}
@ -132,15 +131,26 @@ endif (APPLE)
# Apple bundling # Apple bundling
if (APPLE) if (APPLE)
set_source_files_properties( set(MISC_FILES
${CMAKE_SOURCE_DIR}/files/openmw.cfg ${CMAKE_SOURCE_DIR}/files/openmw.cfg
${CMAKE_SOURCE_DIR}/files/mac/plugins.cfg ${CMAKE_SOURCE_DIR}/files/mac/plugins.cfg
PROPERTIES ${CMAKE_SOURCE_DIR}/files/mac/ogre.cfg)
MACOSX_PACKAGE_LOCATION MacOS install(TARGETS openmw
) BUNDLE DESTINATION .
set_target_properties( RUNTIME DESTINATION ../MacOS
openmw COMPONENT Runtime)
PROPERTIES install(FILES ${MISC_FILES} DESTINATION ../MacOS)
MACOSX_BUNDLE_BUNDLE_NAME "OpenMW" set(CPACK_GENERATOR "Bundle")
) set(CPACK_BUNDLE_PLIST "${CMAKE_SOURCE_DIR}/files/mac/Info.plist")
set(CPACK_BUNDLE_ICON "${CMAKE_SOURCE_DIR}/files/mac/openmw.icns")
set(CPACK_BUNDLE_NAME "OpenMW")
set(CPACK_PACKAGE_VERSION "0.07")
set(CPACK_PACKAGE_VERSION_MAJOR "0")
set(CPACK_PACKAGE_VERSION_MINOR "07")
set(CPACK_PACKAGE_VERSION_PATCH "")
include(CPack)
endif (APPLE) endif (APPLE)

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleIconFile</key>
<string>OpenMW.icns</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>openmw</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleLongVersionString</key>
<string></string>
<key>CFBundleName</key>
<string>OpenMW</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>0.07</string>
<key>CSResourcesFileMapped</key>
<true/>
<key>LSRequiresCarbon</key>
<true/>
<key>NSHumanReadableCopyright</key>
<string></string>
</dict>
</plist>

Binary file not shown.
Loading…
Cancel
Save