summaryrefslogtreecommitdiff
path: root/BUILD.gn
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2018-07-26 13:07:50 +1000
committerRyan Dahl <ry@tinyclouds.org>2018-07-25 23:07:50 -0400
commit5562c36824a63634212ee0c6ad501f230a8e1133 (patch)
tree1646a6fc7c783ab8a9f66db73bd4d6d2da5428d8 /BUILD.gn
parent180170d860921f93a7e28e57b8d0dae84f8076ba (diff)
Remove msg_generated hack (#409)
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn32
1 files changed, 2 insertions, 30 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 848dc6a59..824c50533 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -194,11 +194,11 @@ run_node("bundle") {
"js/dispatch.ts",
"js/globals.ts",
"js/main.ts",
- "js/msg_generated.ts",
"js/os.ts",
"js/runtime.ts",
"js/types.ts",
"js/util.ts",
+ "src/msg.fbs",
"rollup.config.js",
"tsconfig.json",
]
@@ -207,7 +207,7 @@ run_node("bundle") {
out_dir + "main.js.map",
]
deps = [
- ":flatbufferjs",
+ ":msg_ts",
]
args = [
"./node_modules/rollup/bin/rollup",
@@ -237,34 +237,6 @@ source_set("libdeno_nosnapshot") {
defines = [ "BUNDLE_LOCATION=\"$bundle_location\"" ]
}
-# Generates flatbuffer TypeScript code.
-# TODO(ry) Ideally flatc output files should be written into
-# target_gen_dir, but its difficult to get this working in a way that the
-# bundler can resolve their location. (The bundler does not support NODE_PATH?)
-# Therefore this hack: write the msg_generated.ts output
-# into the js/ folder, and we check it into the repo. Hopefully this hack can
-# be removed at some point. If msg.fps is changed, commit changes to the
-# generated JS files. The stamp file is just to make gn work.
-action("flatbufferjs") {
- script = "//tools/flatbufferjs_hack.py"
- sources = [
- "src/msg.fbs",
- ]
- outputs = [
- "$target_gen_dir/flatbufferjs_hack.stamp",
- ]
-
- args = [
- rebase_path("$target_gen_dir/msg_generated.ts", root_build_dir),
- rebase_path("js/msg_generated.ts", root_build_dir),
- rebase_path(outputs[0], root_build_dir),
- ]
-
- deps = [
- ":msg_ts",
- ]
-}
-
ts_flatbuffer("msg_ts") {
sources = [
"src/msg.fbs",