mirror of
https://github.com/bazel-contrib/rules_foreign_cc
synced 2024-11-28 08:43:26 +00:00
b136e6c52d
* Add config for building with spawn_strategy=standalone * Always build RELEASE configuration to avoid having to select for the output due to change in artifact names for debug builds * Fix for copy_contents_to_dir and symlink_contents_to_dir on macOS as per #512 * Update name of test files
22 lines
498 B
Plaintext
22 lines
498 B
Plaintext
load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
filegroup(
|
|
name = "all_srcs",
|
|
srcs = glob(["**"]),
|
|
)
|
|
|
|
cmake(
|
|
name = "libpng",
|
|
cache_entries = {
|
|
"CMAKE_BUILD_TYPE": "RELEASE",
|
|
"CMAKE_POLICY_DEFAULT_CMP0074": "NEW",
|
|
"ZLIB_ROOT": "$EXT_BUILD_DEPS/zlib",
|
|
},
|
|
lib_source = "//:all_srcs",
|
|
out_include_dir = "include/libpng16",
|
|
out_static_libs = ["libpng16.a"],
|
|
deps = ["@zlib"],
|
|
)
|