mirror of
https://github.com/bazel-contrib/rules_foreign_cc
synced 2024-12-04 08:02:31 +00:00
28 lines
538 B
Plaintext
28 lines
538 B
Plaintext
|
"""pcre is only expected to be used on Linux systems"""
|
||
|
|
||
|
load("@rules_foreign_cc//tools/build_defs:cmake.bzl", "cmake_external")
|
||
|
|
||
|
package(default_visibility = ["//visibility:public"])
|
||
|
|
||
|
filegroup(
|
||
|
name = "all_srcs",
|
||
|
srcs = glob(["**"]),
|
||
|
)
|
||
|
|
||
|
cmake_external(
|
||
|
name = "pcre",
|
||
|
cache_entries = {
|
||
|
"CMAKE_C_FLAGS": "${CMAKE_C_FLAGS:-} -fPIC",
|
||
|
},
|
||
|
lib_source = ":all_srcs",
|
||
|
static_libraries = ["libpcre.a"],
|
||
|
)
|
||
|
|
||
|
filegroup(
|
||
|
name = "pcre_dir",
|
||
|
srcs = [
|
||
|
":pcre",
|
||
|
],
|
||
|
output_group = "gen_dir",
|
||
|
)
|