aboutsummaryrefslogtreecommitdiffhomepage
path: root/gn/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'gn/BUILD.gn')
-rw-r--r--gn/BUILD.gn13
1 files changed, 10 insertions, 3 deletions
diff --git a/gn/BUILD.gn b/gn/BUILD.gn
index 7741354097..36c881c5d7 100644
--- a/gn/BUILD.gn
+++ b/gn/BUILD.gn
@@ -50,9 +50,16 @@ if (!is_clang && !is_win) {
}
if (is_ios) {
- sdk = "iphoneos"
- if (target_cpu == "x86" || target_cpu == "x64") {
- sdk = "iphonesimulator"
+ if (is_tvos) {
+ sdk = "appletvos"
+ if (target_cpu == "x86" || target_cpu == "x64") {
+ sdk = "appletvsimulator"
+ }
+ } else {
+ sdk = "iphoneos"
+ if (target_cpu == "x86" || target_cpu == "x64") {
+ sdk = "iphonesimulator"
+ }
}
ios_sysroot = exec_script("find_ios_sysroot.py", [ sdk ], "trim string")
}