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

Side by Side Diff: Source/bindings/scripts/scripts.gni

Issue 1014793002: List IDL compiler sources as inputs to GN's idl_impl action (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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 | no next file » | 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("//third_party/WebKit/Source/bindings/core/v8/generated.gni") 5 import("//third_party/WebKit/Source/bindings/core/v8/generated.gni")
6 import("//third_party/WebKit/Source/bindings/modules/idl.gni") 6 import("//third_party/WebKit/Source/bindings/modules/idl.gni")
7 import("//third_party/WebKit/Source/bindings/modules/modules.gni") 7 import("//third_party/WebKit/Source/bindings/modules/modules.gni")
8 8
9 bindings_scripts_dir = get_path_info(".", "abspath") 9 bindings_scripts_dir = get_path_info(".", "abspath")
10 bindings_scripts_output_dir = "$root_gen_dir/blink/bindings/scripts" 10 bindings_scripts_output_dir = "$root_gen_dir/blink/bindings/scripts"
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 # output_dir = the directory to put the output files 190 # output_dir = the directory to put the output files
191 # target_component = component to generate code for 191 # target_component = component to generate code for
192 template("idl_impl") { 192 template("idl_impl") {
193 dictionary_impl_output_dir = "$root_gen_dir/blink/" 193 dictionary_impl_output_dir = "$root_gen_dir/blink/"
194 194
195 action(target_name) { 195 action(target_name) {
196 script = "//third_party/WebKit/Source/bindings/scripts/idl_compiler.py" 196 script = "//third_party/WebKit/Source/bindings/scripts/idl_compiler.py"
197 idl_files_list = "$target_gen_dir/${target_name}_file_list.tmp" 197 idl_files_list = "$target_gen_dir/${target_name}_file_list.tmp"
198 write_file(idl_files_list, rebase_path(invoker.sources, root_build_dir)) 198 write_file(idl_files_list, rebase_path(invoker.sources, root_build_dir))
199 199
200 inputs = [ idl_files_list ] + invoker.sources 200 inputs =
201 idl_lexer_parser_files + # to be explicit (covered by parsetab)
202 idl_compiler_files
203 inputs += [
204 "$bindings_scripts_output_dir/lextab.py",
205 "$bindings_scripts_output_dir/parsetab.pickle",
206 "$bindings_scripts_output_dir/cached_jinja_templates.stamp",
207 "$bindings_dir/IDLExtendedAttributes.txt",
208 ]
209 inputs += [ idl_files_list ] + invoker.sources
201 outputs = invoker.outputs 210 outputs = invoker.outputs
202 211
203 args = [ 212 args = [
204 "--cache-dir", 213 "--cache-dir",
205 rebase_path(bindings_scripts_output_dir, root_build_dir), 214 rebase_path(bindings_scripts_output_dir, root_build_dir),
206 "--output-dir", 215 "--output-dir",
207 rebase_path(invoker.output_dir, root_build_dir), 216 rebase_path(invoker.output_dir, root_build_dir),
208 "--impl-output-dir", 217 "--impl-output-dir",
209 rebase_path(dictionary_impl_output_dir, root_build_dir), 218 rebase_path(dictionary_impl_output_dir, root_build_dir),
210 "--info-dir", 219 "--info-dir",
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 output_header_files += [ 350 output_header_files += [
342 "$output_dir/${interface}${component}Constructors.h" 351 "$output_dir/${interface}${component}Constructors.h"
343 ] 352 ]
344 } 353 }
345 354
346 outputs = output_idl_files + output_header_files 355 outputs = output_idl_files + output_header_files
347 deps = invoker.deps 356 deps = invoker.deps
348 } 357 }
349 } 358 }
350 359
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698