Chromium Code Reviews| 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/toolchain/toolchain.gni") | 5 import("//build/toolchain/toolchain.gni") |
| 6 | 6 |
| 7 # This is used as the base template for both iOS and Mac frameworks.. | 7 # This is used as the base template for both iOS and Mac frameworks.. |
| 8 # | 8 # |
| 9 # Arguments | 9 # Arguments |
| 10 # | 10 # |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 48 forward_variables_from(invoker, | 48 forward_variables_from(invoker, |
| 49 "*", | 49 "*", |
| 50 [ | 50 [ |
| 51 "assert_no_deps", | 51 "assert_no_deps", |
| 52 "data_deps", | 52 "data_deps", |
| 53 "info_plist", | 53 "info_plist", |
| 54 "output_name", | 54 "output_name", |
| 55 "visibility", | 55 "visibility", |
| 56 ]) | 56 ]) |
| 57 output_name = _output_name | 57 output_name = _output_name |
| 58 output_prefix_override = true | 58 ldflags = [ |
| 59 output_extension = "" | 59 "-install_name", |
| 60 "@rpath/$_framework_name/$_output_name", | |
|
Robert Sesek
2016/04/13 15:30:58
This isn't going to be correct in all cases, and d
sdefresne
2016/04/13 16:28:43
OK. This appears to be required for iOS (at least
| |
| 61 ] | |
| 60 } | 62 } |
| 61 | 63 |
| 62 bundle_data(_shared_library_bundle_data) { | 64 bundle_data(_shared_library_bundle_data) { |
| 63 visibility = [ ":$_framework_target" ] | 65 visibility = [ ":$_framework_target" ] |
| 64 forward_variables_from(invoker, [ "testonly" ]) | 66 forward_variables_from(invoker, [ "testonly" ]) |
| 65 sources = [ | 67 sources = [ |
| 66 "$root_out_dir/${_output_name}", | 68 "$root_out_dir/$shlib_prefix$_output_name$shlib_extension", |
| 67 ] | 69 ] |
| 68 outputs = [ | 70 outputs = [ |
| 69 "{{bundle_executable_dir}}/$_output_name", | 71 "{{bundle_executable_dir}}/$_output_name", |
| 70 ] | 72 ] |
| 71 public_deps = [ | 73 public_deps = [ |
| 72 ":$_shared_library_target", | 74 ":$_shared_library_target", |
| 73 ] | 75 ] |
| 74 } | 76 } |
| 75 | 77 |
| 76 create_bundle(_framework_target) { | 78 create_bundle(_framework_target) { |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 164 | 166 |
| 165 framework_bundle(target_name) { | 167 framework_bundle(target_name) { |
| 166 forward_variables_from(invoker, "*", [ "info_plist" ]) | 168 forward_variables_from(invoker, "*", [ "info_plist" ]) |
| 167 | 169 |
| 168 if (!defined(deps)) { | 170 if (!defined(deps)) { |
| 169 deps = [] | 171 deps = [] |
| 170 } | 172 } |
| 171 deps += [ ":$_info_plist_bundle_data" ] | 173 deps += [ ":$_info_plist_bundle_data" ] |
| 172 } | 174 } |
| 173 } | 175 } |
| OLD | NEW |