mirror of https://github.com/grpc/grpc.git
The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)
https://grpc.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
911 B
37 lines
911 B
6 years ago
|
# Adapted with modifications from tensorflow/third_party/py/
|
||
|
|
||
|
package(default_visibility=["//visibility:public"])
|
||
|
|
||
|
# To build Python C/C++ extension on Windows, we need to link to python import library pythonXY.lib
|
||
|
# See https://docs.python.org/3/extending/windows.html
|
||
|
cc_import(
|
||
|
name="python_lib",
|
||
|
interface_library=select({
|
||
|
":windows": ":python_import_lib",
|
||
|
# A placeholder for Unix platforms which makes --no_build happy.
|
||
|
"//conditions:default": "not-existing.lib",
|
||
|
}),
|
||
|
system_provided=1,
|
||
|
)
|
||
|
|
||
|
cc_library(
|
||
|
name="python_headers",
|
||
|
hdrs=[":python_include"],
|
||
|
deps=select({
|
||
|
":windows": [":python_lib"],
|
||
|
"//conditions:default": [],
|
||
|
}),
|
||
|
includes=["python_include"],
|
||
|
)
|
||
|
|
||
|
config_setting(
|
||
|
name="windows",
|
||
|
values={"cpu": "x64_windows"},
|
||
|
visibility=["//visibility:public"],
|
||
|
)
|
||
|
|
||
|
%{PYTHON_INCLUDE_GENRULE}
|
||
|
%{PYTHON_IMPORT_LIB_GENRULE}
|
||
|
|
||
|
|