forked from google/gvisor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin-stack.BUILD
More file actions
27 lines (25 loc) · 1.02 KB
/
plugin-stack.BUILD
File metadata and controls
27 lines (25 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
config_setting(
name = "plugin_tldk_condition",
values = {"define": "plugin_tldk=true"},
)
genrule(
name = "pluginstack_genrule",
outs = ["libpluginstack.a"],
cmd = select({
# Support IVB and later machines.
":plugin_tldk_condition": "git clone https://github.com/alipay/tldk.git && " +
"cd tldk && " +
"git checkout cec8ff773c2ee609a1fcbc389aecb4dbb4e3bb88 && " +
"make -j 4 DPDK_GIT_REPO='https://github.com/DPDK/dpdk' DPDK_MACHINE=ivb EXTRA_CFLAGS='-g -O3 -fPIC -fno-omit-frame-pointer -DLOOK_ASIDE_BACKEND -Wno-error -Wno-use-after-free' all && " +
"cd .. && " +
"cp -f tldk/libtldk.a $(RULEDIR)/libpluginstack.a",
"//conditions:default": "",
}),
local = 1,
visibility = ["//visibility:public"],
)
cc_library(
name = "libpluginstack",
srcs = ["libpluginstack.a"],
visibility = ["//visibility:public"],
)