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

Side by Side Diff: third_party/mojo/src/mojo/public/tools/bindings/mojom.gni

Issue 1435063002: Eliminate third_party/mojo/src from all targets' include paths (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 1 month 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 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("../../mojo_sdk.gni") 5 import("../../mojo_sdk.gni")
6 6
7 # Generate C++/JavaScript/Java source files from mojom files. The output files 7 # Generate C++/JavaScript/Java source files from mojom files. The output files
8 # will go under the generated file directory tree with the same path as each 8 # will go under the generated file directory tree with the same path as each
9 # input file. 9 # input file.
10 # 10 #
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 if (defined(invoker.visibility)) { 186 if (defined(invoker.visibility)) {
187 visibility = invoker.visibility 187 visibility = invoker.visibility
188 } 188 }
189 if (defined(invoker.testonly)) { 189 if (defined(invoker.testonly)) {
190 testonly = invoker.testonly 190 testonly = invoker.testonly
191 } 191 }
192 if (defined(invoker.sources)) { 192 if (defined(invoker.sources)) {
193 data = process_file_template(invoker.sources, generator_js_outputs) 193 data = process_file_template(invoker.sources, generator_js_outputs)
194 } 194 }
195 195
196 public_configs =
197 rebase_path([ "mojo/public/build/config:mojo_sdk" ], ".", mojo_root)
198
199 public_deps = rebase_path([ "mojo/public/cpp/bindings" ], ".", mojo_root) 196 public_deps = rebase_path([ "mojo/public/cpp/bindings" ], ".", mojo_root)
200 if (defined(invoker.sources)) { 197 if (defined(invoker.sources)) {
201 public_deps += [ ":${cpp_sources_target_name}" ] 198 public_deps += [ ":${cpp_sources_target_name}" ]
202 } 199 }
203 public_deps += rebased_mojo_sdk_public_deps 200 public_deps += rebased_mojo_sdk_public_deps
204 if (defined(invoker.public_deps)) { 201 if (defined(invoker.public_deps)) {
205 public_deps += invoker.public_deps 202 public_deps += invoker.public_deps
206 } 203 }
207 204
208 deps = [] 205 deps = []
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 # is so that mojo/public/cpp/bindings can depend on mojom interfaces without 246 # is so that mojo/public/cpp/bindings can depend on mojom interfaces without
250 # circular dependencies. It means that the target is missing the dependency 247 # circular dependencies. It means that the target is missing the dependency
251 # on mojo/public/cpp/bindings. No external targets should depend directly on 248 # on mojo/public/cpp/bindings. No external targets should depend directly on
252 # this target *except* mojo/public/cpp/bindings and other *_cpp_sources 249 # this target *except* mojo/public/cpp/bindings and other *_cpp_sources
253 # targets. 250 # targets.
254 source_set(cpp_sources_target_name) { 251 source_set(cpp_sources_target_name) {
255 if (defined(invoker.testonly)) { 252 if (defined(invoker.testonly)) {
256 testonly = invoker.testonly 253 testonly = invoker.testonly
257 } 254 }
258 sources = process_file_template(invoker.sources, generator_cpp_outputs) 255 sources = process_file_template(invoker.sources, generator_cpp_outputs)
259 public_configs =
260 rebase_path([ "mojo/public/build/config:mojo_sdk" ], ".", mojo_root)
261 deps = [ 256 deps = [
262 ":$generator_target_name", 257 ":$generator_target_name",
263 "//base", 258 "//base",
264 rebase_path("mojo/public/interfaces/bindings:bindings__generator", 259 rebase_path("mojo/public/interfaces/bindings:bindings__generator",
265 ".", 260 ".",
266 mojo_root), 261 mojo_root),
267 ] 262 ]
268 foreach(d, all_deps) { 263 foreach(d, all_deps) {
269 # Resolve the name, so that a target //mojo/something becomes 264 # Resolve the name, so that a target //mojo/something becomes
270 # //mojo/something:something and we can append cpp_sources_suffix to 265 # //mojo/something:something and we can append cpp_sources_suffix to
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 # //mojo/something:something and we can append "_java" to get the java 309 # //mojo/something:something and we can append "_java" to get the java
315 # dependency name. 310 # dependency name.
316 full_name = get_label_info(d, "label_no_toolchain") 311 full_name = get_label_info(d, "label_no_toolchain")
317 deps += [ "${full_name}_java" ] 312 deps += [ "${full_name}_java" ]
318 } 313 }
319 314
320 srcjar_deps = [ ":$java_srcjar_target_name" ] 315 srcjar_deps = [ ":$java_srcjar_target_name" ]
321 } 316 }
322 } 317 }
323 } 318 }
OLDNEW
« no previous file with comments | « third_party/mojo/src/mojo/public/tools/bindings/generators/cpp_templates/module.h.tmpl ('k') | ui/views/mus/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698