| Index: Source/build/make_file_arrays.gni
|
| diff --git a/Source/build/make_file_arrays.gni b/Source/build/make_file_arrays.gni
|
| index 4535589909a29ac72f12d8eccd3c8dd31083b56c..284905768de6b5649c33f22a364b1a78e85db389 100644
|
| --- a/Source/build/make_file_arrays.gni
|
| +++ b/Source/build/make_file_arrays.gni
|
| @@ -2,9 +2,18 @@
|
| # Use of this source code is governed by a BSD-style license that can be
|
| # found in the LICENSE file.
|
|
|
| +# Paraneters:
|
| +# filename
|
| +# Output base name (will be put into gen/blink with various extensions).
|
| +#
|
| +# resources
|
| +# List of resource files.
|
| +#
|
| +# namespace (optional)
|
| +# String. If specified, files will be wrapped in this namespace.
|
| template("make_file_arrays") {
|
| - assert(defined(invoker.resources), "Need resources in %target_name")
|
| - assert(defined(invoker.filename), "Need filename in %target_name")
|
| + 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"
|
|
|
| @@ -21,12 +30,16 @@ template("make_file_arrays") {
|
| "--out-h=gen/blink/" + invoker.filename + ".h",
|
| "--out-cpp=gen/blink/" + invoker.filename + ".cpp",
|
| ]
|
| + if (defined(invoker.namespace)) {
|
| + args += [ "--namespace=" + invoker.namespace ]
|
| + }
|
| 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" ]
|
| + configs += [ "//third_party/WebKit/Source:config" ]
|
| }
|
| }
|
|
|
|
|