package(default_visibility = ["//src:__subpackages__"]) | |
# This target will only build on a Mac. | |
genrule( | |
name = "realpath_genrule", | |
srcs = ["realpath.c"], | |
outs = ["realpath"], | |
cmd = "/usr/bin/xcrun --sdk macosx clang -mmacosx-version-min=10.9 -o $@ $<", | |
output_to_bindir = 1, | |
visibility = ["//visibility:public"], | |
) | |
filegroup( | |
name = "srcs", | |
srcs = glob(["**"]), | |
visibility = ["//src:__pkg__"], | |
) |