Files
@ r24743:6976bb35b8bd
Branch filter:
Location: cpp/openttd-patchpack/source/cmake/PackageBundle.cmake - annotation
r24743:6976bb35b8bd
992 B
text/x-cmake
Codechange: [SDL2] Name paint function Paint(), like other drivers do
This reduces confusion when reading different drivers.
This reduces confusion when reading different drivers.
r24245:1e4a8434fc12 r24245:1e4a8434fc12 r24245:1e4a8434fc12 r24245:1e4a8434fc12 r24245:1e4a8434fc12 r24245:1e4a8434fc12 r24428:248c19ee70e5 r24245:1e4a8434fc12 r24245:1e4a8434fc12 r24245:1e4a8434fc12 r24245:1e4a8434fc12 r24245:1e4a8434fc12 r24245:1e4a8434fc12 r24245:1e4a8434fc12 r24245:1e4a8434fc12 r24245:1e4a8434fc12 r24245:1e4a8434fc12 r24245:1e4a8434fc12 r24245:1e4a8434fc12 r24245:1e4a8434fc12 r24250:f8f432cd8aab r24456:3db6bc1e31b8 r24245:1e4a8434fc12 r24245:1e4a8434fc12 r24245:1e4a8434fc12 | string(TIMESTAMP CURRENT_YEAR "%Y")
set(CPACK_BUNDLE_NAME "OpenTTD")
set(CPACK_BUNDLE_ICON "${CMAKE_SOURCE_DIR}/os/macosx/openttd.icns")
set(CPACK_BUNDLE_PLIST "${CMAKE_CURRENT_BINARY_DIR}/Info.plist")
set(CPACK_DMG_BACKGROUND_IMAGE "${CMAKE_SOURCE_DIR}/os/macosx/splash.png")
set(CPACK_DMG_FORMAT "UDBZ")
# Create a temporary Info.plist.in, where we will fill in the version via
# CPackProperties.cmake.in. This because at this point in time the version
# is not yet known.
configure_file("${CMAKE_SOURCE_DIR}/os/macosx/Info.plist.in" "${CMAKE_CURRENT_BINARY_DIR}/Info.plist.in")
set(CPACK_BUNDLE_PLIST_SOURCE "${CMAKE_CURRENT_BINARY_DIR}/Info.plist.in")
# Delay fixup_bundle() till the install step; this makes sure all executables
# exists and it can do its job.
install(
CODE
"
include(BundleUtilities)
set(BU_CHMOD_BUNDLE_ITEMS TRUE)
fixup_bundle(\"\${CMAKE_INSTALL_PREFIX}/../MacOS/openttd\" \"\" \"\")
"
DESTINATION .
COMPONENT Runtime)
|