| 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 # Perform Code Signing | 162 # Perform Code Signing |
| 163 entitlements_path = invoker.entitlements_path | 163 entitlements_path = invoker.entitlements_path |
| 164 if (invoker.code_signing_identity != "") { | 164 if (invoker.code_signing_identity != "") { |
| 165 code_sign_gen_target_name = target_name + "_codesign" | 165 code_sign_gen_target_name = target_name + "_codesign" |
| 166 code_sign_ios(code_sign_gen_target_name) { | 166 code_sign_ios(code_sign_gen_target_name) { |
| 167 visibility = [ ":$target_name" ] | 167 visibility = [ ":$target_name" ] |
| 168 | 168 |
| 169 identity = invoker.code_signing_identity | 169 identity = invoker.code_signing_identity |
| 170 application_path = "$root_build_dir/$app_name.app" | 170 application_path = "$root_build_dir/$app_name.app" |
| 171 deps = [ | 171 deps = [ |
| 172 ":$bin_gen_target_name", |
| 172 ":$plist_gen_target_name", | 173 ":$plist_gen_target_name", |
| 173 ":$bin_gen_target_name", | |
| 174 ] | 174 ] |
| 175 } | 175 } |
| 176 } else { | 176 } else { |
| 177 # This avoids a potential unused variable warning in the caller. | 177 # This avoids a potential unused variable warning in the caller. |
| 178 entitlements_path = entitlements_path | 178 entitlements_path = entitlements_path |
| 179 } | 179 } |
| 180 | 180 |
| 181 # Top level group | 181 # Top level group |
| 182 group(target_name) { | 182 group(target_name) { |
| 183 deps = [ | 183 deps = [ |
| 184 ":$bin_gen_target_name", |
| 184 ":$plist_gen_target_name", | 185 ":$plist_gen_target_name", |
| 185 ":$bin_gen_target_name", | |
| 186 ] | 186 ] |
| 187 if (invoker.code_signing_identity != "") { | 187 if (invoker.code_signing_identity != "") { |
| 188 deps += [ ":$code_sign_gen_target_name" ] | 188 deps += [ ":$code_sign_gen_target_name" ] |
| 189 } | 189 } |
| 190 } | 190 } |
| 191 } | 191 } |
| OLD | NEW |