mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
CMake: Make JUCE targets default to targeting both iPhone and iPad
This commit is contained in:
parent
8fc1195c35
commit
6c353f8d03
2 changed files with 12 additions and 1 deletions
|
|
@ -315,6 +315,12 @@ attributes directly to these creation functions, rather than adding them later.
|
|||
is specified, the ICON_BIG and ICON_SMALL arguments will not have an effect on iOS, and a launch
|
||||
storyboard will not be used.
|
||||
|
||||
- `TARGETED_DEVICE_FAMILY`
|
||||
- Specifies the device families on which the product must be capable of running. Allowed values
|
||||
are "1", "2", and "1,2"; these correspond to "iPhone/iPod touch", "iPad", and "iPhone/iPod and
|
||||
iPad" respectively. This will default to "1,2", meaning that the target will target iPhone,
|
||||
iPod, and iPad.
|
||||
|
||||
- `ICON_BIG`, `ICON_SMALL`
|
||||
- Paths to image files that will be used to generate app icons. If only one of these parameters
|
||||
is specified, then that image will be used for all icon resolutions. If both arguments are
|
||||
|
|
|
|||
|
|
@ -1103,7 +1103,9 @@ function(_juce_configure_bundle source_target dest_target)
|
|||
|
||||
set_target_properties(${dest_target} PROPERTIES
|
||||
XCODE_ATTRIBUTE_ENABLE_HARDENED_RUNTIME
|
||||
$<TARGET_PROPERTY:${source_target},JUCE_HARDENED_RUNTIME_ENABLED>)
|
||||
"$<TARGET_PROPERTY:${source_target},JUCE_HARDENED_RUNTIME_ENABLED>"
|
||||
XCODE_ATTRIBUTE_TARGETED_DEVICE_FAMILY
|
||||
"$<TARGET_PROPERTY:${source_target},JUCE_TARGETED_DEVICE_FAMILY>")
|
||||
|
||||
if(juce_kind_string STREQUAL "AUv3 AppExtension")
|
||||
get_target_property(source_bundle_id ${source_target} JUCE_BUNDLE_ID)
|
||||
|
|
@ -1765,6 +1767,8 @@ function(_juce_set_fallback_properties target)
|
|||
_juce_set_property_if_not_set(${target} AU_MAIN_TYPE kAudioUnitType_Effect)
|
||||
endif()
|
||||
|
||||
_juce_set_property_if_not_set(${target} TARGETED_DEVICE_FAMILY "1,2")
|
||||
|
||||
set(au_category_codes
|
||||
'aufx'
|
||||
'aufc'
|
||||
|
|
@ -1881,6 +1885,7 @@ function(_juce_initialise_target target)
|
|||
BACKGROUND_AUDIO_ENABLED # iOS only
|
||||
BACKGROUND_BLE_ENABLED # iOS only
|
||||
CUSTOM_XCASSETS_FOLDER # iOS only
|
||||
TARGETED_DEVICE_FAMILY # iOS only
|
||||
ICON_BIG
|
||||
ICON_SMALL
|
||||
COMPANY_COPYRIGHT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue