2
0
Fork 0
mirror of https://github.com/bazel-contrib/rules_foreign_cc synced 2024-12-04 08:02:31 +00:00
rules_foreign_cc/examples/third_party/iconv/BUILD.iconv.macos.bazel
James Sharpe 7baefc1a8c
Autotools examples (#754)
* Build files for autotools tools
* m4 1.4.19
2021-11-19 00:56:08 +00:00

26 lines
566 B
Plaintext

"""libiconv is only expected to be used on MacOS systems"""
load("@rules_foreign_cc//foreign_cc:defs.bzl", "configure_make")
filegroup(
name = "all",
srcs = glob(["**"]),
)
configure_make(
name = "iconv",
configure_in_place = True,
configure_options = [
"--enable-relocatable",
"--enable-shared=no",
"--enable-static=yes",
],
env = {"AR": ""},
lib_source = "@iconv_macos//:all",
out_static_libs = [
"libiconv.a",
],
targets = ["install-lib"],
visibility = ["//visibility:public"],
)