2021-02-26 20:21:13 +00:00
|
|
|
"""pcre is only expected to be used on Linux systems"""
|
|
|
|
|
2021-03-12 16:54:14 +00:00
|
|
|
load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake")
|
2021-02-26 20:21:13 +00:00
|
|
|
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "all_srcs",
|
|
|
|
srcs = glob(["**"]),
|
|
|
|
)
|
|
|
|
|
2021-03-09 18:55:01 +00:00
|
|
|
cmake(
|
2021-02-26 20:21:13 +00:00
|
|
|
name = "pcre",
|
|
|
|
cache_entries = {
|
|
|
|
"CMAKE_C_FLAGS": "${CMAKE_C_FLAGS:-} -fPIC",
|
|
|
|
},
|
|
|
|
lib_source = ":all_srcs",
|
2021-03-11 17:14:00 +00:00
|
|
|
out_static_libs = ["libpcre.a"],
|
2021-02-26 20:21:13 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "pcre_dir",
|
|
|
|
srcs = [
|
|
|
|
":pcre",
|
|
|
|
],
|
|
|
|
output_group = "gen_dir",
|
|
|
|
)
|