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++ and JavaScript source files from mojom files. The output files | 7 # Generate C++ and JavaScript 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 visibility = target_visibility + invoker.visibility | 174 visibility = target_visibility + invoker.visibility |
175 } | 175 } |
176 script = generator_script | 176 script = generator_script |
177 inputs = generator_sources | 177 inputs = generator_sources |
178 sources = invoker.sources | 178 sources = invoker.sources |
179 outputs = generator_cpp_outputs + generator_dart_outputs + | 179 outputs = generator_cpp_outputs + generator_dart_outputs + |
180 generator_go_outputs + generator_java_outputs + | 180 generator_go_outputs + generator_java_outputs + |
181 generator_js_outputs + generator_python_outputs | 181 generator_js_outputs + generator_python_outputs |
182 args = [ | 182 args = [ |
183 "{{source}}", | 183 "{{source}}", |
184 "--dart_mojo_root=${mojo_root}", | |
185 "--use_bundled_pylibs", | 184 "--use_bundled_pylibs", |
186 "-d", | 185 "-d", |
187 rebase_path("//", root_build_dir), | 186 rebase_path("//", root_build_dir), |
188 "-I", | 187 "-I", |
189 rebase_path("//", root_build_dir), | 188 rebase_path("//", root_build_dir), |
190 "-I", | 189 "-I", |
191 rebase_path(mojo_root, root_build_dir), | 190 rebase_path(mojo_root, root_build_dir), |
192 "-o", | 191 "-o", |
193 rebase_path(root_gen_dir), | 192 rebase_path(root_gen_dir), |
194 ] | 193 ] |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 full_name = get_label_info(d, "label_no_toolchain") | 377 full_name = get_label_info(d, "label_no_toolchain") |
379 deps += [ "${full_name}_java" ] | 378 deps += [ "${full_name}_java" ] |
380 } | 379 } |
381 | 380 |
382 if (defined(invoker.sources)) { | 381 if (defined(invoker.sources)) { |
383 srcjars = process_file_template(invoker.sources, generator_java_outputs) | 382 srcjars = process_file_template(invoker.sources, generator_java_outputs) |
384 } | 383 } |
385 } | 384 } |
386 } | 385 } |
387 } | 386 } |
OLD | NEW |