2
0
Fork 0
mirror of https://github.com/bazel-contrib/rules_foreign_cc synced 2024-11-28 08:43:26 +00:00
rules_foreign_cc/examples/third_party/libpng/BUILD.bazel

26 lines
517 B
Python
Raw Permalink Normal View History

load("@rules_cc//cc:defs.bzl", "cc_binary")
cc_binary(
name = "libpng_usage_example",
srcs = ["libpng_usage_example.cpp"],
deps = [
"@libpng",
"@zlib",
],
)
sh_test(
name = "test_libpng",
srcs = ["test_libpng.sh"],
args = [
"$(location :libpng_usage_example)",
"$(location bazel_icon_transparent.png)",
"out.png",
],
data = [
"bazel_icon_transparent.png",
":libpng_usage_example",
],
visibility = ["//:__pkg__"],
)