2019-01-28 21:10:31 +00:00
|
|
|
load("@rules_foreign_cc//tools/build_defs:configure.bzl", "configure_make")
|
|
|
|
|
2021-02-26 20:21:13 +00:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "all_srcs",
|
|
|
|
srcs = glob(["**"]),
|
|
|
|
)
|
|
|
|
|
2019-01-28 21:10:31 +00:00
|
|
|
# I tested and this builds for me on MAC and Linux, did not check Windows thouigh
|
|
|
|
configure_make(
|
|
|
|
name = "bison",
|
|
|
|
binaries = [
|
|
|
|
"bison",
|
|
|
|
"yacc",
|
|
|
|
],
|
2021-02-26 20:21:13 +00:00
|
|
|
lib_source = ":all_srcs",
|
2019-01-28 21:10:31 +00:00
|
|
|
static_libraries = ["liby.a"],
|
|
|
|
)
|