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