11load ("//:variables.bzl" , "VM_ENABLED_DEFINES" )
22
3- config_setting (
4- name = "benchmark" ,
5- define_values = {"benchmark" : "true" },
6- )
7-
8- config_setting (
9- name = "python" ,
10- define_values = {"python" : "true" },
11- )
12-
13- config_setting (
14- name = "java" ,
15- define_values = {"java" : "true" },
16- )
17-
18- config_setting (
19- name = "bash" ,
20- define_values = {"bash" : "true" },
21- )
22-
233config_setting (
244 name = "r" ,
255 define_values = {"r" : "true" },
266)
277
28- config_setting (
29- name = "fast_binary" ,
30- define_values = {
31- "binary_type" : "fast_binary" ,
32- },
33- )
34-
35- config_setting (
36- name = "slow_wrapper" ,
37- define_values = {
38- "binary_type" : "slow_wrapper" ,
39- },
40- )
41-
42-
43- config_setting (
44- name = "valgrind_wrapper" ,
45- define_values = {
46- "wrapper_type" : "valgrind_wrapper" ,
47- },
48- )
49-
50- config_setting (
51- name = "valgrind_massif_wrapper" ,
52- define_values = {
53- "wrapper_type" : "valgrind_massif_wrapper" ,
54- },
55- )
56-
57- config_setting (
58- name = "stdout_to_bucketfs" ,
59- define_values = {
60- "wrapper_type" : "stdout_to_bucketfs" ,
61- },
62- )
63-
648
659VM_ENABLED_DEPS = select ({
66- "//:benchmark" : ["@exaudfclient//base /benchmark_container:benchmark_container" ],
10+ "@exaudfclient_base //:benchmark" : ["@exaudfclient_base/ /benchmark_container:benchmark_container" ],
6711 "//conditions:default" : []
6812 }) + select ({
69- "//:java" : ["@exaudfclient//base /javacontainer:javacontainer" ],
13+ "@exaudfclient_base //:java" : ["@exaudfclient_base/ /javacontainer:javacontainer" ],
7014 "//conditions:default" : []
7115 }) + select ({
72- "//:bash" : ["@exaudfclient//base /streaming_container:streamingcontainer" ],
16+ "@exaudfclient_base //:bash" : ["@exaudfclient_base/ /streaming_container:streamingcontainer" ],
7317 "//conditions:default" : []
7418 })
7519
7620VM_PYTHON3_DEPS = select ({
77- "//:python" : ["@exaudfclient//base /python/python3:pythoncontainer" ],
21+ "@exaudfclient_base //:python" : ["@exaudfclient_base/ /python/python3:pythoncontainer" ],
7822 "//conditions:default" : []
7923 })
8024
@@ -87,12 +31,12 @@ VM_R_DEPS=select({
8731
8832cc_binary (
8933 name = "exaudfclient_bin" ,
90- srcs = ["exaudfclient.cc" , "@exaudfclient//base :load_dynamic" ],
34+ srcs = ["exaudfclient.cc" , "@exaudfclient_base// :load_dynamic" ],
9135 linkopts = ["-ldl" ], # needed for dynamicly loading libexaudflib_complete.so into another linker namespace
92- deps = ["@exaudfclient//base/ exaudflib:header" , "@exaudfclient//base /utils:utils" ]+ VM_ENABLED_DEPS + VM_PYTHON3_DEPS + VM_R_DEPS +
93- ["@exaudfclient//base /exaudflib:exaudflib-deps" ],
36+ deps = ["@exaudfclient_base// exaudflib:header" , "@exaudfclient_base/ /utils:utils" ]+ VM_ENABLED_DEPS + VM_PYTHON3_DEPS + VM_R_DEPS +
37+ ["@exaudfclient_base/ /exaudflib:exaudflib-deps" ],
9438 defines = VM_ENABLED_DEFINES ,
95- data = ["@exaudfclient//base :libexaudflib_complete.so" ]
39+ data = ["@exaudfclient_base// :libexaudflib_complete.so" ]
9640)
9741
9842## The purpose of the static binaries is to verify if the linker namespace test work correctly.
@@ -104,18 +48,18 @@ cc_binary(
10448## Besides this the test under test/python3/all/linker_namespace.py checks the normal build, which expects
10549## not to find any occurence of the dependencies (protobuf/zmq) in the primary linker namespace.
10650##
107- ## We need to explicitly declare the dependency of protobuf/zmq here, as the exaudflib is a static lib (@exaudfclient//base /exaudflib:exaudflib)
51+ ## We need to explicitly declare the dependency of protobuf/zmq here, as the exaudflib is a static lib (@exaudfclient_base/ /exaudflib:exaudflib)
10852## and hence does not contain dependency information. We cannot declare the shared lib (:exaudflib_complete.so)
10953## as dependency as it is a binary for bazel.
11054
11155cc_binary (
11256 name = "exaudfclient_static_bin" ,
113- srcs = ["exaudfclient.cc" , "@exaudfclient//base :load_dynamic" ],
57+ srcs = ["exaudfclient.cc" , "@exaudfclient_base// :load_dynamic" ],
11458 linkopts = ["-ldl" ], # needed for dynamicly loading libexaudflib_complete.so into another linker namespace
115- deps = ["@exaudfclient//base/ exaudflib:header" , "@exaudfclient//base /utils:utils" ]+ VM_ENABLED_DEPS + VM_PYTHON3_DEPS + VM_R_DEPS +
116- ["@exaudfclient//base /exaudflib:exaudflib-deps" ] + [ "@zmq//:zmq" , "@protobuf//:protobuf" ],
59+ deps = ["@exaudfclient_base// exaudflib:header" , "@exaudfclient_base/ /utils:utils" ]+ VM_ENABLED_DEPS + VM_PYTHON3_DEPS + VM_R_DEPS +
60+ ["@exaudfclient_base/ /exaudflib:exaudflib-deps" ] + [ "@zmq//:zmq" , "@protobuf//:protobuf" ],
11761 defines = VM_ENABLED_DEFINES ,
118- data = ["@exaudfclient//base :libexaudflib_complete.so" ],
62+ data = ["@exaudfclient_base// :libexaudflib_complete.so" ],
11963)
12064
12165# Workarround for the hardcoded paths in exaudfclient for libexaudflib_complete.so and python_ext_dataframe.cc
@@ -129,41 +73,41 @@ cc_binary(
12973sh_library (
13074 name = "wrapper_generator_bin" ,
13175 srcs = select ({
132- "//:valgrind_wrapper" : ["@exaudfclient//base :create_binary_wrapper_valgrind.sh" ],
133- "//:valgrind_massif_wrapper" : ["@exaudfclient//base :create_binary_wrapper_valgrind_massif.sh" ],
134- "//:stdout_to_bucketfs" : ["@exaudfclient//base :create_binary_wrapper_stdout_to_bucketfs.sh" ],
135- "//conditions:default" : ["@exaudfclient//base :create_binary_wrapper.sh" ]
76+ "@exaudfclient_base //:valgrind_wrapper" : ["@exaudfclient_base// :create_binary_wrapper_valgrind.sh" ],
77+ "@exaudfclient_base //:valgrind_massif_wrapper" : ["@exaudfclient_base// :create_binary_wrapper_valgrind_massif.sh" ],
78+ "@exaudfclient_base //:stdout_to_bucketfs" : ["@exaudfclient_base// :create_binary_wrapper_stdout_to_bucketfs.sh" ],
79+ "//conditions:default" : ["@exaudfclient_base// :create_binary_wrapper.sh" ]
13680 })
13781)
13882
13983
140- SLOW_WRAPPER_BINARY = """$(location //:wrapper_generator_bin) "$(location exaudfclient_bin)" "$(location exaudfclient)" "$(location @exaudfclient//base :exaudfclient.template.sh)" """
84+ SLOW_WRAPPER_BINARY = """$(location //:wrapper_generator_bin) "$(location exaudfclient_bin)" "$(location exaudfclient)" "$(location @exaudfclient_base// :exaudfclient.template.sh)" """
14185FAST_BINARY = """cp "$(location exaudfclient_bin)" "$(location exaudfclient)" """
14286CREATE_BINARY_SCRIPT = select ({
143- "//:fast_binary" : FAST_BINARY ,
144- "//:slow_wrapper" : SLOW_WRAPPER_BINARY ,
87+ "@exaudfclient_base //:fast_binary" : FAST_BINARY ,
88+ "@exaudfclient_base //:slow_wrapper" : SLOW_WRAPPER_BINARY ,
14589 "//conditions:default" : FAST_BINARY
14690 })
14791genrule (
14892 name = "exaudfclient" ,
14993 cmd = CREATE_BINARY_SCRIPT ,
15094 outs = ["exaudfclient" ],
151- srcs = [":exaudfclient_bin" , "@exaudfclient//base :libexaudflib_complete.so" , "@exaudfclient//base :exaudfclient.template.sh" , "//:wrapper_generator_bin" ],
95+ srcs = [":exaudfclient_bin" , "@exaudfclient_base// :libexaudflib_complete.so" , "@exaudfclient_base// :exaudfclient.template.sh" , "//:wrapper_generator_bin" ],
15296 output_to_bindir = True
15397)
15498
155- SLOW_WRAPPER_STATIC_BINARY = """$(location //:wrapper_generator_bin) "$(location exaudfclient_static_bin)" "$(location exaudfclient_static)" "$(location @exaudfclient//base :exaudfclient.template.sh)" """
99+ SLOW_WRAPPER_STATIC_BINARY = """$(location //:wrapper_generator_bin) "$(location exaudfclient_static_bin)" "$(location exaudfclient_static)" "$(location @exaudfclient_base// :exaudfclient.template.sh)" """
156100FAST_BINARY_STATIC = """cp "$(location exaudfclient_static_bin)" "$(location exaudfclient_static)" """
157101CREATE_STATIC_BINARY_SCRIPT = select ({
158- "//:fast_binary" : FAST_BINARY_STATIC ,
159- "//:slow_wrapper" : SLOW_WRAPPER_STATIC_BINARY ,
102+ "@exaudfclient_base //:fast_binary" : FAST_BINARY_STATIC ,
103+ "@exaudfclient_base //:slow_wrapper" : SLOW_WRAPPER_STATIC_BINARY ,
160104 "//conditions:default" : FAST_BINARY_STATIC
161105 })
162106
163107genrule (
164108 name = "exaudfclient_static" ,
165109 cmd = CREATE_STATIC_BINARY_SCRIPT ,
166110 outs = ["exaudfclient_static" ],
167- srcs = [":exaudfclient_static_bin" , "@exaudfclient//base :libexaudflib_complete.so" , "@exaudfclient//base :exaudfclient.template.sh" , "//:wrapper_generator_bin" ],
111+ srcs = [":exaudfclient_static_bin" , "@exaudfclient_base// :libexaudflib_complete.so" , "@exaudfclient_base// :exaudfclient.template.sh" , "//:wrapper_generator_bin" ],
168112 output_to_bindir = True
169113)
0 commit comments