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

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

Issue 1586123010: Add a switch in BUILD rules to control the generation of type info for mojom files. (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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 "-o", 198 "-o",
199 rebase_path(root_gen_dir), 199 rebase_path(root_gen_dir),
200 "--no-gen-imports", 200 "--no-gen-imports",
201 ] 201 ]
202 202
203 # 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.
204 if (use_old_mojom_compiler) { 204 if (use_old_mojom_compiler) {
205 args += [ "--compiler-version=1" ] 205 args += [ "--compiler-version=1" ]
206 } 206 }
207 207
208 if (defined(invoker.generate_type_info) && invoker.generate_type_info) {
209 args += [ "--generate-type-info" ]
210 } else {
211 args += [ "--no-generate-type-info" ]
212 }
213
208 if (defined(invoker.import_dirs)) { 214 if (defined(invoker.import_dirs)) {
209 foreach(import_dir, invoker.import_dirs) { 215 foreach(import_dir, invoker.import_dirs) {
210 args += [ 216 args += [
211 "-I", 217 "-I",
212 rebase_path(import_dir, root_build_dir), 218 rebase_path(import_dir, root_build_dir),
213 ] 219 ]
214 } 220 }
215 } 221 }
216 } 222 }
217 } 223 }
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 # //mojo/something:something and we can append "_java" to get the java 418 # //mojo/something:something and we can append "_java" to get the java
413 # dependency name. 419 # dependency name.
414 full_name = get_label_info(d, "label_no_toolchain") 420 full_name = get_label_info(d, "label_no_toolchain")
415 deps += [ "${full_name}_java" ] 421 deps += [ "${full_name}_java" ]
416 } 422 }
417 423
418 srcjar_deps = [ ":$java_srcjar_target_name" ] 424 srcjar_deps = [ ":$java_srcjar_target_name" ]
419 } 425 }
420 } 426 }
421 } 427 }
OLDNEW
« no previous file with comments | « mojo/public/interfaces/bindings/tests/BUILD.gn ('k') | mojo/public/tools/bindings/run_code_generators.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698