Keith Smiley 914a00a9c9
[bazel] Add support for pybind (#98398)
Previously these targets were disabled, but with a relatively new
rules_python we can build these pointing at a hermetic python, which
allows us to build these safely. Users can still access the files
directly if they need to customize how these are built.
2024-07-18 17:23:02 -07:00

16 lines
384 B
Plaintext

cc_library(
name = "pybind11",
hdrs = glob(
include = ["include/pybind11/**/*.h"],
exclude = [
# Deprecated file that just emits a warning
"include/pybind11/common.h",
],
),
includes = ["include"],
visibility = ["//visibility:public"],
deps = [
"@rules_python//python/cc:current_py_cc_headers",
],
)