mirror of
https://github.com/vale981/ray
synced 2025-03-05 18:11:42 -05:00
32 lines
696 B
Text
32 lines
696 B
Text
COPTS = [] + select({
|
|
"@bazel_tools//src/conditions:windows": [
|
|
"-Dssize_t=ptrdiff_t", # no ssize_t on Windows
|
|
"-fcolor-diagnostics",
|
|
"-fansi-escape-codes",
|
|
],
|
|
"//conditions:default": [
|
|
],
|
|
})
|
|
|
|
cc_library(
|
|
name = "hiredis",
|
|
srcs = glob(
|
|
[
|
|
"deps/hiredis/*.c",
|
|
"deps/hiredis/*.h",
|
|
],
|
|
exclude =
|
|
[
|
|
"deps/hiredis/test.c",
|
|
],
|
|
),
|
|
hdrs = glob([
|
|
"deps/hiredis/*.h",
|
|
"deps/hiredis/adapters/*.h",
|
|
"deps/hiredis/dict.c",
|
|
]),
|
|
copts = COPTS,
|
|
includes = ["deps"],
|
|
strip_include_prefix = "deps",
|
|
visibility = ["//visibility:public"],
|
|
)
|