Browse Source

CMake: Add useful defaults for iphone/ipad screen orientations

tags/2021-05-28
reuk 5 years ago
parent
commit
6c71d96188
2 changed files with 9 additions and 3 deletions
  1. +1
    -3
      examples/DemoRunner/CMakeLists.txt
  2. +8
    -0
      extras/Build/CMake/JUCEUtils.cmake

+ 1
- 3
examples/DemoRunner/CMakeLists.txt View File

@@ -23,9 +23,7 @@ juce_add_gui_app(DemoRunner
CAMERA_PERMISSION_ENABLED TRUE
BLUETOOTH_PERMISSION_ENABLED TRUE
FILE_SHARING_ENABLED TRUE
DOCUMENT_BROWSER_ENABLED TRUE
IPHONE_SCREEN_ORIENTATIONS portrait landscape
IPAD_SCREEN_ORIENTATIONS portrait landscape)
DOCUMENT_BROWSER_ENABLED TRUE)

juce_generate_juce_header(DemoRunner)



+ 8
- 0
extras/Build/CMake/JUCEUtils.cmake View File

@@ -1534,6 +1534,14 @@ function(_juce_set_fallback_properties target)

set_target_properties(${target} PROPERTIES JUCE_SHOULD_ADD_STORYBOARD ${needs_storyboard})

_juce_set_property_if_not_set(${target} IPHONE_SCREEN_ORIENTATIONS
UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft
UIInterfaceOrientationLandscapeRight)

_juce_set_property_if_not_set(${target} IPAD_SCREEN_ORIENTATIONS
UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft
UIInterfaceOrientationLandscapeRight)

_juce_set_property_if_not_set(${target}
LAUNCH_STORYBOARD_FILE "${JUCE_CMAKE_UTILS_DIR}/LaunchScreen.storyboard")



Loading…
Cancel
Save