| 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("../../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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |