mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 19:19:56 +00:00
Mac Build - heinous additions for bundle management
This commit is contained in:
parent
9c6fcc7be5
commit
25ba9933f6
3 changed files with 52 additions and 12 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
|
30
files/mac/Info.plist
Normal file
30
files/mac/Info.plist
Normal file
|
@ -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>
|
BIN
files/mac/openmw.icns
Normal file
BIN
files/mac/openmw.icns
Normal file
Binary file not shown.
Loading…
Reference in a new issue