2
0
Fork 0
mirror of https://github.com/bazel-contrib/rules_foreign_cc synced 2024-11-27 02:43:28 +00:00
rules_foreign_cc/examples/third_party/libpng/BUILD.bazel
UebelAndre e285764b78
Restructed examples and enabled more testing (#515)
* Reorganized examples

* Documentation

* Third party
2021-02-26 20:21:13 +00:00

26 lines
517 B
Python

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__"],
)