mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
CMake: Enable hardened runtime options for console app targets
This commit is contained in:
parent
555b667d22
commit
646f5ad095
2 changed files with 6 additions and 6 deletions
|
|
@ -689,7 +689,10 @@ function(_juce_add_xcode_entitlements source_target dest_target)
|
|||
|
||||
_juce_execute_juceaide(entitlements "${juce_kind_string}" "${input_info_file}" "${entitlements_file}")
|
||||
set_target_properties(${dest_target} PROPERTIES
|
||||
XCODE_ATTRIBUTE_CODE_SIGN_ENTITLEMENTS "${entitlements_file}")
|
||||
XCODE_ATTRIBUTE_CODE_SIGN_ENTITLEMENTS
|
||||
"${entitlements_file}"
|
||||
XCODE_ATTRIBUTE_ENABLE_HARDENED_RUNTIME
|
||||
"$<TARGET_PROPERTY:${source_target},JUCE_HARDENED_RUNTIME_ENABLED>")
|
||||
endfunction()
|
||||
|
||||
function(_juce_configure_bundle source_target dest_target)
|
||||
|
|
@ -759,8 +762,6 @@ function(_juce_configure_bundle source_target dest_target)
|
|||
endif()
|
||||
|
||||
set_target_properties(${dest_target} PROPERTIES
|
||||
XCODE_ATTRIBUTE_ENABLE_HARDENED_RUNTIME
|
||||
"$<TARGET_PROPERTY:${source_target},JUCE_HARDENED_RUNTIME_ENABLED>"
|
||||
XCODE_ATTRIBUTE_TARGETED_DEVICE_FAMILY
|
||||
"$<TARGET_PROPERTY:${source_target},JUCE_TARGETED_DEVICE_FAMILY>")
|
||||
|
||||
|
|
@ -2106,8 +2107,10 @@ function(juce_add_console_app target)
|
|||
_juce_initialise_target(${target} ${ARGN})
|
||||
|
||||
if(NOT JUCE_ARG__NO_RESOURCERC)
|
||||
set_target_properties(${target} PROPERTIES JUCE_TARGET_KIND_STRING "ConsoleApp")
|
||||
_juce_write_configure_time_info(${target})
|
||||
_juce_add_resources_rc(${target} ${target})
|
||||
_juce_add_xcode_entitlements(${target} ${target})
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
|
|
|
|||
|
|
@ -331,9 +331,6 @@ int writePlist (juce::ArgumentList&& args)
|
|||
juce::build_tools::EntitlementOptions parseEntitlementsOptions (const juce::File& file,
|
||||
juce::build_tools::ProjectType::Target::Type type)
|
||||
{
|
||||
if (type == juce::build_tools::ProjectType::Target::ConsoleApp)
|
||||
juce::ConsoleApplication::fail ("Deduced project type does not require entitlements", 1);
|
||||
|
||||
const auto dict = parseProjectData (file);
|
||||
|
||||
UpdateField updateField { dict };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue