OLD | NEW |
1 # This is a placeholder for python headers. Projects needing to use | 1 # This is a placeholder for python headers. Projects needing to use |
2 # fast cpp protos in protobuf's python interface should build with | 2 # fast cpp protos in protobuf's python interface should build with |
3 # --define=use_fast_cpp_protos=true, and in addition, provide | 3 # --define=use_fast_cpp_protos=true, and in addition, provide |
4 # //util/python:python_headers dependency that in turn provides Python.h. | 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 # ) |
5 cc_library( | 15 cc_library( |
6 name = "python_headers", | 16 name = "python_headers", |
7 visibility = ["//visibility:public"], | 17 visibility = ["//visibility:public"], |
8 ) | 18 ) |
OLD | NEW |