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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 visibility = [ ":$_shared_library_bundle_data" ] | 47 visibility = [ ":$_shared_library_bundle_data" ] |
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 |
| 58 output_prefix_override = true |
| 59 output_extension = "" |
57 } | 60 } |
58 | 61 |
59 bundle_data(_shared_library_bundle_data) { | 62 bundle_data(_shared_library_bundle_data) { |
60 visibility = [ ":$_framework_target" ] | 63 visibility = [ ":$_framework_target" ] |
61 forward_variables_from(invoker, [ "testonly" ]) | 64 forward_variables_from(invoker, [ "testonly" ]) |
62 sources = [ | 65 sources = [ |
63 "$root_out_dir/${shlib_prefix}${_shared_library_target}${shlib_extension}"
, | 66 "$root_out_dir/${_output_name}", |
64 ] | 67 ] |
65 outputs = [ | 68 outputs = [ |
66 "{{bundle_executable_dir}}/$_output_name", | 69 "{{bundle_executable_dir}}/$_output_name", |
67 ] | 70 ] |
68 public_deps = [ | 71 public_deps = [ |
69 ":$_shared_library_target", | 72 ":$_shared_library_target", |
70 ] | 73 ] |
71 } | 74 } |
72 | 75 |
73 create_bundle(_framework_target) { | 76 create_bundle(_framework_target) { |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 | 164 |
162 framework_bundle(target_name) { | 165 framework_bundle(target_name) { |
163 forward_variables_from(invoker, "*", [ "info_plist" ]) | 166 forward_variables_from(invoker, "*", [ "info_plist" ]) |
164 | 167 |
165 if (!defined(deps)) { | 168 if (!defined(deps)) { |
166 deps = [] | 169 deps = [] |
167 } | 170 } |
168 deps += [ ":$_info_plist_bundle_data" ] | 171 deps += [ ":$_info_plist_bundle_data" ] |
169 } | 172 } |
170 } | 173 } |
OLD | NEW |