Files
wehub-resource-sync 5357c39144
Fuzzer / Run Fuzzer (push) Has been cancelled
Race tests / Go race tests (ubuntu-22.04) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:01:40 +08:00

31 lines
655 B
Python

load("@rules_pkg//:pkg.bzl", "pkg_tar")
package(default_visibility = ["//visibility:public"])
alias(
name = "flatc",
actual = "@com_github_dolthub_flatbuffers//:flatc",
)
genrule(
name = "go_srcs",
srcs = glob(["*.fbs"]),
outs = [n[:-4] + ".go" for n in glob(["*.fbs"])],
cmd = "$(location //:generate.sh) $(location //:flatc) $(RULEDIR) $(location :copyright.txt) $(SRCS)",
tools = [
":flatc",
":generate.sh",
":copyright.txt",
],
)
pkg_tar(
name = "go_srcs.tar",
srcs = [
":go_srcs",
"fileidentifiers.go",
],
package_dir = "gen/fb/serial",
mode = "0644",
)