aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/flatbuffers/BUILD.system
blob: 14fceada8261b09f3e8ea8e839f266ed7b9494cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
licenses(["notice"])  # Apache 2.0

filegroup(
    name = "LICENSE.txt",
    visibility = ["//visibility:public"],
)

# Public flatc library to compile flatbuffer files at runtime.
cc_library(
    name = "flatbuffers",
    linkopts = ["-lflatbuffers"],
    visibility = ["//visibility:public"],
)

# Public flatc compiler library.
cc_library(
    name = "flatc_library",
    linkopts = ["-lflatbuffers"],
    visibility = ["//visibility:public"],
)

genrule(
    name = "lnflatc",
    outs = ["flatc.bin"],
    cmd = "ln -s $$(which flatc) $@",
)

# Public flatc compiler.
sh_binary(
    name = "flatc",
    srcs = ["flatc.bin"],
    visibility = ["//visibility:public"],
)

cc_library(
    name = "runtime_cc",
    visibility = ["//visibility:public"],
)