mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +00:00
CMake: Prefer using launch storyboard on iOS even when a custom xcassets folder is set
This commit is contained in:
parent
acc6addb86
commit
ba8d5e3e1c
2 changed files with 7 additions and 4 deletions
|
|
@ -331,12 +331,14 @@ attributes directly to these creation functions, rather than adding them later.
|
|||
|
||||
`LAUNCH_STORYBOARD_FILE`
|
||||
- A custom launch storyboard file to use on iOS. If not supplied, a default storyboard will be
|
||||
used.
|
||||
used. If this is specified, then this will take precedence over a LaunchImage inside a custom
|
||||
xcassets directory.
|
||||
|
||||
`CUSTOM_XCASSETS_FOLDER`
|
||||
- A path to an xcassets directory, containing icons and/or launch images for this target. If this
|
||||
is specified, the ICON_BIG and ICON_SMALL arguments will not have an effect on iOS, and a launch
|
||||
storyboard will not be used.
|
||||
is specified, the ICON_BIG and ICON_SMALL arguments will not have an effect on iOS. LaunchImages
|
||||
have been deprecated from iOS 13 onward, but if your xcassets folder contains a LaunchImage and
|
||||
a custom storyboard hasn't been specified, then it will be used.
|
||||
|
||||
`TARGETED_DEVICE_FAMILY`
|
||||
- Specifies the device families on which the product must be capable of running. Allowed values
|
||||
|
|
|
|||
|
|
@ -1344,10 +1344,11 @@ function(_juce_set_fallback_properties target)
|
|||
_juce_set_property_if_not_set(${target} BUILD_VERSION "${final_version}")
|
||||
|
||||
get_target_property(custom_xcassets ${target} JUCE_CUSTOM_XCASSETS_FOLDER)
|
||||
get_target_property(custom_storyboard ${target} JUCE_LAUNCH_STORYBOARD_FILE)
|
||||
|
||||
set(needs_storyboard TRUE)
|
||||
|
||||
if(custom_xcassets)
|
||||
if((NOT custom_storyboard) AND custom_xcassets AND (EXISTS "${custom_xcassets}/LaunchImage.launchimage"))
|
||||
set(needs_storyboard FALSE)
|
||||
endif()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue