| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 script = generator_script | 125 script = generator_script |
| 126 inputs = generator_sources | 126 inputs = generator_sources |
| 127 sources = invoker.sources | 127 sources = invoker.sources |
| 128 outputs = generator_cpp_outputs + | 128 outputs = generator_cpp_outputs + |
| 129 generator_dart_outputs + | 129 generator_dart_outputs + |
| 130 generator_java_outputs + | 130 generator_java_outputs + |
| 131 generator_js_outputs + | 131 generator_js_outputs + |
| 132 generator_python_outputs | 132 generator_python_outputs |
| 133 args = [ | 133 args = [ |
| 134 "{{source}}", | 134 "{{source}}", |
| 135 "--use_chromium_bundled_pylibs", | 135 "--use_bundled_pylibs", |
| 136 "-d", rebase_path("//", root_build_dir), | 136 "-d", rebase_path("//", root_build_dir), |
| 137 "-I", rebase_path("//", root_build_dir), | 137 "-I", rebase_path("//", root_build_dir), |
| 138 "-I", rebase_path(mojo_root, root_build_dir), | 138 "-I", rebase_path(mojo_root, root_build_dir), |
| 139 "-o", rebase_path(root_gen_dir), | 139 "-o", rebase_path(root_gen_dir), |
| 140 ] | 140 ] |
| 141 } | 141 } |
| 142 | 142 |
| 143 source_set(target_name) { | 143 source_set(target_name) { |
| 144 if (defined(invoker.visibility)) { | 144 if (defined(invoker.visibility)) { |
| 145 visibility = invoker.visibility | 145 visibility = invoker.visibility |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 # //mojo/something:something and we can append "_java" to get the java | 206 # //mojo/something:something and we can append "_java" to get the java |
| 207 # dependency name. | 207 # dependency name. |
| 208 full_name = get_label_info(d, "label_no_toolchain") | 208 full_name = get_label_info(d, "label_no_toolchain") |
| 209 deps += [ "${full_name}_java" ] | 209 deps += [ "${full_name}_java" ] |
| 210 } | 210 } |
| 211 | 211 |
| 212 srcjars = process_file_template(invoker.sources, generator_java_outputs) | 212 srcjars = process_file_template(invoker.sources, generator_java_outputs) |
| 213 } | 213 } |
| 214 } | 214 } |
| 215 } | 215 } |
| OLD | NEW |