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

Unified Diff: Source/build/make_file_arrays.gni

Issue 337703003: GN: Start of //third_party/WebKit/Source/web (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/web/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/build/make_file_arrays.gni
diff --git a/Source/build/make_file_arrays.gni b/Source/build/make_file_arrays.gni
new file mode 100644
index 0000000000000000000000000000000000000000..4535589909a29ac72f12d8eccd3c8dd31083b56c
--- /dev/null
+++ b/Source/build/make_file_arrays.gni
@@ -0,0 +1,33 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+template("make_file_arrays") {
+ assert(defined(invoker.resources), "Need resources in %target_name")
+ assert(defined(invoker.filename), "Need filename in %target_name")
+
+ code_gen_target_name = target_name + "_code_gen"
+
+ action(code_gen_target_name) {
+ source_prereqs = invoker.resources
+ script = "//third_party/WebKit/Source/build/scripts/make-file-arrays.py"
+ sources = [ script ]
+ sources += invoker.resources
+ outputs = [
+ "$root_gen_dir/blink/" + invoker.filename + ".h",
+ "$root_gen_dir/blink/" + invoker.filename + ".cpp",
+ ]
+ args = [
+ "--out-h=gen/blink/" + invoker.filename + ".h",
+ "--out-cpp=gen/blink/" + invoker.filename + ".cpp",
+ ]
+ args += rebase_path(invoker.resources, root_build_dir, ".")
+ }
+
+ source_set(target_name) {
+ sources = get_target_outputs(":$code_gen_target_name")
+ deps = [ ":$code_gen_target_name" ]
+ }
+}
+
+
« no previous file with comments | « no previous file | Source/web/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698