mirror of
https://github.com/bazel-contrib/rules_foreign_cc
synced 2024-11-27 02:43:28 +00:00
e285764b78
* Reorganized examples * Documentation * Third party
26 lines
517 B
Python
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__"],
|
|
)
|