Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1021)

Side by Side Diff: build/config/ios/ios_sdk.gni

Issue 155983003: GN iOS build fixes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | build/gyp_chromium » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 declare_args() { 5 declare_args() {
6 # SDK path to use. When empty this will use the default SDK based on the 6 # SDK path to use. When empty this will use the default SDK based on the
7 # value of use_ios_simulator. 7 # value of use_ios_simulator.
8 ios_sdk_path = "" 8 ios_sdk_path = ""
9 9
10 # Set to true when targeting a simulator build on iOS. False means that the 10 # Set to true when targeting a simulator build on iOS. False means that the
11 # target is for running on the device. 11 # target is for running on the device. The default value (the empty string)
12 use_ios_simulator = true 12 # means to pick the default based on the generator.
13 use_ios_simulator = ""
13 14
15 # Version of iOS that we're targeting.
14 ios_deployment_target = "6.0" 16 ios_deployment_target = "6.0"
15 } 17 }
16 18
17 if (!is_gyp_xcode_generator) { 19 if (use_ios_simulator == "") {
18 # The Ninja build currently only targets the simulator. 20 # Pick the default based on the generator. Currently, the Ninja build only
19 assert(use_ios_simulator, "You can't do an iOS device build using Ninja yet.") 21 # supports the simulator, while we default to device builds on Xcode.
22 use_ios_simulator = !is_gyp_xcode_generator
23 } else {
24 # Simulator flag explicitly passed in.
25 if (!is_gyp_xcode_generator) {
26 # The Ninja build currently only targets the simulator.
27 assert(use_ios_simulator,
28 "You can't do an iOS device build using Ninja yet.")
29 }
20 } 30 }
21 31
22 if (ios_sdk_path == "") { 32 if (ios_sdk_path == "") {
23 # Compute default target. 33 # Compute default target.
24 if (use_ios_simulator) { 34 if (use_ios_simulator) {
25 _ios_sdk_to_query = "iphonesimulator" 35 _ios_sdk_to_query = "iphonesimulator"
26 } else { 36 } else {
27 _ios_sdk_to_query = "iphoneos" 37 _ios_sdk_to_query = "iphoneos"
28 } 38 }
29 _ios_sdk_result = 39 _ios_sdk_result =
30 exec_script("ios_sdk.py", [ _ios_sdk_to_query ], "list lines") 40 exec_script("ios_sdk.py", [ _ios_sdk_to_query ], "list lines")
31 ios_sdk_path = _ios_sdk_result[0] 41 ios_sdk_path = _ios_sdk_result[0]
32 } 42 }
OLDNEW
« no previous file with comments | « no previous file | build/gyp_chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698