| 1 |
# Adapted with modifications from tensorflow/third_party/py/ |
| 2 |
|
| 3 |
package(default_visibility=["//visibility:public"]) |
| 4 |
|
| 5 |
config_setting( |
| 6 |
name="windows", |
| 7 |
values={"cpu": "x64_windows"}, |
| 8 |
visibility=["//visibility:public"], |
| 9 |
) |
| 10 |
|
| 11 |
config_setting( |
| 12 |
name="python3", |
| 13 |
flag_values = {"@rules_python//python:python_version": "PY3"} |
| 14 |
) |
| 15 |
|
| 16 |
cc_library( |
| 17 |
name = "python_lib", |
| 18 |
deps = select({ |
| 19 |
":python3": ["//_python3:_python3_lib"], |
| 20 |
"//conditions:default": ["not-existing.lib"], |
| 21 |
}) |
| 22 |
) |
| 23 |
|
| 24 |
cc_library( |
| 25 |
name = "python_headers", |
| 26 |
deps = select({ |
| 27 |
":python3": ["//_python3:_python3_headers"], |
| 28 |
"//conditions:default": ["not-existing.headers"], |
| 29 |
}) |
| 30 |
) |