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

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

Issue 1566203002: Only generate code for files that are specified, not their imports. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 11 months 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 # TODO(azani): Remove when the switch to the new compiler is complete. 7 # TODO(azani): Remove when the switch to the new compiler is complete.
8 declare_args() { 8 declare_args() {
9 use_old_mojom_compiler = false 9 use_old_mojom_compiler = false
10 } 10 }
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 "{{source}}", 190 "{{source}}",
191 "--use_bundled_pylibs", 191 "--use_bundled_pylibs",
192 "-d", 192 "-d",
193 rebase_path("//", root_build_dir), 193 rebase_path("//", root_build_dir),
194 "-I", 194 "-I",
195 rebase_path("//", root_build_dir), 195 rebase_path("//", root_build_dir),
196 "-I", 196 "-I",
197 rebase_path(mojo_root, root_build_dir), 197 rebase_path(mojo_root, root_build_dir),
198 "-o", 198 "-o",
199 rebase_path(root_gen_dir), 199 rebase_path(root_gen_dir),
200 "--no-gen-imports",
200 ] 201 ]
201 202
202 # TODO(azani): Remove when the switch to the new compiler is complete. 203 # TODO(azani): Remove when the switch to the new compiler is complete.
203 if (use_old_mojom_compiler) { 204 if (use_old_mojom_compiler) {
204 args += [ "--compiler-version=1" ] 205 args += [ "--compiler-version=1" ]
205 } 206 }
206 207
207 if (defined(invoker.import_dirs)) { 208 if (defined(invoker.import_dirs)) {
208 foreach(import_dir, invoker.import_dirs) { 209 foreach(import_dir, invoker.import_dirs) {
209 args += [ 210 args += [
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 # //mojo/something:something and we can append "_java" to get the java 412 # //mojo/something:something and we can append "_java" to get the java
412 # dependency name. 413 # dependency name.
413 full_name = get_label_info(d, "label_no_toolchain") 414 full_name = get_label_info(d, "label_no_toolchain")
414 deps += [ "${full_name}_java" ] 415 deps += [ "${full_name}_java" ]
415 } 416 }
416 417
417 srcjar_deps = [ ":$java_srcjar_target_name" ] 418 srcjar_deps = [ ":$java_srcjar_target_name" ]
418 } 419 }
419 } 420 }
420 } 421 }
OLDNEW
« no previous file with comments | « mojo/dart/packages/mojom/lib/src/generate.dart ('k') | mojo/public/tools/bindings/mojom_bindings_generator_v2.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698