| 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 import("//build/config/mac/symbols.gni") | 7 import("//build/config/mac/symbols.gni") |
| 8 import("//build/toolchain/toolchain.gni") | 8 import("//build/toolchain/toolchain.gni") |
| 9 | 9 |
| 10 # Invokes lipo on multiple arch-specific binaries to create a fat binary. | 10 # Invokes lipo on multiple arch-specific binaries to create a fat binary. |
| (...skipping 1151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1162 assert(invoker.bundle_deps != [], "mark bundle_deps as used") | 1162 assert(invoker.bundle_deps != [], "mark bundle_deps as used") |
| 1163 } | 1163 } |
| 1164 } else { | 1164 } else { |
| 1165 if (_has_public_headers) { | 1165 if (_has_public_headers) { |
| 1166 _public_headers = invoker.public_headers | 1166 _public_headers = invoker.public_headers |
| 1167 _framework_root = "$root_out_dir/$_output_name.framework" | 1167 _framework_root = "$root_out_dir/$_output_name.framework" |
| 1168 | 1168 |
| 1169 _compile_headers_map_target = _target_name + "_compile_headers_map" | 1169 _compile_headers_map_target = _target_name + "_compile_headers_map" |
| 1170 action(_compile_headers_map_target) { | 1170 action(_compile_headers_map_target) { |
| 1171 visibility = [ ":$_framework_headers_target" ] | 1171 visibility = [ ":$_framework_headers_target" ] |
| 1172 forward_variables_from(invoker, |
| 1173 [ |
| 1174 "deps", |
| 1175 "public_deps", |
| 1176 "testonly", |
| 1177 ]) |
| 1172 script = "//build/config/ios/write_framework_hmap.py" | 1178 script = "//build/config/ios/write_framework_hmap.py" |
| 1173 outputs = [ | 1179 outputs = [ |
| 1174 _header_map_filename, | 1180 _header_map_filename, |
| 1175 ] | 1181 ] |
| 1176 | 1182 |
| 1177 # The header map generation only wants the list of headers, not all of | 1183 # The header map generation only wants the list of headers, not all of |
| 1178 # sources, so filter any non-header source files from "sources". It is | 1184 # sources, so filter any non-header source files from "sources". It is |
| 1179 # less error prone that having the developer duplicate the list of all | 1185 # less error prone that having the developer duplicate the list of all |
| 1180 # headers in addition to "sources". | 1186 # headers in addition to "sources". |
| 1181 set_sources_assignment_filter([ | 1187 set_sources_assignment_filter([ |
| (...skipping 25 matching lines...) Expand all Loading... |
| 1207 _copy_public_headers_target = _target_name + "_copy_public_headers" | 1213 _copy_public_headers_target = _target_name + "_copy_public_headers" |
| 1208 copy(_copy_public_headers_target) { | 1214 copy(_copy_public_headers_target) { |
| 1209 visibility = [ ":$_framework_headers_target" ] | 1215 visibility = [ ":$_framework_headers_target" ] |
| 1210 sources = _public_headers | 1216 sources = _public_headers |
| 1211 outputs = [ | 1217 outputs = [ |
| 1212 "$_framework_root/Headers/{{source_file_part}}", | 1218 "$_framework_root/Headers/{{source_file_part}}", |
| 1213 ] | 1219 ] |
| 1214 } | 1220 } |
| 1215 | 1221 |
| 1216 group(_framework_headers_target) { | 1222 group(_framework_headers_target) { |
| 1223 forward_variables_from(invoker, [ "testonly" ]) |
| 1217 deps = [ | 1224 deps = [ |
| 1218 ":$_compile_headers_map_target", | 1225 ":$_compile_headers_map_target", |
| 1219 ":$_copy_public_headers_target", | 1226 ":$_copy_public_headers_target", |
| 1220 ":$_create_module_map_target", | 1227 ":$_create_module_map_target", |
| 1221 ] | 1228 ] |
| 1222 } | 1229 } |
| 1223 } | 1230 } |
| 1224 | 1231 |
| 1225 lipo_binary(_lipo_shared_library_target) { | 1232 lipo_binary(_lipo_shared_library_target) { |
| 1226 forward_variables_from(invoker, | 1233 forward_variables_from(invoker, |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1507 "-rpath", | 1514 "-rpath", |
| 1508 "-Xlinker", | 1515 "-Xlinker", |
| 1509 "@loader_path/Frameworks", | 1516 "@loader_path/Frameworks", |
| 1510 ] | 1517 ] |
| 1511 } | 1518 } |
| 1512 } | 1519 } |
| 1513 | 1520 |
| 1514 set_defaults("ios_xctest_test") { | 1521 set_defaults("ios_xctest_test") { |
| 1515 configs = default_executable_configs | 1522 configs = default_executable_configs |
| 1516 } | 1523 } |
| OLD | NEW |