提交 f26084a8 编写于 作者: F fengzongbao 提交者: Xiangquan Xiao

ThirdParty: vtk and tensorrt compatible with arm platform

上级 bf2b3730
......@@ -18,8 +18,17 @@ cc_library(
".",
"/usr/include/tensorrt",
],
linkopts = [
"-L/usr/lib/x86_64-linux-gnu/",
linkopts = select(
{
":x86_mode": [
"-L/usr/lib/x86_64-linux-gnu/",
],
":arm_mode": [
"-L/usr/lib/aarch64-linux-gnu/",
],
},
no_match_error = "Please Build with an ARM or Linux x86_64 platform",
) + [
"-lnvcaffe_parser",
"-lnvinfer",
"-lnvinfer_plugin",
......@@ -27,3 +36,13 @@ cc_library(
],
visibility = ["//visibility:public"],
)
config_setting(
name = "x86_mode",
values = {"cpu": "k8"},
)
config_setting(
name = "arm_mode",
values = {"cpu": "arm"},
)
......@@ -9,8 +9,27 @@ cc_library(
"-Wno-deprecated",
],
includes = ["."],
linkopts = [
"-L/usr/lib/x86_64-linux-gnu/",
linkopts = select(
{
":x86_mode": [
"-L/usr/lib/x86_64-linux-gnu/",
],
":arm_mode": [
"-L/usr/lib/aarch64-linux-gnu/",
],
},
no_match_error = "Please Build with an ARM or Linux x86_64 platform",
) + [
"-lvtkCommonCore-7.1",
],
)
config_setting(
name = "x86_mode",
values = {"cpu": "k8"},
)
config_setting(
name = "arm_mode",
values = {"cpu": "arm"},
)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册