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