| Tim Windelschmidt | a24a7a6 | 2025-07-23 07:09:22 +0200 | [diff] [blame^] | 1 | load("@aspect_bazel_lib//lib:expand_template.bzl", "expand_template") |
| Tim Windelschmidt | 156248b | 2025-01-10 00:27:45 +0100 | [diff] [blame] | 2 | load("@rules_cc//cc:defs.bzl", "cc_library") |
| Lorenz Brun | 344237a | 2024-08-21 17:33:36 +0200 | [diff] [blame] | 3 | |
| Tim Windelschmidt | a24a7a6 | 2025-07-23 07:09:22 +0200 | [diff] [blame^] | 4 | expand_template( |
| 5 | name = "config.h_expanded", |
| 6 | template = ":config.h.in", |
| 7 | out = "config.h", |
| Tim Windelschmidt | 156248b | 2025-01-10 00:27:45 +0100 | [diff] [blame] | 8 | substitutions = {}, |
| Lorenz Brun | 344237a | 2024-08-21 17:33:36 +0200 | [diff] [blame] | 9 | ) |
| 10 | |
| 11 | cc_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 | ) |