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
3 # found in the LICENSE file.
6 # SDK path to use. When empty this will use the default SDK based on the
7 # value of use_ios_simulator.
10 # Set to true when targeting a simulator build on iOS. False means that the
11 # target is for running on the device.
12 use_ios_simulator = true
14 ios_deployment_target = "6.0"
17 if (!is_gyp_xcode_generator) {
18 # The Ninja build currently only targets the simulator.
19 assert(use_ios_simulator, "You can't do an iOS device build using Ninja yet.")
22 if (ios_sdk_path == "") {
23 # Compute default target.
24 if (use_ios_simulator) {
25 _ios_sdk_to_query = "iphonesimulator"
27 _ios_sdk_to_query = "iphoneos"
30 exec_script("ios_sdk.py", [ _ios_sdk_to_query ], "list lines")
31 ios_sdk_path = _ios_sdk_result[0]