Brian Silverman | 3fca9d7 | 2016-02-20 02:32:51 -0500 | [diff] [blame] | 1 | licenses(["notice"]) |
| 2 | |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 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 |
Austin Schuh | f972444 | 2018-10-28 20:30:21 -0700 | [diff] [blame] | 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", |
| 15 | # path = __workspace_dir__ + "/util/python", |
| 16 | # ) |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 17 | cc_library( |
| 18 | name = "python_headers", |
| 19 | visibility = ["//visibility:public"], |
| 20 | ) |