| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 import("//build/mac/tweak_info_plist.gni") | 5 import("//build/mac/tweak_info_plist.gni") |
| 6 import("//ios/build/chrome_build.gni") | 6 import("//ios/build/chrome_build.gni") |
| 7 import("//ios/public/provider/chrome/browser/build_config.gni") | 7 import("//ios/public/provider/chrome/browser/build_config.gni") |
| 8 import("//ios/third_party/earl_grey/ios_eg_test.gni") | 8 import("//ios/third_party/earl_grey/ios_eg_test.gni") |
| 9 | 9 |
| 10 # Template wrapping ios_eg_test, setting default values for EarlGrey test | 10 # Template wrapping ios_eg_test, setting default values for EarlGrey test |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 template("chrome_ios_eg_test") { | 46 template("chrome_ios_eg_test") { |
| 47 if (!defined(entitlements_path) && !defined(entitlements_target)) { | 47 if (!defined(entitlements_path) && !defined(entitlements_target)) { |
| 48 _target_name = target_name | 48 _target_name = target_name |
| 49 _tweak_entitlements = target_name + "_tweak_entitlements" | 49 _tweak_entitlements = target_name + "_tweak_entitlements" |
| 50 compile_plist(_tweak_entitlements) { | 50 compile_plist(_tweak_entitlements) { |
| 51 format = "xml1" | 51 format = "xml1" |
| 52 substitutions = [ "IOS_BUNDLE_ID_PREFIX=$ios_app_bundle_id_prefix" ] | 52 substitutions = [ "IOS_BUNDLE_ID_PREFIX=$ios_app_bundle_id_prefix" ] |
| 53 output_name = "$target_gen_dir/$_target_name.entitlements" | 53 output_name = "$target_gen_dir/$_target_name.entitlements" |
| 54 plist_templates = | 54 plist_templates = |
| 55 [ "//ios/chrome/test/earl_grey/resources/Chrome.entitlements" ] | 55 [ "//ios/chrome/test/earl_grey/resources/Chrome.entitlements" ] |
| 56 if (ios_chrome_entitlements_additions != []) { |
| 57 plist_templates += ios_chrome_entitlements_additions |
| 58 } |
| 56 } | 59 } |
| 57 } | 60 } |
| 58 | 61 |
| 59 if (!defined(info_plist) && !defined(info_plist_target)) { | 62 if (!defined(info_plist) && !defined(info_plist_target)) { |
| 60 _tweak_info_plist = target_name + "_tweak_info_plist" | 63 _tweak_info_plist = target_name + "_tweak_info_plist" |
| 61 tweak_info_plist(_tweak_info_plist) { | 64 tweak_info_plist(_tweak_info_plist) { |
| 62 info_plists = [ | 65 info_plists = [ |
| 63 "//ios/chrome/app/resources/Info.plist", | 66 "//ios/chrome/app/resources/Info.plist", |
| 64 "//ios/chrome/app/resources/EarlGreyAddition+Info.plist", | 67 "//ios/chrome/app/resources/EarlGreyAddition+Info.plist", |
| 65 ] | 68 ] |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 "CHROMIUM_SHORT_NAME=$target_name", | 135 "CHROMIUM_SHORT_NAME=$target_name", |
| 133 "CHROMIUM_URL_SCHEME_1=$url_unsecure_scheme", | 136 "CHROMIUM_URL_SCHEME_1=$url_unsecure_scheme", |
| 134 "CHROMIUM_URL_SCHEME_2=$url_secure_scheme", | 137 "CHROMIUM_URL_SCHEME_2=$url_secure_scheme", |
| 135 "CHROMIUM_URL_SCHEME_3=$url_x_callback_scheme", | 138 "CHROMIUM_URL_SCHEME_3=$url_x_callback_scheme", |
| 136 "CHROMIUM_URL_SCHEME_4=$url_channel_scheme", | 139 "CHROMIUM_URL_SCHEME_4=$url_channel_scheme", |
| 137 "EG_MAIN_APPLICATION_DELEGATE=$_eg_main_application_delegate", | 140 "EG_MAIN_APPLICATION_DELEGATE=$_eg_main_application_delegate", |
| 138 "SSOAUTH_URL_SCHEME=$url_ssoauth_scheme", | 141 "SSOAUTH_URL_SCHEME=$url_ssoauth_scheme", |
| 139 ] | 142 ] |
| 140 } | 143 } |
| 141 } | 144 } |
| OLD | NEW |