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/bison/BUILD.bison.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
538 B
Plaintext

load("@rules_foreign_cc//foreign_cc:defs.bzl", "configure_make")
package(default_visibility = ["//visibility:public"])
filegroup(
name = "all_srcs",
srcs = glob(["**"]),
)
# I tested and this builds for me on MAC and Linux, did not check Windows thouigh
configure_make(
name = "bison",
build_data = [
"@m4",
],
env = {
"M4": "$$EXT_BUILD_DEPS$$/bin/m4/bin/m4",
},
lib_source = ":all_srcs",
out_binaries = [
"bison",
"yacc",
],
out_static_libs = ["liby.a"],
)