OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 if (is_android) { | 7 if (is_android) { |
8 import("//build/config/android/rules.gni") | 8 import("//build/config/android/rules.gni") |
9 } | 9 } |
10 | 10 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 lib_dirs = invoker.lib_dirs | 72 lib_dirs = invoker.lib_dirs |
73 } | 73 } |
74 if (defined(invoker.libs)) { | 74 if (defined(invoker.libs)) { |
75 libs = invoker.libs | 75 libs = invoker.libs |
76 } | 76 } |
77 | 77 |
78 data_deps = [] | 78 data_deps = [] |
79 if (!defined(invoker.avoid_runner_cycle) || !invoker.avoid_runner_cycle) { | 79 if (!defined(invoker.avoid_runner_cycle) || !invoker.avoid_runner_cycle) { |
80 # Give the user an out; as some mojo services are depended on by the | 80 # Give the user an out; as some mojo services are depended on by the |
81 # runner. | 81 # runner. |
82 data_deps += [ "//mojo/runner:mojo_runner" ] | 82 data_deps += [ "//mojo/shell/standalone" ] |
83 } | 83 } |
84 if (defined(invoker.data_deps)) { | 84 if (defined(invoker.data_deps)) { |
85 data_deps += invoker.data_deps | 85 data_deps += invoker.data_deps |
86 } | 86 } |
87 | 87 |
88 deps = [ | 88 deps = [ |
89 "//mojo/platform_handle:for_shared_library", | 89 "//mojo/platform_handle:for_shared_library", |
90 "//mojo/public/c/system:for_shared_library", | 90 "//mojo/public/c/system:for_shared_library", |
91 "//mojo/public/gles2:for_shared_library", | 91 "//mojo/public/gles2:for_shared_library", |
92 ] | 92 ] |
(...skipping 26 matching lines...) Expand all Loading... |
119 if (defined(invoker.sources)) { | 119 if (defined(invoker.sources)) { |
120 sources = invoker.sources | 120 sources = invoker.sources |
121 } | 121 } |
122 if (defined(invoker.testonly)) { | 122 if (defined(invoker.testonly)) { |
123 testonly = invoker.testonly | 123 testonly = invoker.testonly |
124 } | 124 } |
125 } | 125 } |
126 | 126 |
127 copy(final_target_name) { | 127 copy(final_target_name) { |
128 forward_variables_from(invoker, | 128 forward_variables_from(invoker, |
129 [ | 129 [ |
130 "testonly", | 130 "testonly", |
131 "visibility", | 131 "visibility", |
132 ]) | 132 ]) |
133 deps = [ | 133 deps = [ |
134 ":${library_target_name}", | 134 ":${library_target_name}", |
135 ] | 135 ] |
136 | 136 |
137 sources = [ | 137 sources = [ |
138 "${root_shlib_dir}/${library_name}", | 138 "${root_shlib_dir}/${library_name}", |
139 ] | 139 ] |
140 outputs = [ | 140 outputs = [ |
141 "${root_out_dir}/${base_target_name}/${output}", | 141 "${root_out_dir}/${base_target_name}/${output}", |
142 ] | 142 ] |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 renaming_destinations = [ "${base_target_name}/${base_target_name}.mojo" ] | 275 renaming_destinations = [ "${base_target_name}/${base_target_name}.mojo" ] |
276 if (defined(invoker.resources)) { | 276 if (defined(invoker.resources)) { |
277 renaming_sources += invoker.resources | 277 renaming_sources += invoker.resources |
278 renaming_destinations += process_file_template( | 278 renaming_destinations += process_file_template( |
279 invoker.resources, | 279 invoker.resources, |
280 [ "$base_target_name/resources/{{source_file_part}}" ]) | 280 [ "$base_target_name/resources/{{source_file_part}}" ]) |
281 } | 281 } |
282 } | 282 } |
283 } | 283 } |
284 } | 284 } |
OLD | NEW |