blob: 3dfb0f80ec3bd12926623af3d1a5230a383f079c [file] [log] [blame]
Lorenz Brun344237a2024-08-21 17:33:36 +02001load("@rules_cc//cc:defs.bzl", "cc_library")
2load("@@//build/utils:template_file.bzl", "template_file")
3
4template_file(
5 name = "config.h",
6 src = "@@//third_party/urcu:config.h.in",
7 substitutions = { },
8)
9
10cc_library(
11 name = "urcu",
12 srcs = glob(
13 [
14 "src/*.c",
15 "src/*.h",
16 ],
17 ),
18 hdrs = glob(["include/**/*.h"]),
19 includes = ["include"],
20 local_defines = ["RCU_MEMBARRIER", "_GNU_SOURCE"],
21 visibility = ["//visibility:public"],
22)