blob: a610c292994999ca8a29f883bfac7d039e675677 (
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
|
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",
],
outs = [
"python_checked",
],
cmd = "OUTPUTDIR=\"$(@D)/\"; $(location :python_config.sh) --check && touch $$OUTPUTDIR/python_checked",
local = 1,
)
|