diff --git a/docs/CMake API.md b/docs/CMake API.md index 8690721536..42700de298 100644 --- a/docs/CMake API.md +++ b/docs/CMake API.md @@ -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 diff --git a/extras/Build/CMake/JUCEUtils.cmake b/extras/Build/CMake/JUCEUtils.cmake index 4bf7206e56..a22e8e714b 100644 --- a/extras/Build/CMake/JUCEUtils.cmake +++ b/extras/Build/CMake/JUCEUtils.cmake @@ -1103,7 +1103,9 @@ function(_juce_configure_bundle source_target dest_target) set_target_properties(${dest_target} PROPERTIES XCODE_ATTRIBUTE_ENABLE_HARDENED_RUNTIME - $) + "$" + XCODE_ATTRIBUTE_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