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 ios_app_script = "//build/config/ios/ios_app.py" | 5 ios_app_script = "//build/config/ios/ios_app.py" |
6 | 6 |
7 template("code_sign_ios") { | 7 template("code_sign_ios") { |
8 assert(defined(invoker.entitlements_path), | 8 assert(defined(invoker.entitlements_path), |
9 "The path to the entitlements .xcent file") | 9 "The path to the entitlements .xcent file") |
10 assert(defined(invoker.identity), "The code signing identity") | 10 assert(defined(invoker.identity), "The code signing identity") |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 plist_gen_target_name = target_name + "_plist" | 86 plist_gen_target_name = target_name + "_plist" |
87 bin_gen_target_name = target_name + "_bin" | 87 bin_gen_target_name = target_name + "_bin" |
88 group_target_name = target_name | 88 group_target_name = target_name |
89 | 89 |
90 # Generate the executable | 90 # Generate the executable |
91 executable(bin_gen_target_name) { | 91 executable(bin_gen_target_name) { |
92 visibility = [ ":$group_target_name" ] | 92 visibility = [ ":$group_target_name" ] |
93 | 93 |
94 output_name = "${_app_name}.app/${_app_name}" | 94 output_name = "${_app_name}.app/${_app_name}" |
95 | 95 |
| 96 forward_variables_from(invoker, |
| 97 [ |
| 98 "all_dependent_configs", |
| 99 "allow_circular_includes_from", |
| 100 "cflags", |
| 101 "cflags_c", |
| 102 "cflags_cc", |
| 103 "cflags_objc", |
| 104 "cflags_objcc", |
| 105 "configs", |
| 106 "check_includes", |
| 107 "data", |
| 108 "data_deps", |
| 109 "defines", |
| 110 "forward_dependent_configs_from", |
| 111 "include_dirs", |
| 112 "ldflags", |
| 113 "public", |
| 114 "public_configs", |
| 115 "public_deps", |
| 116 "sources", |
| 117 ]) |
| 118 |
96 if (defined(invoker.libs)) { | 119 if (defined(invoker.libs)) { |
97 libs = invoker.libs | 120 libs = invoker.libs |
98 } else { | 121 } else { |
99 libs = [] | 122 libs = [] |
100 } | 123 } |
101 libs += [ | 124 libs += [ |
102 "UIKit.framework", | 125 "UIKit.framework", |
103 "QuartzCore.framework", | 126 "QuartzCore.framework", |
104 "OpenGLES.framework", | 127 "OpenGLES.framework", |
105 ] | 128 ] |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 group(target_name) { | 183 group(target_name) { |
161 deps = [ | 184 deps = [ |
162 ":$plist_gen_target_name", | 185 ":$plist_gen_target_name", |
163 ":$bin_gen_target_name", | 186 ":$bin_gen_target_name", |
164 ] | 187 ] |
165 if (invoker.code_signing_identity != "") { | 188 if (invoker.code_signing_identity != "") { |
166 deps += [ ":$code_sign_gen_target_name" ] | 189 deps += [ ":$code_sign_gen_target_name" ] |
167 } | 190 } |
168 } | 191 } |
169 } | 192 } |
OLD | NEW |