| 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 | 8 |
| 9 _toolchain_suffix = "" | 9 _toolchain_suffix = "" |
| 10 _is_fat_build = additional_toolchains != [] | 10 _is_fat_build = additional_toolchains != [] |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 } | 393 } |
| 394 args = [ | 394 args = [ |
| 395 "xcrun", | 395 "xcrun", |
| 396 "lipo", | 396 "lipo", |
| 397 "-create", | 397 "-create", |
| 398 "-output", | 398 "-output", |
| 399 rebase_path(outputs[0], root_build_dir), | 399 rebase_path(outputs[0], root_build_dir), |
| 400 ] + rebase_path(inputs, root_build_dir) | 400 ] + rebase_path(inputs, root_build_dir) |
| 401 | 401 |
| 402 if (enable_dsyms) { | 402 if (enable_dsyms) { |
| 403 outputs += [ "$root_out_dir/$_output_name.dSYM/" ] | 403 _dsyms_dir = "$root_out_dir/$_output_name.dSYM/" |
| 404 outputs += [ |
| 405 "$_dsyms_dir/", |
| 406 "$_dsyms_dir/Contents/Info.plist", |
| 407 "$_dsyms_dir/Contents/Resources/DWARF/$_output_name", |
| 408 ] |
| 404 args += | 409 args += |
| 405 [ "-Wcrl,dsym," + rebase_path("$root_out_dir/.", root_build_dir) ] | 410 [ "-Wcrl,dsym," + rebase_path("$root_out_dir/.", root_build_dir) ] |
| 406 } | 411 } |
| 407 | 412 |
| 408 if (enable_stripping) { | 413 if (enable_stripping) { |
| 409 # Check whether //build/config/mac:strip_all has been removed from | 414 # Check whether //build/config/mac:strip_all has been removed from |
| 410 # the configs variable (as this is how stripping is disabled for a | 415 # the configs variable (as this is how stripping is disabled for a |
| 411 # single target). | 416 # single target). |
| 412 _strip_all_in_config = false | 417 _strip_all_in_config = false |
| 413 if (defined(invoker.configs)) { | 418 if (defined(invoker.configs)) { |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 "deps", | 480 "deps", |
| 476 "public_deps", | 481 "public_deps", |
| 477 "testonly", | 482 "testonly", |
| 478 "visibility", | 483 "visibility", |
| 479 ]) | 484 ]) |
| 480 | 485 |
| 481 if (!defined(deps)) { | 486 if (!defined(deps)) { |
| 482 deps = [] | 487 deps = [] |
| 483 } | 488 } |
| 484 deps += [ ":$_bundle_data_info_plist" ] | 489 deps += [ ":$_bundle_data_info_plist" ] |
| 490 if (!defined(public_deps)) { |
| 491 public_deps = [] |
| 492 } |
| 485 if (ios_enable_code_signing) { | 493 if (ios_enable_code_signing) { |
| 486 if (_is_fat_build) { | 494 if (_is_fat_build) { |
| 487 deps += [ ":$_lipo_executable" ] | 495 public_deps += [ ":$_lipo_executable" ] |
| 488 } else { | 496 } else { |
| 489 deps += [ ":$_link_executable" ] | 497 public_deps += [ ":$_link_executable" ] |
| 490 } | 498 } |
| 491 } else { | 499 } else { |
| 492 deps += [ ":$_bundle_data_executable" ] | 500 public_deps += [ ":$_bundle_data_executable" ] |
| 493 if (defined(invoker.extra_system_frameworks)) { | 501 if (defined(invoker.extra_system_frameworks)) { |
| 494 deps += [ ":${_target_name}_extra_system_frameworks" ] | 502 deps += [ ":${_target_name}_extra_system_frameworks" ] |
| 495 } | 503 } |
| 496 } | 504 } |
| 497 if (defined(invoker.bundle_deps)) { | 505 if (defined(invoker.bundle_deps)) { |
| 498 deps += invoker.bundle_deps | 506 deps += invoker.bundle_deps |
| 499 } | 507 } |
| 500 | 508 |
| 501 if (use_ios_simulator) { | 509 if (use_ios_simulator) { |
| 502 if (!defined(data_deps)) { | 510 if (!defined(data_deps)) { |
| (...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1109 } | 1117 } |
| 1110 args = [ | 1118 args = [ |
| 1111 "xcrun", | 1119 "xcrun", |
| 1112 "lipo", | 1120 "lipo", |
| 1113 "-create", | 1121 "-create", |
| 1114 "-output", | 1122 "-output", |
| 1115 rebase_path(outputs[0], root_build_dir), | 1123 rebase_path(outputs[0], root_build_dir), |
| 1116 ] + rebase_path(inputs, root_build_dir) | 1124 ] + rebase_path(inputs, root_build_dir) |
| 1117 | 1125 |
| 1118 if (enable_dsyms) { | 1126 if (enable_dsyms) { |
| 1119 outputs += [ "$root_out_dir/$_output_name.dSYM/" ] | 1127 _dsyms_dir = "$root_out_dir/$_output_name.dSYM/" |
| 1128 outputs += [ |
| 1129 "$_dsyms_dir/", |
| 1130 "$_dsyms_dir/Contents/Info.plist", |
| 1131 "$_dsyms_dir/Contents/Resources/DWARF/$_output_name", |
| 1132 ] |
| 1120 args += | 1133 args += |
| 1121 [ "-Wcrl,dsym," + rebase_path("$root_out_dir/.", root_build_dir) ] | 1134 [ "-Wcrl,dsym," + rebase_path("$root_out_dir/.", root_build_dir) ] |
| 1122 } | 1135 } |
| 1123 | 1136 |
| 1124 if (enable_stripping) { | 1137 if (enable_stripping) { |
| 1125 # Check whether //build/config/mac:strip_all has been removed from | 1138 # Check whether //build/config/mac:strip_all has been removed from |
| 1126 # the configs variable (as this is how stripping is disabled for a | 1139 # the configs variable (as this is how stripping is disabled for a |
| 1127 # single target). | 1140 # single target). |
| 1128 _strip_all_in_config = false | 1141 _strip_all_in_config = false |
| 1129 if (defined(invoker.configs)) { | 1142 if (defined(invoker.configs)) { |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1464 } | 1477 } |
| 1465 args = [ | 1478 args = [ |
| 1466 "xcrun", | 1479 "xcrun", |
| 1467 "lipo", | 1480 "lipo", |
| 1468 "-create", | 1481 "-create", |
| 1469 "-output", | 1482 "-output", |
| 1470 rebase_path(outputs[0], root_build_dir), | 1483 rebase_path(outputs[0], root_build_dir), |
| 1471 ] + rebase_path(inputs, root_build_dir) | 1484 ] + rebase_path(inputs, root_build_dir) |
| 1472 | 1485 |
| 1473 if (enable_dsyms) { | 1486 if (enable_dsyms) { |
| 1474 outputs += [ "$root_out_dir/$_xctest_output.dSYM/" ] | 1487 _dsyms_dir = "$root_out_dir/$_output_name.dSYM/" |
| 1488 outputs += [ |
| 1489 "$_dsyms_dir/", |
| 1490 "$_dsyms_dir/Contents/Info.plist", |
| 1491 "$_dsyms_dir/Contents/Resources/DWARF/$_output_name", |
| 1492 ] |
| 1475 args += | 1493 args += |
| 1476 [ "-Wcrl,dsym," + rebase_path("$root_out_dir/.", root_build_dir) ] | 1494 [ "-Wcrl,dsym," + rebase_path("$root_out_dir/.", root_build_dir) ] |
| 1477 } | 1495 } |
| 1478 | 1496 |
| 1479 if (enable_stripping) { | 1497 if (enable_stripping) { |
| 1480 # Check whether //build/config/mac:strip_all has been removed from | 1498 # Check whether //build/config/mac:strip_all has been removed from |
| 1481 # the configs variable (as this is how stripping is disabled for a | 1499 # the configs variable (as this is how stripping is disabled for a |
| 1482 # single target). | 1500 # single target). |
| 1483 _strip_all_in_config = false | 1501 _strip_all_in_config = false |
| 1484 if (defined(invoker.configs)) { | 1502 if (defined(invoker.configs)) { |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1621 "-rpath", | 1639 "-rpath", |
| 1622 "-Xlinker", | 1640 "-Xlinker", |
| 1623 "@loader_path/Frameworks", | 1641 "@loader_path/Frameworks", |
| 1624 ] | 1642 ] |
| 1625 } | 1643 } |
| 1626 } | 1644 } |
| 1627 | 1645 |
| 1628 set_defaults("ios_xctest_test") { | 1646 set_defaults("ios_xctest_test") { |
| 1629 configs = default_executable_configs | 1647 configs = default_executable_configs |
| 1630 } | 1648 } |
| OLD | NEW |