BUILD 819 B

1234567891011121314151617181920
  1. load("@rules_cc//cc:defs.bzl", "cc_library")
  2. # This is a placeholder for python headers. Projects needing to use
  3. # fast cpp protos in protobuf's python interface should build with
  4. # --define=use_fast_cpp_protos=true, and in addition, provide
  5. # //external:python_headers dependency that in turn provides Python.h.
  6. #
  7. # Projects that include protobuf using a Bazel external repository will need to
  8. # add a workspace rule to their WORKSPACE files to add an external workspace
  9. # that includes the Python headers. For example, the protobuf WORKSPACE file
  10. # includes the following local_repository rule that points to this directory:
  11. #
  12. # new_local_repository(
  13. # name = "python_headers",
  14. # path = __workspace_dir__ + "/util/python",
  15. # )
  16. cc_library(
  17. name = "python_headers",
  18. visibility = ["//visibility:public"],
  19. )