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

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

Issue 2273403003: Moving gRPC support interfaces out of cronet and into a new component. (Closed)
Patch Set: Add README Created 4 years, 2 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
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 # Invokes lipo on multiple arch-specific binaries to create a fat binary. 9 # Invokes lipo on multiple arch-specific binaries to create a fat binary.
10 # 10 #
(...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after
997 _header_map_filename = "$target_gen_dir/$_output_name.headers.hmap" 997 _header_map_filename = "$target_gen_dir/$_output_name.headers.hmap"
998 998
999 _compile_headers_map_target = _target_name + "_compile_headers_map" 999 _compile_headers_map_target = _target_name + "_compile_headers_map"
1000 action(_compile_headers_map_target) { 1000 action(_compile_headers_map_target) {
1001 visibility = [ ":$_framework_headers_target" ] 1001 visibility = [ ":$_framework_headers_target" ]
1002 script = "//build/config/ios/write_framework_hmap.py" 1002 script = "//build/config/ios/write_framework_hmap.py"
1003 outputs = [ 1003 outputs = [
1004 _header_map_filename, 1004 _header_map_filename,
1005 ] 1005 ]
1006 1006
1007 forward_variables_from(invoker,
1008 [
1009 "deps",
1010 "public_deps",
1011 "testonly",
1012 ])
1013
1007 # The header map generation only wants the list of headers, not all of 1014 # The header map generation only wants the list of headers, not all of
1008 # sources, so filter any non-header source files from "sources". It is 1015 # sources, so filter any non-header source files from "sources". It is
1009 # less error prone that having the developer duplicate the list of all 1016 # less error prone that having the developer duplicate the list of all
1010 # headers in addition to "sources". 1017 # headers in addition to "sources".
1011 set_sources_assignment_filter([ 1018 set_sources_assignment_filter([
1012 "*.c", 1019 "*.c",
1013 "*.cc", 1020 "*.cc",
1014 "*.cpp", 1021 "*.cpp",
1015 "*.m", 1022 "*.m",
1016 "*.mm", 1023 "*.mm",
1017 ]) 1024 ])
1018 sources = invoker.sources 1025 sources = invoker.sources
1019 set_sources_assignment_filter([]) 1026 set_sources_assignment_filter([])
1020 1027
1028 # Add public_headers in case any of these files included in sources.
1029 if (defined(invoker.public_headers)) {
1030 sources += invoker.public_headers
1031 }
1032
1021 args = [ 1033 args = [
1022 rebase_path(_header_map_filename), 1034 rebase_path(_header_map_filename),
1023 rebase_path(_framework_root, root_build_dir), 1035 rebase_path(_framework_root, root_build_dir),
1024 ] + rebase_path(sources, root_build_dir) 1036 ] + rebase_path(sources, root_build_dir)
1025 } 1037 }
1026 1038
1027 _create_module_map_target = _target_name + "_module_map" 1039 _create_module_map_target = _target_name + "_module_map"
1028 action(_create_module_map_target) { 1040 action(_create_module_map_target) {
1029 visibility = [ ":$_framework_headers_target" ] 1041 visibility = [ ":$_framework_headers_target" ]
1030 script = "//build/config/ios/write_framework_modulemap.py" 1042 script = "//build/config/ios/write_framework_modulemap.py"
1031 outputs = [ 1043 outputs = [
1032 "$_framework_root/Modules/module.modulemap", 1044 "$_framework_root/Modules/module.modulemap",
1033 ] 1045 ]
1034 args = [ rebase_path("$_framework_root", root_build_dir) ] 1046 args = [ rebase_path("$_framework_root", root_build_dir) ]
1035 } 1047 }
1036 1048
1037 _copy_public_headers_target = _target_name + "_copy_public_headers" 1049 _copy_public_headers_target = _target_name + "_copy_public_headers"
1038 copy(_copy_public_headers_target) { 1050 copy(_copy_public_headers_target) {
1039 visibility = [ ":$_framework_headers_target" ] 1051 visibility = [ ":$_framework_headers_target" ]
1040 sources = _public_headers 1052 sources = _public_headers
1041 outputs = [ 1053 outputs = [
1042 "$_framework_root/Headers/{{source_file_part}}", 1054 "$_framework_root/Headers/{{source_file_part}}",
1043 ] 1055 ]
1056 forward_variables_from(invoker,
1057 [
1058 "deps",
1059 "public_deps",
1060 "testonly",
1061 ])
1044 } 1062 }
1045 1063
1046 config(_headers_map_config) { 1064 config(_headers_map_config) {
1047 visibility = [ ":$_target_name" ] 1065 visibility = [ ":$_target_name" ]
1048 include_dirs = [ _header_map_filename ] 1066 include_dirs = [ _header_map_filename ]
1049 } 1067 }
1050 1068
1051 group(_framework_headers_target) { 1069 group(_framework_headers_target) {
1052 deps = [ 1070 deps = [
1053 ":$_compile_headers_map_target", 1071 ":$_compile_headers_map_target",
1054 ":$_copy_public_headers_target", 1072 ":$_copy_public_headers_target",
1055 ":$_create_module_map_target", 1073 ":$_create_module_map_target",
1056 ] 1074 ]
1075 forward_variables_from(invoker, [ "testonly" ])
1057 } 1076 }
1058 1077
1059 config(_framework_headers_config) { 1078 config(_framework_headers_config) {
1060 # The link settings are inherited from the framework_bundle config. 1079 # The link settings are inherited from the framework_bundle config.
1061 cflags = [ 1080 cflags = [
1062 "-F", 1081 "-F",
1063 rebase_path("$root_out_dir/.", root_build_dir), 1082 rebase_path("$root_out_dir/.", root_build_dir),
1064 ] 1083 ]
1065 } 1084 }
1066 } 1085 }
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
1341 "-rpath", 1360 "-rpath",
1342 "-Xlinker", 1361 "-Xlinker",
1343 "@loader_path/Frameworks", 1362 "@loader_path/Frameworks",
1344 ] 1363 ]
1345 } 1364 }
1346 } 1365 }
1347 1366
1348 set_defaults("ios_xctest_test") { 1367 set_defaults("ios_xctest_test") {
1349 configs = default_executable_configs 1368 configs = default_executable_configs
1350 } 1369 }
OLDNEW
« no previous file with comments | « blimp/client/BUILD.gn ('k') | components/cronet/DEPS » ('j') | components/grpc_support/README.md » ('J')

Powered by Google App Engine
This is Rietveld 408576698