aboutsummaryrefslogtreecommitdiffhomepage
path: root/util/python/BUILD
blob: 29688b875df5933f612a3c5931e22d00d7cab2f7 (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
licenses(["restricted"])

package(default_visibility = ["//visibility:public"])

cc_library(
    name = "python_headers",
    hdrs = glob([
        "python_include/**/*.h",
    ]),
    data = [":python_checked"],
    includes = ["python_include"],
)

genrule(
    name = "python_check",
    srcs = [
        "python_config.sh",
        "configure_files",
    ],
    outs = [
        "python_checked",
    ],
    cmd = "OUTPUTDIR=\"$(@D)/\"; $(location :python_config.sh) --check && touch $$OUTPUTDIR/python_checked",
    local = 1,
)

filegroup(
    name = "configure_files",
    data = glob([
        "*",
    ]),
)