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

Side by Side Diff: Source/build/make_file_arrays.gni

Issue 343503003: Finish modules build in GN. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add config 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 | « no previous file | Source/config.gyp » ('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 # Paraneters:
6 # filename
7 # Output base name (will be put into gen/blink with various extensions).
8 #
9 # resources
10 # List of resource files.
11 #
12 # namespace (optional)
13 # String. If specified, files will be wrapped in this namespace.
5 template("make_file_arrays") { 14 template("make_file_arrays") {
6 assert(defined(invoker.resources), "Need resources in %target_name") 15 assert(defined(invoker.resources), "Need resources in $target_name")
7 assert(defined(invoker.filename), "Need filename in %target_name") 16 assert(defined(invoker.filename), "Need filename in $target_name")
8 17
9 code_gen_target_name = target_name + "_code_gen" 18 code_gen_target_name = target_name + "_code_gen"
10 19
11 action(code_gen_target_name) { 20 action(code_gen_target_name) {
12 source_prereqs = invoker.resources 21 source_prereqs = invoker.resources
13 script = "//third_party/WebKit/Source/build/scripts/make-file-arrays.py" 22 script = "//third_party/WebKit/Source/build/scripts/make-file-arrays.py"
14 sources = [ script ] 23 sources = [ script ]
15 sources += invoker.resources 24 sources += invoker.resources
16 outputs = [ 25 outputs = [
17 "$root_gen_dir/blink/" + invoker.filename + ".h", 26 "$root_gen_dir/blink/" + invoker.filename + ".h",
18 "$root_gen_dir/blink/" + invoker.filename + ".cpp", 27 "$root_gen_dir/blink/" + invoker.filename + ".cpp",
19 ] 28 ]
20 args = [ 29 args = [
21 "--out-h=gen/blink/" + invoker.filename + ".h", 30 "--out-h=gen/blink/" + invoker.filename + ".h",
22 "--out-cpp=gen/blink/" + invoker.filename + ".cpp", 31 "--out-cpp=gen/blink/" + invoker.filename + ".cpp",
23 ] 32 ]
33 if (defined(invoker.namespace)) {
34 args += [ "--namespace=" + invoker.namespace ]
35 }
24 args += rebase_path(invoker.resources, root_build_dir, ".") 36 args += rebase_path(invoker.resources, root_build_dir, ".")
25 } 37 }
26 38
27 source_set(target_name) { 39 source_set(target_name) {
28 sources = get_target_outputs(":$code_gen_target_name") 40 sources = get_target_outputs(":$code_gen_target_name")
29 deps = [ ":$code_gen_target_name" ] 41 deps = [ ":$code_gen_target_name" ]
42 configs += [ "//third_party/WebKit/Source:config" ]
30 } 43 }
31 } 44 }
32 45
33 46
OLDNEW
« no previous file with comments | « no previous file | Source/config.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698