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

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

Issue 801523002: Bundle the DEPS of mojom_bindings_generator.py with the public SDK. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase Created 6 years 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 # 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
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
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 }
OLDNEW
« no previous file with comments | « mojo/public/third_party/ply/yacc.py ('k') | mojo/public/tools/bindings/mojom_bindings_generator.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698