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 ios_sdk_platform_path = "" | 12 ios_sdk_platform_path = "" |
13 xcode_version = "" | 13 xcode_version = "" |
14 xcode_build = "" | 14 xcode_build = "" |
15 machine_os_build = "" | 15 machine_os_build = "" |
16 | 16 |
17 use_ios_simulator = current_cpu == "x86" || current_cpu == "x64" | 17 use_ios_simulator = current_cpu == "x86" || current_cpu == "x64" |
18 | 18 |
19 # Version of iOS that we're targeting. | 19 # Version of iOS that we're targeting. |
20 ios_deployment_target = "9.0" | 20 ios_deployment_target = "9.0" |
21 | 21 |
22 # The iOS Code signing identity to use | 22 # The iOS Code signing identity to use |
23 # TODO(GYP), TODO(sdfresne): Consider having a separate | 23 # TODO(GYP), TODO(sdfresne): Consider having a separate |
24 # ios_enable_code_signing_flag=<bool> flag to make the invocation clearer. | 24 # ios_enable_code_signing_flag=<bool> flag to make the invocation clearer. |
25 ios_enable_code_signing = true | 25 ios_enable_code_signing = true |
26 ios_code_signing_identity = "" | 26 ios_code_signing_identity = "" |
27 | 27 |
| 28 # Prefix for CFBundleIdentifier property of iOS bundles (correspond to the |
| 29 # "Organization Identifier" in Xcode). Code signing will fail if no mobile |
| 30 # provisioning for the selected code signing identify support that prefix. |
| 31 ios_app_bundle_id_prefix = "org.chromium" |
| 32 |
| 33 # If true, then allow using Xcode to automatically manage certificates. This |
| 34 # requires loading a separate Xcode project and enable automatically managed |
| 35 # certificates. When true, all test application will use the same bundle id |
| 36 # to avoid running out of certificates if using a free account. |
| 37 ios_automatically_manage_certs = true |
| 38 |
28 # If non-empty, this list must contain valid cpu architecture, and the final | 39 # If non-empty, this list must contain valid cpu architecture, and the final |
29 # build will be a multi-architecture build (aka fat build) supporting the | 40 # build will be a multi-architecture build (aka fat build) supporting the |
30 # main $target_cpu architecture and all of $additional_target_cpus. | 41 # main $target_cpu architecture and all of $additional_target_cpus. |
31 # | 42 # |
32 # For example to build an application that will run on both arm64 and armv7 | 43 # For example to build an application that will run on both arm64 and armv7 |
33 # devices, you would use the following in args.gn file when running "gn args": | 44 # devices, you would use the following in args.gn file when running "gn args": |
34 # | 45 # |
35 # target_os = "ios" | 46 # target_os = "ios" |
36 # target_cpu = "arm64" | 47 # target_cpu = "arm64" |
37 # additional_target_cpus = [ "arm" ] | 48 # additional_target_cpus = [ "arm" ] |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 ios_code_signing_identity = _ios_identities[0] | 108 ios_code_signing_identity = _ios_identities[0] |
98 } | 109 } |
99 | 110 |
100 if (ios_code_signing_identity == "") { | 111 if (ios_code_signing_identity == "") { |
101 print("Tried to prepare a device build without specifying a code signing") | 112 print("Tried to prepare a device build without specifying a code signing") |
102 print("identity and could not detect one automatically either.") | 113 print("identity and could not detect one automatically either.") |
103 print("TIP: Simulator builds don't require code signing...") | 114 print("TIP: Simulator builds don't require code signing...") |
104 assert(false) | 115 assert(false) |
105 } | 116 } |
106 } | 117 } |
OLD | NEW |