File
Blob: build/wd_cc_capnp_library.bzl
| 1 | """wd_cc_capnp_library definition""" |
| 2 | |
| 3 | load("@capnp-cpp//src/capnp:cc_capnp_library.bzl", "cc_capnp_library") |
| 4 | |
| 5 | def wd_cc_capnp_library(target_compatible_with = None, **kwargs): |
| 6 | """Wrapper for cc_capnp_library that sets common attributes |
| 7 | """ |
| 8 | if target_compatible_with == None: |
| 9 | target_compatible_with = select({ |
| 10 | "@//build/config:no_build": ["@platforms//:incompatible"], |
| 11 | "//conditions:default": [], |
| 12 | }) |
| 13 | |
| 14 | cc_capnp_library( |
| 15 | target_compatible_with = target_compatible_with, |
| 16 | src_prefix = "src", |
| 17 | strip_include_prefix = "/src", |
| 18 | **kwargs |
| 19 | ) |