Manjunath Kudlur | 7b311af | 2015-12-08 09:51:14 -0800 | [diff] [blame] | 1 | # This is a placeholder for python headers. Projects needing to use |
| 2 | # fast cpp protos in protobuf's python interface should build with |
| 3 | # --define=use_fast_cpp_protos=true, and in addition, provide |
David Z. Chen | 985c968 | 2016-02-11 18:11:10 -0800 | [diff] [blame] | 4 | # //external:python_headers dependency that in turn provides Python.h. |
| 5 | # |
| 6 | # Projects that include protobuf using a Bazel external repository will need to |
| 7 | # add a workspace rule to their WORKSPACE files to add an external workspace |
| 8 | # that includes the Python headers. For example, the protobuf WORKSPACE file |
| 9 | # includes the following local_repository rule that points to this directory: |
| 10 | # |
| 11 | # new_local_repository( |
| 12 | # name = "python", |
| 13 | # path = __workspace_dir__ + "/util/python", |
| 14 | # ) |
Manjunath Kudlur | 7b311af | 2015-12-08 09:51:14 -0800 | [diff] [blame] | 15 | cc_library( |
| 16 | name = "python_headers", |
| 17 | visibility = ["//visibility:public"], |
| 18 | ) |