| 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 # Generates Info.plist files for Mac apps and frameworks. | 9 # Generates Info.plist files for Mac apps and frameworks. |
| 10 # | 10 # |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 | 200 |
| 201 if (_is_fat_build && !_is_fat_build_main_target) { | 201 if (_is_fat_build && !_is_fat_build_main_target) { |
| 202 # For the non-default toolchain of a fat-build, the template expands to a | 202 # For the non-default toolchain of a fat-build, the template expands to a |
| 203 # single "executable" target that creates "$root_out_dir/$_output_name". | 203 # single "executable" target that creates "$root_out_dir/$_output_name". |
| 204 executable(_target_name) { | 204 executable(_target_name) { |
| 205 forward_variables_from(invoker, | 205 forward_variables_from(invoker, |
| 206 "*", | 206 "*", |
| 207 [ | 207 [ |
| 208 "bundle_deps", | 208 "bundle_deps", |
| 209 "bundle_extension", | 209 "bundle_extension", |
| 210 "deps_filter", |
| 210 "extra_system_frameworks", | 211 "extra_system_frameworks", |
| 211 "entitlements_path", | 212 "entitlements_path", |
| 212 "extra_substitutions", | 213 "extra_substitutions", |
| 213 "info_plist", | 214 "info_plist", |
| 214 "info_plist_target", | 215 "info_plist_target", |
| 215 "output_name", | 216 "output_name", |
| 216 "product_type", | 217 "product_type", |
| 217 ]) | 218 ]) |
| 218 | 219 |
| 219 if (defined(visibility)) { | 220 if (defined(visibility)) { |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 } | 335 } |
| 335 | 336 |
| 336 executable(_link_executable) { | 337 executable(_link_executable) { |
| 337 forward_variables_from(invoker, | 338 forward_variables_from(invoker, |
| 338 "*", | 339 "*", |
| 339 [ | 340 [ |
| 340 "bundle_deps", | 341 "bundle_deps", |
| 341 "bundle_extension", | 342 "bundle_extension", |
| 342 "extra_system_frameworks", | 343 "extra_system_frameworks", |
| 343 "data_deps", | 344 "data_deps", |
| 345 "deps_filter", |
| 344 "entitlements_path", | 346 "entitlements_path", |
| 345 "extra_substitutions", | 347 "extra_substitutions", |
| 346 "info_plist", | 348 "info_plist", |
| 347 "info_plist_target", | 349 "info_plist_target", |
| 348 "output_name", | 350 "output_name", |
| 349 "product_type", | 351 "product_type", |
| 350 "visibility", | 352 "visibility", |
| 351 ]) | 353 ]) |
| 352 | 354 |
| 353 visibility = _link_executable_visibility | 355 visibility = _link_executable_visibility |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 483 "{{bundle_resources_dir}}/Frameworks/{{source_file_part}}", | 485 "{{bundle_resources_dir}}/Frameworks/{{source_file_part}}", |
| 484 ] | 486 ] |
| 485 } | 487 } |
| 486 } | 488 } |
| 487 | 489 |
| 488 create_bundle(target_name) { | 490 create_bundle(target_name) { |
| 489 forward_variables_from(invoker, | 491 forward_variables_from(invoker, |
| 490 [ | 492 [ |
| 491 "data_deps", | 493 "data_deps", |
| 492 "deps", | 494 "deps", |
| 495 "deps_filter", |
| 493 "public_deps", | 496 "public_deps", |
| 494 "testonly", | 497 "testonly", |
| 495 "visibility", | 498 "visibility", |
| 496 ]) | 499 ]) |
| 497 | 500 |
| 498 if (!defined(deps)) { | 501 if (!defined(deps)) { |
| 499 deps = [] | 502 deps = [] |
| 500 } | 503 } |
| 501 deps += [ ":$_bundle_data_info_plist" ] | 504 deps += [ ":$_bundle_data_info_plist" ] |
| 502 if (ios_enable_code_signing) { | 505 if (ios_enable_code_signing) { |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 if (defined(invoker.info_plist_target)) { | 606 if (defined(invoker.info_plist_target)) { |
| 604 assert(invoker.info_plist_target != "", | 607 assert(invoker.info_plist_target != "", |
| 605 "mark invoker.info_plist_target as used") | 608 "mark invoker.info_plist_target as used") |
| 606 } | 609 } |
| 607 if (defined(invoker.product_type)) { | 610 if (defined(invoker.product_type)) { |
| 608 assert(invoker.product_type != "", "mark product_type as used") | 611 assert(invoker.product_type != "", "mark product_type as used") |
| 609 } | 612 } |
| 610 if (defined(invoker.bundle_deps)) { | 613 if (defined(invoker.bundle_deps)) { |
| 611 assert(invoker.bundle_deps != [], "mark bundle_deps as used") | 614 assert(invoker.bundle_deps != [], "mark bundle_deps as used") |
| 612 } | 615 } |
| 616 if (defined(invoker.deps_filter)) { |
| 617 assert(invoker.deps_filter != [], "mark deps_filter as used") |
| 618 } |
| 613 } | 619 } |
| 614 | 620 |
| 615 set_defaults("ios_app_bundle") { | 621 set_defaults("ios_app_bundle") { |
| 616 configs = default_executable_configs | 622 configs = default_executable_configs |
| 617 } | 623 } |
| 618 | 624 |
| 619 # Template to build an application extension bundle for iOS. | 625 # Template to build an application extension bundle for iOS. |
| 620 # | 626 # |
| 621 # This should be used instead of "executable" built-in target type on iOS. | 627 # This should be used instead of "executable" built-in target type on iOS. |
| 622 # As the template forward the generation of the application executable to | 628 # As the template forward the generation of the application executable to |
| (...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1321 "-rpath", | 1327 "-rpath", |
| 1322 "-Xlinker", | 1328 "-Xlinker", |
| 1323 "@loader_path/Frameworks", | 1329 "@loader_path/Frameworks", |
| 1324 ] | 1330 ] |
| 1325 } | 1331 } |
| 1326 } | 1332 } |
| 1327 | 1333 |
| 1328 set_defaults("ios_xctest_test") { | 1334 set_defaults("ios_xctest_test") { |
| 1329 configs = default_executable_configs | 1335 configs = default_executable_configs |
| 1330 } | 1336 } |
| OLD | NEW |