aboutsummaryrefslogtreecommitdiffhomepage
path: root/gn
diff options
context:
space:
mode:
authorGravatar Matthew Leibowitz <mattleibow@live.com>2017-03-14 16:22:32 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-03-14 22:55:04 +0000
commit3150ec6be91a9611064cf3697d7e179d143c2e8d (patch)
tree082104c408afd7cde695e0049005c9dd1f962ff1 /gn
parentdad29a059e11158c97e575747e7769a2a4fb9179 (diff)
Added support for building for tvOS
This change is just to add support for building for tvOS. It is exactly the same as iOS, just using a different SDK. I had to change the two lines for libjpeg-turbo so that it will run for both tvOS and iOS. BUG=skia: Change-Id: I6ae5fc4257df74c0f321e5d2d71584f6a52ec3a6 Reviewed-on: https://skia-review.googlesource.com/9660 Commit-Queue: Mike Klein <mtklein@chromium.org> Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'gn')
-rw-r--r--gn/BUILD.gn13
-rw-r--r--gn/BUILDCONFIG.gn3
2 files changed, 12 insertions, 4 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")
}
diff --git a/gn/BUILDCONFIG.gn b/gn/BUILDCONFIG.gn
index 6ec5e67fe2..2b3ae33292 100644
--- a/gn/BUILDCONFIG.gn
+++ b/gn/BUILDCONFIG.gn
@@ -37,7 +37,8 @@ if (current_os == "") {
is_android = current_os == "android"
is_fuchsia = current_os == "fuchsia"
-is_ios = current_os == "ios"
+is_ios = current_os == "ios" || current_os == "tvos"
+is_tvos = current_os == "tvos"
is_linux = current_os == "linux"
is_mac = current_os == "mac"
is_win = current_os == "win"