summaryrefslogtreecommitdiff
path: root/build_extra/flatbuffers/rust/rust_flatbuffer.gni
diff options
context:
space:
mode:
Diffstat (limited to 'build_extra/flatbuffers/rust/rust_flatbuffer.gni')
-rw-r--r--build_extra/flatbuffers/rust/rust_flatbuffer.gni34
1 files changed, 0 insertions, 34 deletions
diff --git a/build_extra/flatbuffers/rust/rust_flatbuffer.gni b/build_extra/flatbuffers/rust/rust_flatbuffer.gni
deleted file mode 100644
index bf211c2dd..000000000
--- a/build_extra/flatbuffers/rust/rust_flatbuffer.gni
+++ /dev/null
@@ -1,34 +0,0 @@
-# Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
-import("//build_extra/rust/rust.gni")
-
-# TODO(ry) "flatbuffer.gni" should be "flatbuffers.gni" we should be consistent
-# in our pluralization.
-import("//build_extra/flatbuffers/flatbuffer.gni")
-
-template("rust_flatbuffer") {
- compiled_action_foreach(target_name) {
- tool = "$flatbuffers_build_location:flatc"
-
- sources = invoker.sources
- deps = []
- out_dir = target_gen_dir
-
- outputs = [
- "$out_dir/{{source_name_part}}_generated.rs",
- ]
-
- args = [
- "--rust",
- "-o",
- rebase_path(out_dir, root_build_dir),
- "-I",
- rebase_path("//", root_build_dir),
- ]
- args += [ "{{source}}" ]
-
- # The deps may have steps that have to run before running flatc.
- if (defined(invoker.deps)) {
- deps += invoker.deps
- }
- }
-}