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 import("//build/config/ios/ios_sdk.gni") | 5 import("//build/config/ios/ios_sdk.gni") |
6 import("//build/config/mac/base_rules.gni") | 6 import("//build/config/mac/base_rules.gni") |
7 import("//build/config/mac/symbols.gni") | 7 import("//build/config/mac/symbols.gni") |
8 import("//build/toolchain/toolchain.gni") | 8 import("//build/toolchain/toolchain.gni") |
9 | 9 |
10 # Invokes lipo on multiple arch-specific binaries to create a fat binary. | 10 # Invokes lipo on multiple arch-specific binaries to create a fat binary. |
(...skipping 1252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1263 # (Debug, Release, ...). In addition, the symbols visibility is configured to | 1263 # (Debug, Release, ...). In addition, the symbols visibility is configured to |
1264 # private by default. To simplify testing with those constraints, our tests are | 1264 # private by default. To simplify testing with those constraints, our tests are |
1265 # compiled in the TEST_HOST target instead of the .xctest bundle. | 1265 # compiled in the TEST_HOST target instead of the .xctest bundle. |
1266 template("ios_xctest_test") { | 1266 template("ios_xctest_test") { |
1267 _target_name = target_name | 1267 _target_name = target_name |
1268 _output_name = target_name | 1268 _output_name = target_name |
1269 if (defined(invoker.output_name)) { | 1269 if (defined(invoker.output_name)) { |
1270 _output_name = invoker.output_name | 1270 _output_name = invoker.output_name |
1271 } | 1271 } |
1272 | 1272 |
1273 # TODO(crbug.com/662404): Remove when all downstream uses has been removed. | |
1274 # If the variable is overridden, assert that it is true as all uses should | |
1275 # have set it to true (otherwise changing the default would break things). | |
1276 if (defined(invoker.use_new_naming_convention)) { | |
1277 assert(invoker.use_new_naming_convention, | |
1278 "use_new_naming_convention must be true if defined.") | |
1279 } | |
1280 | |
1281 _xctest_target = _target_name + "_module" | 1273 _xctest_target = _target_name + "_module" |
1282 _xctest_output = _output_name + "_module" | 1274 _xctest_output = _output_name + "_module" |
1283 | 1275 |
1284 _host_target = _target_name | 1276 _host_target = _target_name |
1285 _host_output = _output_name | 1277 _host_output = _output_name |
1286 | 1278 |
1287 _xctest_arch_loadable_module_target = _xctest_target + "_arch_loadable_module" | 1279 _xctest_arch_loadable_module_target = _xctest_target + "_arch_loadable_module" |
1288 _xctest_lipo_loadable_module_target = _xctest_target + "_loadable_module" | 1280 _xctest_lipo_loadable_module_target = _xctest_target + "_loadable_module" |
1289 | 1281 |
1290 loadable_module(_xctest_arch_loadable_module_target) { | 1282 loadable_module(_xctest_arch_loadable_module_target) { |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1421 "-rpath", | 1413 "-rpath", |
1422 "-Xlinker", | 1414 "-Xlinker", |
1423 "@loader_path/Frameworks", | 1415 "@loader_path/Frameworks", |
1424 ] | 1416 ] |
1425 } | 1417 } |
1426 } | 1418 } |
1427 | 1419 |
1428 set_defaults("ios_xctest_test") { | 1420 set_defaults("ios_xctest_test") { |
1429 configs = default_executable_configs | 1421 configs = default_executable_configs |
1430 } | 1422 } |
OLD | NEW |