summaryrefslogtreecommitdiff
path: root/build_extra
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-07-08 02:24:29 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-07-08 13:40:18 -0400
commitf917c5e722d7ee5abd58704eb0e5d49072249e94 (patch)
tree48eb2e95d18c9d1fbdfcd0864ca09a6e64d79f5a /build_extra
parent6c79b471aa5cf2c87d237015f5dacc5a7ed03b67 (diff)
Clean up tools/
- Factor out tools/util.py - Move js/*.py to tools. - Rewrite tools/format.sh in python. - Run lint first in travis.
Diffstat (limited to 'build_extra')
-rw-r--r--build_extra/deno.gni2
-rw-r--r--build_extra/flatbuffers/BUILD.gn1
-rw-r--r--build_extra/flatbuffers/flatbuffer.gni12
3 files changed, 10 insertions, 5 deletions
diff --git a/build_extra/deno.gni b/build_extra/deno.gni
index a8804e9f9..6d1293bc1 100644
--- a/build_extra/deno.gni
+++ b/build_extra/deno.gni
@@ -1,7 +1,7 @@
template("run_node") {
action(target_name) {
forward_variables_from(invoker, "*")
- script = "//js/run_node.py"
+ script = "//tools/run_node.py"
}
}
diff --git a/build_extra/flatbuffers/BUILD.gn b/build_extra/flatbuffers/BUILD.gn
index 0433c5d1d..b46cb3d2c 100644
--- a/build_extra/flatbuffers/BUILD.gn
+++ b/build_extra/flatbuffers/BUILD.gn
@@ -100,7 +100,6 @@ flatbuffer("flatbuffers_samplebuffer") {
]
flatc_include_dirs = [ "$fb_src/tests/include_test" ]
}
-
# test("flatbuffers_unittest") {
# sources = [
# "src/tests/test.cpp",
diff --git a/build_extra/flatbuffers/flatbuffer.gni b/build_extra/flatbuffers/flatbuffer.gni
index 0bac1802c..ff4a48dfa 100644
--- a/build_extra/flatbuffers/flatbuffer.gni
+++ b/build_extra/flatbuffers/flatbuffer.gni
@@ -188,15 +188,21 @@ template("ts_flatbuffer") {
copy_name = target_name + "_copy"
copy(copy_name) {
- sources = [ "$flatbuffers_source_location/js/flatbuffers.js" ]
- outputs = [ "$target_gen_dir/flatbuffers.js" ]
+ sources = [
+ "$flatbuffers_source_location/js/flatbuffers.js",
+ ]
+ outputs = [
+ "$target_gen_dir/flatbuffers.js",
+ ]
}
compiled_action_foreach(target_name) {
tool = "$flatbuffers_build_location:flatc"
sources = invoker.sources
- deps = [ ":" + copy_name ]
+ deps = [
+ ":" + copy_name,
+ ]
out_dir = target_gen_dir