blob: 183162fddccb1488a2732682df8a248fa66e990c [file] [log] [blame]
Tim Windelschmidta24a7a62025-07-23 07:09:22 +02001load("@aspect_bazel_lib//lib:expand_template.bzl", "expand_template")
Tim Windelschmidt156248b2025-01-10 00:27:45 +01002load("@rules_cc//cc:defs.bzl", "cc_library")
Lorenz Brun344237a2024-08-21 17:33:36 +02003
Tim Windelschmidta24a7a62025-07-23 07:09:22 +02004expand_template(
5 name = "config.h_expanded",
6 template = ":config.h.in",
7 out = "config.h",
Tim Windelschmidt156248b2025-01-10 00:27:45 +01008 substitutions = {},
Lorenz Brun344237a2024-08-21 17:33:36 +02009)
10
11cc_library(
12 name = "urcu",
13 srcs = glob(
14 [
15 "src/*.c",
16 "src/*.h",
17 ],
18 ),
19 hdrs = glob(["include/**/*.h"]),
20 includes = ["include"],
21 local_defines = ["RCU_MEMBARRIER", "_GNU_SOURCE"],
22 visibility = ["//visibility:public"],
23)