diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:45:59 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:45:59 +0000 |
commit | 19fcec84d8d7d21e796c7624e521b60d28ee21ed (patch) | |
tree | 42d26aa27d1e3f7c0b8bd3fd14e7d7082f5008dc /src/jaegertracing/opentracing-cpp/BUILD.bazel | |
parent | Initial commit. (diff) | |
download | ceph-19fcec84d8d7d21e796c7624e521b60d28ee21ed.tar.xz ceph-19fcec84d8d7d21e796c7624e521b60d28ee21ed.zip |
Adding upstream version 16.2.11+ds.upstream/16.2.11+dsupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/jaegertracing/opentracing-cpp/BUILD.bazel | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/jaegertracing/opentracing-cpp/BUILD.bazel b/src/jaegertracing/opentracing-cpp/BUILD.bazel new file mode 100644 index 000000000..c57dc9fe6 --- /dev/null +++ b/src/jaegertracing/opentracing-cpp/BUILD.bazel @@ -0,0 +1,41 @@ +cc_library( + name = "opentracing", + srcs = glob(["src/**/*.cpp"], exclude=["src/dynamic_load_unsupported.cpp", "src/dynamic_load_windows.cpp"]), + hdrs = glob(["include/opentracing/**/*.h"]) + [ + ":include/opentracing/config.h", + ":include/opentracing/version.h", + ], + strip_include_prefix = "include", + visibility = ["//visibility:public"], + deps = [ + "//3rd_party:expected", + "//3rd_party:variant", + ], + linkopts = [ + "-ldl", + ], +) + +genrule( + name = "generate_version_h", + srcs = glob([ + "*", + "cmake/*", + "src/**/*.cpp", + ]), + outs = [ + "include/opentracing/config.h", + "include/opentracing/version.h" + ], + cmd = """ + TEMP_DIR=$$(mktemp -d) + CONFIG_H_OUT=$${PWD}/$(location :include/opentracing/config.h) + VERSION_H_OUT=$${PWD}/$(location :include/opentracing/version.h) + OPENTRACING_ROOT=$$(dirname $${PWD}/$(location :CMakeLists.txt)) + cd $$TEMP_DIR + cmake -DBUILD_TESTING=OFF -DBUILD_MOCKTRACER=OFF -L $$OPENTRACING_ROOT + mv include/opentracing/config.h $$CONFIG_H_OUT + mv include/opentracing/version.h $$VERSION_H_OUT + rm -rf $$TEMP_DIR + """, +) |