2
0
Fork 0
mirror of https://github.com/bazel-contrib/rules_foreign_cc synced 2024-11-30 16:42:07 +00:00
rules_foreign_cc/examples/third_party/log4cxx/BUILD.log4cxx.bazel

35 lines
779 B
Plaintext

load("@rules_foreign_cc//foreign_cc:defs.bzl", "configure_make")
filegroup(
name = "all_srcs",
srcs = glob(
include = ["**"],
exclude = ["*.bazel"],
),
)
configure_make(
name = "log4cxx",
configure_options = [
"--disable-shared",
"--with-apr=$$EXT_BUILD_DEPS/apr",
"--with-apr-util=$$EXT_BUILD_DEPS/apr_util",
],
env = select({
"@platforms//os:macos": {
"AR": "",
"CXXFLAGS": "-Wno-c++11-narrowing",
},
"//conditions:default": {
"CXXFLAGS": "-Wno-narrowing",
},
}),
lib_source = ":all_srcs",
out_static_libs = ["liblog4cxx.a"],
visibility = ["//visibility:public"],
deps = [
"@apr",
"@apr_util",
],
)