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

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

Issue 329993006: Implement main blink target in GN. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/bindings/scripts/BUILD.gn ('k') | Source/core/BUILD.gn » ('j') | 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 17 matching lines...) Expand all
28 # sources_generated = list of generated IDL files to pass as inputs 28 # sources_generated = list of generated IDL files to pass as inputs
29 # component_dir = name if subdirectory (one word, no slashes) of component. 29 # component_dir = name if subdirectory (one word, no slashes) of component.
30 # output_file = pickle file to write 30 # output_file = pickle file to write
31 # 31 #
32 # FIXME: Note the static/generated split is for consistency with GYP. This 32 # FIXME: Note the static/generated split is for consistency with GYP. This
33 # split is not necessary in the GN build and could be combined into a single 33 # split is not necessary in the GN build and could be combined into a single
34 # "sources". 34 # "sources".
35 template("compute_interfaces_info_individual") { 35 template("compute_interfaces_info_individual") {
36 action(target_name) { 36 action(target_name) {
37 script = "$bindings_scripts_dir/compute_interfaces_info_individual.py" 37 script = "$bindings_scripts_dir/compute_interfaces_info_individual.py"
38 if (defined(invoker.visibility)) {
39 visibility = invoker.visibility
40 }
38 41
39 # Save static list to temp file to avoid blowing out command-line length 42 # Save static list to temp file to avoid blowing out command-line length
40 # limit. 43 # limit.
41 file_list = "$target_gen_dir/${target_name}_file_list.txt" 44 file_list = "$target_gen_dir/${target_name}_file_list.txt"
42 write_file(file_list, rebase_path(invoker.sources_static, root_build_dir)) 45 write_file(file_list, rebase_path(invoker.sources_static, root_build_dir))
43 46
44 source_prereqs = [ 47 source_prereqs = [
45 "$bindings_scripts_dir/utilities.py", 48 "$bindings_scripts_dir/utilities.py",
46 file_list, 49 file_list,
47 ] + invoker.sources_static + invoker.sources_generated 50 ] + invoker.sources_static + invoker.sources_generated
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 outputs = invoker.outputs 193 outputs = invoker.outputs
191 194
192 args = [ 195 args = [
193 invoker.component_dir, 196 invoker.component_dir,
194 rebase_path(idl_files_list, root_build_dir), 197 rebase_path(idl_files_list, root_build_dir),
195 "--", 198 "--",
196 ] 199 ]
197 args += rebase_path(invoker.outputs, root_build_dir) 200 args += rebase_path(invoker.outputs, root_build_dir)
198 } 201 }
199 } 202 }
OLDNEW
« no previous file with comments | « Source/bindings/scripts/BUILD.gn ('k') | Source/core/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698