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

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

Issue 2237233002: Clean up GN template code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | build/toolchain/mac/BUILD.gn » ('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 _is_secondary_build = 9 _is_secondary_build =
10 additional_toolchains != [] && current_toolchain != default_toolchain 10 additional_toolchains != [] && current_toolchain != default_toolchain
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 # so do not use rebase_path here. 492 # so do not use rebase_path here.
493 foreach(_framework, invoker.extra_system_frameworks) { 493 foreach(_framework, invoker.extra_system_frameworks) {
494 code_signing_args += [ "-F=" + _framework ] 494 code_signing_args += [ "-F=" + _framework ]
495 } 495 }
496 } 496 }
497 if (!ios_enable_code_signing) { 497 if (!ios_enable_code_signing) {
498 code_signing_args += [ "--disable-code-signature" ] 498 code_signing_args += [ "--disable-code-signature" ]
499 } 499 }
500 } 500 }
501 } 501 }
502
503 # TODO(crbug.com/395883): ensure those variables are marked as used to
sdefresne 2016/08/11 23:23:03 Those are removed as part of https://codereview.ch
504 # avoid errors while running "gn gen".
505 if (defined(invoker.entitlements_path)) {
506 assert(invoker.entitlements_path != "",
507 "mark invoker.entitlements_path as used")
508 }
509 if (defined(invoker.bundle_extension)) {
510 assert(invoker.bundle_extension != "",
511 "mark invoker.bundle_extension as used")
512 }
513 if (defined(invoker.bundle_extension)) {
514 assert(invoker.bundle_extension != "",
515 "mark invoker.bundle_extension as used")
516 }
517 if (defined(invoker.entitlements_path)) {
518 assert(invoker.entitlements_path != "",
519 "mark invoker.entitlements_path as used")
520 }
521 if (defined(invoker.extra_substitutions)) {
522 assert(invoker.extra_substitutions != [],
523 "mark invoker.extra_substitutions as used")
524 }
525 if (defined(invoker.info_plist)) {
526 assert(invoker.info_plist != "", "mark invoker.info_plist as used")
527 }
528 if (defined(invoker.info_plist_target)) {
529 assert(invoker.info_plist_target != "",
530 "mark invoker.info_plist_target as used")
531 }
532 if (defined(invoker.product_type)) {
533 assert(invoker.product_type != "", "mark product_type as used")
534 }
535 if (defined(invoker.bundle_deps)) {
536 assert(invoker.bundle_deps != [], "mark bundle_deps as used")
537 }
538 if (defined(invoker.bundle_deps_filter)) {
539 assert(invoker.bundle_deps_filter != [], "mark bundle_deps_filter as used")
540 }
541 } 502 }
542 503
543 set_defaults("ios_app_bundle") { 504 set_defaults("ios_app_bundle") {
544 configs = default_executable_configs 505 configs = default_executable_configs
545 } 506 }
546 507
547 # Template to build an application extension bundle for iOS. 508 # Template to build an application extension bundle for iOS.
548 # 509 #
549 # This should be used instead of "executable" built-in target type on iOS. 510 # This should be used instead of "executable" built-in target type on iOS.
550 # As the template forward the generation of the application executable to 511 # As the template forward the generation of the application executable to
(...skipping 929 matching lines...) Expand 10 before | Expand all | Expand 10 after
1480 "-rpath", 1441 "-rpath",
1481 "-Xlinker", 1442 "-Xlinker",
1482 "@loader_path/Frameworks", 1443 "@loader_path/Frameworks",
1483 ] 1444 ]
1484 } 1445 }
1485 } 1446 }
1486 1447
1487 set_defaults("ios_xctest_test") { 1448 set_defaults("ios_xctest_test") {
1488 configs = default_executable_configs 1449 configs = default_executable_configs
1489 } 1450 }
OLDNEW
« no previous file with comments | « no previous file | build/toolchain/mac/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698