| commit | bc0fa8dd7c8be054142242d3fb33a7f972ca459d | [log] [tgz] |
|---|---|---|
| author | Ryan Hitchman <rmmh@google.com> | Thu Dec 19 10:01:16 2019 -0800 |
| committer | Ryan Hitchman <rmmh@google.com> | Thu Dec 19 10:01:16 2019 -0800 |
| tree | c49af80120a88a76498d3e35d36772a0245ea3c1 | |
| parent | af0e2de458d68d45fe4a957d351681e743b3ed47 [diff] |
Clean up documentation for pybind_extension.
In your build file:
load("//third_party/pybind11_bazel:build_defs.bzl", "pybind_extension")
Provided rules:
pybind_extension: Builds a python extension, automatically adding the required build flags and pybind11 dependencies. It also defines a .so target which can be manually built and copied. The arguments match a py_extension.pybind_library: Builds a C++ library, automatically adding the required build flags and pybind11 dependencies. This library can then be used as a dependency of a pybind_extension. The arguments match a cc_library.pybind_library_test: Builds a C++ test for a pybind_library. The arguments match a cc_test.To test a pybind_extension, the most common approach is to write the test in python and use the standard py_test build rule.