Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: build/config/ios/rules.gni

Issue 2205693005: Add bundle_deps_filter to create_bundle targets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix value of kBundleDepsFilter. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | tools/gn/bundle_data.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 } 187 }
188 188
189 if (_is_fat_build && !_is_fat_build_main_target) { 189 if (_is_fat_build && !_is_fat_build_main_target) {
190 # For the non-default toolchain of a fat-build, the template expands to a 190 # For the non-default toolchain of a fat-build, the template expands to a
191 # single "executable" target that creates "$root_out_dir/$_output_name". 191 # single "executable" target that creates "$root_out_dir/$_output_name".
192 executable(_target_name) { 192 executable(_target_name) {
193 forward_variables_from(invoker, 193 forward_variables_from(invoker,
194 "*", 194 "*",
195 [ 195 [
196 "bundle_deps", 196 "bundle_deps",
197 "bundle_deps_filter",
197 "bundle_extension", 198 "bundle_extension",
198 "extra_system_frameworks",
199 "entitlements_path", 199 "entitlements_path",
200 "extra_substitutions", 200 "extra_substitutions",
201 "extra_system_frameworks",
201 "info_plist", 202 "info_plist",
202 "info_plist_target", 203 "info_plist_target",
203 "output_name", 204 "output_name",
204 "product_type", 205 "product_type",
205 ]) 206 ])
206 207
207 if (defined(visibility)) { 208 if (defined(visibility)) {
208 visibility += [ ":*($default_toolchain)" ] 209 visibility += [ ":*($default_toolchain)" ]
209 } 210 }
210 211
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 _link_executable_visibility = [] 315 _link_executable_visibility = []
315 _link_executable_visibility = [ ":$_lipo_executable" ] 316 _link_executable_visibility = [ ":$_lipo_executable" ]
316 _link_executable = _target_name + "_arch_executable" 317 _link_executable = _target_name + "_arch_executable"
317 } 318 }
318 319
319 executable(_link_executable) { 320 executable(_link_executable) {
320 forward_variables_from(invoker, 321 forward_variables_from(invoker,
321 "*", 322 "*",
322 [ 323 [
323 "bundle_deps", 324 "bundle_deps",
325 "bundle_deps_filter",
324 "bundle_extension", 326 "bundle_extension",
325 "extra_system_frameworks",
326 "data_deps", 327 "data_deps",
327 "entitlements_path", 328 "entitlements_path",
328 "extra_substitutions", 329 "extra_substitutions",
330 "extra_system_frameworks",
329 "info_plist", 331 "info_plist",
330 "info_plist_target", 332 "info_plist_target",
331 "output_name", 333 "output_name",
332 "product_type", 334 "product_type",
333 "visibility", 335 "visibility",
334 ]) 336 ])
335 337
336 visibility = _link_executable_visibility 338 visibility = _link_executable_visibility
337 339
338 output_name = _output_name 340 output_name = _output_name
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 sources = invoker.extra_system_frameworks 466 sources = invoker.extra_system_frameworks
465 outputs = [ 467 outputs = [
466 "{{bundle_resources_dir}}/Frameworks/{{source_file_part}}", 468 "{{bundle_resources_dir}}/Frameworks/{{source_file_part}}",
467 ] 469 ]
468 } 470 }
469 } 471 }
470 472
471 create_bundle(target_name) { 473 create_bundle(target_name) {
472 forward_variables_from(invoker, 474 forward_variables_from(invoker,
473 [ 475 [
476 "bundle_deps_filter",
474 "data_deps", 477 "data_deps",
475 "deps", 478 "deps",
476 "public_deps", 479 "public_deps",
477 "testonly", 480 "testonly",
478 "visibility", 481 "visibility",
479 ]) 482 ])
480 483
481 if (!defined(deps)) { 484 if (!defined(deps)) {
482 deps = [] 485 deps = []
483 } 486 }
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 if (defined(invoker.info_plist_target)) { 589 if (defined(invoker.info_plist_target)) {
587 assert(invoker.info_plist_target != "", 590 assert(invoker.info_plist_target != "",
588 "mark invoker.info_plist_target as used") 591 "mark invoker.info_plist_target as used")
589 } 592 }
590 if (defined(invoker.product_type)) { 593 if (defined(invoker.product_type)) {
591 assert(invoker.product_type != "", "mark product_type as used") 594 assert(invoker.product_type != "", "mark product_type as used")
592 } 595 }
593 if (defined(invoker.bundle_deps)) { 596 if (defined(invoker.bundle_deps)) {
594 assert(invoker.bundle_deps != [], "mark bundle_deps as used") 597 assert(invoker.bundle_deps != [], "mark bundle_deps as used")
595 } 598 }
599 if (defined(invoker.bundle_deps_filter)) {
600 assert(invoker.bundle_deps_filter != [], "mark bundle_deps_filter as used")
601 }
596 } 602 }
597 603
598 set_defaults("ios_app_bundle") { 604 set_defaults("ios_app_bundle") {
599 configs = default_executable_configs 605 configs = default_executable_configs
600 } 606 }
601 607
602 # Template to build an application extension bundle for iOS. 608 # Template to build an application extension bundle for iOS.
603 # 609 #
604 # This should be used instead of "executable" built-in target type on iOS. 610 # This should be used instead of "executable" built-in target type on iOS.
605 # As the template forward the generation of the application executable to 611 # As the template forward the generation of the application executable to
(...skipping 1015 matching lines...) Expand 10 before | Expand all | Expand 10 after
1621 "-rpath", 1627 "-rpath",
1622 "-Xlinker", 1628 "-Xlinker",
1623 "@loader_path/Frameworks", 1629 "@loader_path/Frameworks",
1624 ] 1630 ]
1625 } 1631 }
1626 } 1632 }
1627 1633
1628 set_defaults("ios_xctest_test") { 1634 set_defaults("ios_xctest_test") {
1629 configs = default_executable_configs 1635 configs = default_executable_configs
1630 } 1636 }
OLDNEW
« no previous file with comments | « no previous file | tools/gn/bundle_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698