Add GN build
This commit is contained in:
parent
1cc5492784
commit
f2b1b3f6b8
11 changed files with 1074 additions and 1 deletions
16
build/npm.gni
Normal file
16
build/npm.gni
Normal file
|
@ -0,0 +1,16 @@
|
|||
template("npm_action") {
|
||||
assert(defined(invoker.script),
|
||||
"Need script name to run (must be defined in package.json)")
|
||||
assert(defined(invoker.args),
|
||||
"Need script argumets")
|
||||
|
||||
action(target_name) {
|
||||
forward_variables_from(invoker, ["deps", "public_deps", "sources", "inputs", "outputs"])
|
||||
script = "//electron/build/npm-run.py"
|
||||
args = [
|
||||
"--silent",
|
||||
invoker.script,
|
||||
"--"
|
||||
] + invoker.args
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue