aboutsummaryrefslogtreecommitdiffhomepage
path: root/gn/BUILD.gn
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2016-11-07 15:38:48 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2016-11-07 21:20:18 +0000
commit6749af40739fab375d87951c5b0fb51a195e1f8c (patch)
treeae34d80f1218aacf34f8d7349ceb1bfb8c2b2faa /gn/BUILD.gn
parent7e8f80a08444f534376a25d45194c92f948c9594 (diff)
Add GN iOS builder.
This gets up a bot to build for iOS via GN as much as we can right now. This is unlikely to be the long term structure of the iOS bots... by the time we add Test/Perf bots we'll likely need to have a gn_ios_flavor.py. But for now, this keeps the GN iOS build such as it is working. GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4457 Change-Id: Ideb10ae3f4ab5530ad153237a343dd5c0e7dd02f Reviewed-on: https://skia-review.googlesource.com/4457 Commit-Queue: Mike Klein <mtklein@chromium.org> Reviewed-by: Eric Boren <borenet@google.com>
Diffstat (limited to 'gn/BUILD.gn')
-rw-r--r--gn/BUILD.gn12
1 files changed, 8 insertions, 4 deletions
diff --git a/gn/BUILD.gn b/gn/BUILD.gn
index 7e9008d2cf..7d94f5a6eb 100644
--- a/gn/BUILD.gn
+++ b/gn/BUILD.gn
@@ -184,13 +184,17 @@ config("default") {
if (is_ios) {
cflags += [
- "--sysroot=$ios_sysroot",
- "--target=$target_cpu-apple-darwin11",
+ "-isysroot",
+ ios_sysroot,
+ "-arch",
+ target_cpu,
]
cflags_cc += [ "-stdlib=libc++" ]
ldflags += [
- "--sysroot=$ios_sysroot",
- "--target=$target_cpu-apple-darwin11",
+ "-isysroot",
+ ios_sysroot,
+ "-arch",
+ target_cpu,
"-stdlib=libc++",
]
libs = [ "objc" ]