summaryrefslogtreecommitdiff
path: root/BUILD
blob: 58dc7b436c2bf03fed69b432145ca5075cb0acb1 (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
genrule(
    name = "copy_headers",
    srcs = [
        "//c-toxcore/toxav:public",
        "//c-toxcore/toxcore:public",
        "//c-toxcore/toxencryptsave:public",
    ],
    outs = [
        "tox/toxav.h",
        "tox/tox.h",
        "tox/toxencryptsave.h",
    ],
    cmd = """
        cp $(location //c-toxcore/toxav:public) $(GENDIR)/c-toxcore/tox/toxav.h
        cp $(location //c-toxcore/toxcore:public) $(GENDIR)/c-toxcore/tox/tox.h
        cp $(location //c-toxcore/toxencryptsave:public) $(GENDIR)/c-toxcore/tox/toxencryptsave.h
    """,
)

cc_library(
    name = "headers",
    hdrs = [
        "tox/tox.h",
        "tox/toxav.h",
        "tox/toxencryptsave.h",
    ],
    includes = ["."],
    visibility = ["//visibility:public"],
)