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.
27 lines
791 B
27 lines
791 B
5 years ago
|
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="%{VARIETY_NAME}_lib",
|
||
|
interface_library=select({
|
||
|
"//:windows": ":%{VARIETY_NAME}_import_lib",
|
||
|
# A placeholder for Unix platforms which makes --no_build happy.
|
||
|
"//conditions:default": "not-existing.lib",
|
||
|
}),
|
||
|
system_provided=1,
|
||
|
)
|
||
|
|
||
|
cc_library(
|
||
|
name="%{VARIETY_NAME}_headers",
|
||
|
hdrs=[":%{VARIETY_NAME}_include"],
|
||
|
deps=select({
|
||
|
"//:windows": [":%{VARIETY_NAME}_lib"],
|
||
|
"//conditions:default": [],
|
||
|
}),
|
||
|
includes=["%{VARIETY_NAME}_include"],
|
||
|
)
|
||
|
|
||
|
%{PYTHON_INCLUDE_GENRULE}
|
||
|
%{PYTHON_IMPORT_LIB_GENRULE}
|