Browse Source

Platform: make a macOS bundle also for GlfwApplication test.

mousecapture
Vladimír Vondruš 6 years ago
parent
commit
de49453199
  1. 7
      src/Magnum/Platform/Test/CMakeLists.txt
  2. 20
      src/Magnum/Platform/Test/GlfwApplicationTest.plist

7
src/Magnum/Platform/Test/CMakeLists.txt

@ -61,6 +61,13 @@ if(WITH_GLFWAPPLICATION)
target_sources(PlatformGlfwApplicationTest PRIVATE ${Platform_RESOURCES})
target_link_libraries(PlatformGlfwApplicationTest PRIVATE MagnumTrade)
set_target_properties(PlatformGlfwApplicationTest PROPERTIES FOLDER "Magnum/Platform/Test")
if(CORRADE_TARGET_APPLE)
# The plist is needed in order to mark the app as DPI-aware
set_target_properties(PlatformGlfwApplicationTest PROPERTIES
MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/GlfwApplicationTest.plist
MACOSX_BUNDLE ON
XCODE_ATTRIBUTE_CODE_SIGNING_REQUIRED "YES")
endif()
endif()
if(WITH_GLXAPPLICATION)

20
src/Magnum/Platform/Test/GlfwApplicationTest.plist

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en-US</string>
<key>CFBundleExecutable</key>
<string>${MACOSX_BUNDLE_EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>cz.mosra.magnum.GlfwApplicationTest</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Magnum Triangle</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>NSHighResolutionCapable</key>
<true/>
</dict>
</plist>
Loading…
Cancel
Save