1 import("//llvm/utils/gn/build/sysroot.gni")
6 mac_deployment_target = "12"
11 # Set to true if you don't have Xcode installed, but do have the commandline
13 mac_use_commandline_tools_sdk = false
16 # Location of the mac sdk.
17 # The correct way to do this is to call xcrun
18 # (https://reviews.llvm.org/D70835), but that makes `gn gen` take twice as
19 # long and almost everyone has Xcode installed. So require that people who
20 # don't have it installed set a gn arg.
21 if (mac_use_commandline_tools_sdk) {
22 mac_sdk_path = "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk"
24 # iOS SDKs aren't available in the commandline tools SDK.
27 mac_sdk_path = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk"
28 ios_sdk_path = "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk"
29 iossim_sdk_path = "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk"
32 ios_sdk_path = sysroot + "/iPhoneOS.sdk"
33 iossim_sdk_path = sysroot + "/iPhoneSimulator.sdk"
34 mac_sdk_path = sysroot + "/MacOSX.sdk"