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

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

Issue 2100993002: Switch back to the old go generator. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « no previous file | mojo/public/tools/bindings/run_code_generators.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/Python/Dart/Go source files from mojom files. The 7 # Generate C++/JavaScript/Java/Python/Dart/Go source files from mojom files. The
8 # output files will go under the generated file directory tree with the same 8 # output files will go under the generated file directory tree with the same
9 # path as each input file. 9 # path as each input file.
10 # 10 #
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 "--src-root-path", 205 "--src-root-path",
206 rebase_path("//", root_build_dir), 206 rebase_path("//", root_build_dir),
207 "-I", 207 "-I",
208 rebase_path("//", root_build_dir), 208 rebase_path("//", root_build_dir),
209 "-I", 209 "-I",
210 rebase_path(mojo_root, root_build_dir), 210 rebase_path(mojo_root, root_build_dir),
211 "--output-dir", 211 "--output-dir",
212 rebase_path(root_gen_dir), 212 rebase_path(root_gen_dir),
213 "--no-gen-imports", 213 "--no-gen-imports",
214 "--generators", 214 "--generators",
215 "legacy,c,go", 215 "legacy,c",
216 ] 216 ]
217 217
218 if (defined(invoker.generate_type_info) && invoker.generate_type_info) { 218 if (defined(invoker.generate_type_info) && invoker.generate_type_info) {
219 args += [ 219 args += [
220 "--gen-arg", 220 "--gen-arg",
221 "generate-type-info", 221 "generate-type-info",
222 ] 222 ]
223 } 223 }
224 224
225 if (defined(invoker.import_dirs)) { 225 if (defined(invoker.import_dirs)) {
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 # //mojo/something:something and we can append "_java" to get the java 551 # //mojo/something:something and we can append "_java" to get the java
552 # dependency name. 552 # dependency name.
553 full_name = get_label_info(d, "label_no_toolchain") 553 full_name = get_label_info(d, "label_no_toolchain")
554 deps += [ "${full_name}_java" ] 554 deps += [ "${full_name}_java" ]
555 } 555 }
556 556
557 srcjar_deps = [ ":$java_srcjar_target_name" ] 557 srcjar_deps = [ ":$java_srcjar_target_name" ]
558 } 558 }
559 } 559 }
560 } 560 }
OLDNEW
« no previous file with comments | « no previous file | mojo/public/tools/bindings/run_code_generators.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698