| 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 "data_deps", | 165 "data_deps", |
| 166 "entitlements_path", | 166 "entitlements_path", |
| 167 "info_plist", | 167 "info_plist", |
| 168 "info_plist_target", | 168 "info_plist_target", |
| 169 "output_name", | 169 "output_name", |
| 170 "product_type", | 170 "product_type", |
| 171 "visibility", | 171 "visibility", |
| 172 ]) | 172 ]) |
| 173 | 173 |
| 174 output_name = rebase_path("$target_gen_dir/$_output_name", root_out_dir) | 174 output_name = rebase_path("$target_gen_dir/$_output_name", root_out_dir) |
| 175 output_prefix_override = true |
| 176 |
| 175 if (!defined(libs)) { | 177 if (!defined(libs)) { |
| 176 libs = [] | 178 libs = [] |
| 177 } | 179 } |
| 178 libs += [ "UIKit.framework" ] | 180 libs += [ "UIKit.framework" ] |
| 179 if (!defined(ldflags)) { | 181 if (!defined(ldflags)) { |
| 180 ldflags = [] | 182 ldflags = [] |
| 181 } | 183 } |
| 182 ldflags += [ "-ObjC" ] | 184 ldflags += [ "-ObjC" ] |
| 183 } | 185 } |
| 184 | 186 |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 "*.cc", | 443 "*.cc", |
| 442 "*.cpp", | 444 "*.cpp", |
| 443 "*.m", | 445 "*.m", |
| 444 "*.mm", | 446 "*.mm", |
| 445 ]) | 447 ]) |
| 446 sources = invoker.sources | 448 sources = invoker.sources |
| 447 set_sources_assignment_filter([]) | 449 set_sources_assignment_filter([]) |
| 448 | 450 |
| 449 args = [ | 451 args = [ |
| 450 rebase_path(_header_map_filename), | 452 rebase_path(_header_map_filename), |
| 451 rebase_path(_framework_root, root_out_dir), | 453 rebase_path(_framework_root, root_build_dir), |
| 452 ] + rebase_path(sources, root_out_dir) | 454 ] + rebase_path(sources, root_build_dir) |
| 453 } | 455 } |
| 454 | 456 |
| 455 _create_module_map_target = _target_name + "_module_map" | 457 _create_module_map_target = _target_name + "_module_map" |
| 456 action(_create_module_map_target) { | 458 action(_create_module_map_target) { |
| 457 visibility = [ ":$_framework_headers_target" ] | 459 visibility = [ ":$_framework_headers_target" ] |
| 458 script = "//build/config/ios/write_framework_modulemap.py" | 460 script = "//build/config/ios/write_framework_modulemap.py" |
| 459 outputs = [ | 461 outputs = [ |
| 460 "$_framework_root/Modules/module.modulemap", | 462 "$_framework_root/Modules/module.modulemap", |
| 461 ] | 463 ] |
| 462 args = [ rebase_path("$_framework_root", root_out_dir) ] | 464 args = [ rebase_path("$_framework_root", root_build_dir) ] |
| 463 } | 465 } |
| 464 | 466 |
| 465 _copy_public_headers_target = _target_name + "_copy_public_headers" | 467 _copy_public_headers_target = _target_name + "_copy_public_headers" |
| 466 copy(_copy_public_headers_target) { | 468 copy(_copy_public_headers_target) { |
| 467 visibility = [ ":$_framework_headers_target" ] | 469 visibility = [ ":$_framework_headers_target" ] |
| 468 sources = _public_headers | 470 sources = _public_headers |
| 469 outputs = [ | 471 outputs = [ |
| 470 "$_framework_root/Headers/{{source_file_part}}", | 472 "$_framework_root/Headers/{{source_file_part}}", |
| 471 ] | 473 ] |
| 472 } | 474 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 487 ":$_copy_public_headers_target", | 489 ":$_copy_public_headers_target", |
| 488 ":$_create_module_map_target", | 490 ":$_create_module_map_target", |
| 489 ] | 491 ] |
| 490 } | 492 } |
| 491 } | 493 } |
| 492 | 494 |
| 493 _framework_public_config = _target_name + "_ios_public_config" | 495 _framework_public_config = _target_name + "_ios_public_config" |
| 494 config(_framework_public_config) { | 496 config(_framework_public_config) { |
| 495 visibility = [ ":$_framework_public_config" ] | 497 visibility = [ ":$_framework_public_config" ] |
| 496 if (defined(_public_headers)) { | 498 if (defined(_public_headers)) { |
| 497 common_flags = [ "-F" + rebase_path("$root_out_dir/.", root_out_dir) ] | 499 common_flags = [ "-F" + rebase_path("$root_out_dir/.", root_build_dir) ] |
| 498 cflags_objc = common_flags | 500 cflags_objc = common_flags |
| 499 cflags_objcc = common_flags | 501 cflags_objcc = common_flags |
| 500 } | 502 } |
| 501 | 503 |
| 502 # The link settings are inherited from the framework_bundle config. | 504 # The link settings are inherited from the framework_bundle config. |
| 503 } | 505 } |
| 504 | 506 |
| 505 framework_bundle(_framework_target) { | 507 framework_bundle(_framework_target) { |
| 506 forward_variables_from(invoker, | 508 forward_variables_from(invoker, |
| 507 "*", | 509 "*", |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 559 [ | 561 [ |
| 560 "testonly", | 562 "testonly", |
| 561 "visibility", | 563 "visibility", |
| 562 ]) | 564 ]) |
| 563 public_deps = [ | 565 public_deps = [ |
| 564 ":$_framework_target+link", | 566 ":$_framework_target+link", |
| 565 ] | 567 ] |
| 566 } | 568 } |
| 567 } | 569 } |
| 568 } | 570 } |
| OLD | NEW |