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 | 7 |
8 # Generates Info.plist files for Mac apps and frameworks. | 8 # Generates Info.plist files for Mac apps and frameworks. |
9 # | 9 # |
10 # Arguments | 10 # Arguments |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 } | 431 } |
432 if (defined(invoker.info_plist_target)) { | 432 if (defined(invoker.info_plist_target)) { |
433 assert(invoker.info_plist_target != "", | 433 assert(invoker.info_plist_target != "", |
434 "mark invoker.info_plist_target as used") | 434 "mark invoker.info_plist_target as used") |
435 } | 435 } |
436 if (defined(invoker.product_type)) { | 436 if (defined(invoker.product_type)) { |
437 assert(invoker.product_type != "", "mark product_type as used") | 437 assert(invoker.product_type != "", "mark product_type as used") |
438 } | 438 } |
439 } | 439 } |
440 | 440 |
| 441 set_defaults("ios_app_bundle") { |
| 442 configs = default_executable_configs |
| 443 } |
| 444 |
441 # Template to build an application extension bundle for iOS. | 445 # Template to build an application extension bundle for iOS. |
442 # | 446 # |
443 # This should be used instead of "executable" built-in target type on iOS. | 447 # This should be used instead of "executable" built-in target type on iOS. |
444 # As the template forward the generation of the application executable to | 448 # As the template forward the generation of the application executable to |
445 # an "executable" target, all arguments supported by "executable" targets | 449 # an "executable" target, all arguments supported by "executable" targets |
446 # are also supported by this template. | 450 # are also supported by this template. |
447 # | 451 # |
448 # Arguments | 452 # Arguments |
449 # | 453 # |
450 # output_name: | 454 # output_name: |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 ldflags = [] | 487 ldflags = [] |
484 } | 488 } |
485 ldflags += [ | 489 ldflags += [ |
486 "-e", | 490 "-e", |
487 "_NSExtensionMain", | 491 "_NSExtensionMain", |
488 "-fapplication-extension", | 492 "-fapplication-extension", |
489 ] | 493 ] |
490 } | 494 } |
491 } | 495 } |
492 | 496 |
| 497 set_defaults("ios_appex_bundle") { |
| 498 configs = default_executable_configs |
| 499 } |
| 500 |
493 # Compile a xib or storyboard file and add it to a bundle_data so that it is | 501 # Compile a xib or storyboard file and add it to a bundle_data so that it is |
494 # available at runtime in the bundle. | 502 # available at runtime in the bundle. |
495 # | 503 # |
496 # Arguments | 504 # Arguments |
497 # | 505 # |
498 # source: | 506 # source: |
499 # string, path of the xib or storyboard to compile. | 507 # string, path of the xib or storyboard to compile. |
500 # | 508 # |
501 # Forwards all variables to the bundle_data target. | 509 # Forwards all variables to the bundle_data target. |
502 template("bundle_data_xib") { | 510 template("bundle_data_xib") { |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
777 [ | 785 [ |
778 "testonly", | 786 "testonly", |
779 "visibility", | 787 "visibility", |
780 ]) | 788 ]) |
781 public_deps = [ | 789 public_deps = [ |
782 ":$_framework_target+link", | 790 ":$_framework_target+link", |
783 ] | 791 ] |
784 } | 792 } |
785 } | 793 } |
786 } | 794 } |
| 795 |
| 796 set_defaults("ios_framework_bundle") { |
| 797 configs = default_shared_library_configs |
| 798 } |
OLD | NEW |