| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 ios_sdk_name = "" | 9 ios_sdk_name = "" |
| 10 ios_sdk_version = "" | 10 ios_sdk_version = "" |
| 11 ios_sdk_platform = "" | 11 ios_sdk_platform = "" |
| 12 xcode_version = "" | 12 xcode_version = "" |
| 13 xcode_build = "" | 13 xcode_build = "" |
| 14 machine_os_build = "" | 14 machine_os_build = "" |
| 15 | 15 |
| 16 use_ios_simulator = target_cpu == "x86" || target_cpu == "x64" | 16 use_ios_simulator = current_cpu == "x86" || current_cpu == "x64" |
| 17 | 17 |
| 18 # Version of iOS that we're targeting. | 18 # Version of iOS that we're targeting. |
| 19 ios_deployment_target = "9.0" | 19 ios_deployment_target = "9.0" |
| 20 | 20 |
| 21 # The iOS Code signing identity to use | 21 # The iOS Code signing identity to use |
| 22 # TODO(GYP), TODO(sdfresne): Consider having a separate | 22 # TODO(GYP), TODO(sdfresne): Consider having a separate |
| 23 # ios_enable_code_signing_flag=<bool> flag to make the invocation clearer. | 23 # ios_enable_code_signing_flag=<bool> flag to make the invocation clearer. |
| 24 ios_enable_code_signing = true | 24 ios_enable_code_signing = true |
| 25 ios_code_signing_identity = "" | 25 ios_code_signing_identity = "" |
| 26 | 26 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 ios_code_signing_identity = _ios_identities[0] | 101 ios_code_signing_identity = _ios_identities[0] |
| 102 } | 102 } |
| 103 | 103 |
| 104 if (ios_code_signing_identity == "") { | 104 if (ios_code_signing_identity == "") { |
| 105 print("Tried to prepare a device build without specifying a code signing") | 105 print("Tried to prepare a device build without specifying a code signing") |
| 106 print("identity and could not detect one automatically either.") | 106 print("identity and could not detect one automatically either.") |
| 107 print("TIP: Simulator builds don't require code signing...") | 107 print("TIP: Simulator builds don't require code signing...") |
| 108 assert(false) | 108 assert(false) |
| 109 } | 109 } |
| 110 } | 110 } |
| OLD | NEW |