mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-24 01:54:22 +00:00
CMake: Use CMAKE_OSX_SYSROOT to locate AU/Rez files
This change should allow CMake builds to work with either a full Xcode install, or a CommandLineTools-only install.
This commit is contained in:
parent
27ca5e6ccb
commit
55ffcd1893
1 changed files with 2 additions and 15 deletions
|
|
@ -418,26 +418,13 @@ function(_juce_add_au_resource_fork shared_code_target au_target)
|
|||
DEPENDS "${defs_file}"
|
||||
VERBATIM)
|
||||
|
||||
execute_process(COMMAND xcode-select -p
|
||||
OUTPUT_VARIABLE xcode_developer_path
|
||||
RESULT_VARIABLE result_variable)
|
||||
|
||||
if(result_variable)
|
||||
message(FATAL_ERROR
|
||||
"Failed to locate an active developer directory. "
|
||||
"Run 'xcode-select -s <path to Xcode>' before reconfiguring.")
|
||||
endif()
|
||||
|
||||
string(STRIP "${xcode_developer_path}" xcode_developer_path)
|
||||
|
||||
add_custom_command(OUTPUT "${au_rez_output}"
|
||||
COMMAND "${JUCE_XCRUN}" Rez
|
||||
-d "ppc_$ppc" -d "i386_$i386" -d "ppc64_$ppc64" -d "x86_64_$x86_64"
|
||||
-I "${secret_au_resource_dir}"
|
||||
-I "/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Versions/A/Headers"
|
||||
-I "${xcode_developer_path}/Extras/CoreAudio/AudioUnits/AUPublic/AUBase"
|
||||
-I "${xcode_developer_path}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AudioUnit.framework/Headers"
|
||||
-isysroot "${xcode_developer_path}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk"
|
||||
-I "${CMAKE_OSX_SYSROOT}/System/Library/Frameworks/AudioUnit.framework/Headers"
|
||||
-isysroot "${CMAKE_OSX_SYSROOT}"
|
||||
"${au_rez_sources}"
|
||||
-useDF
|
||||
-o "${au_rez_output}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue