2019-07-26 11:14:19 +00:00
|
|
|
load("@rules_cc//cc:defs.bzl", "cc_library")
|
|
|
|
|
2022-04-30 00:57:55 +00:00
|
|
|
exports_files(["BUILD.bazel"])
|
2022-04-22 23:58:16 +00:00
|
|
|
|
2015-12-08 17:51:14 +00:00
|
|
|
# This is a placeholder for python headers. Projects needing to use
|
|
|
|
# fast cpp protos in protobuf's python interface should build with
|
|
|
|
# --define=use_fast_cpp_protos=true, and in addition, provide
|
2016-02-12 02:11:10 +00:00
|
|
|
# //external:python_headers dependency that in turn provides Python.h.
|
|
|
|
#
|
|
|
|
# Projects that include protobuf using a Bazel external repository will need to
|
|
|
|
# add a workspace rule to their WORKSPACE files to add an external workspace
|
|
|
|
# that includes the Python headers. For example, the protobuf WORKSPACE file
|
|
|
|
# includes the following local_repository rule that points to this directory:
|
|
|
|
#
|
|
|
|
# new_local_repository(
|
2019-07-15 23:40:57 +00:00
|
|
|
# name = "python_headers",
|
2016-02-12 02:11:10 +00:00
|
|
|
# path = __workspace_dir__ + "/util/python",
|
|
|
|
# )
|
2015-12-08 17:51:14 +00:00
|
|
|
cc_library(
|
|
|
|
name = "python_headers",
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|