From 5da14042f70711ea5cf66e034699730335462f66 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 5 May 2024 14:08:03 +0200 Subject: Merging upstream version 1.45.3+dfsg. Signed-off-by: Daniel Baumann --- src/fluent-bit/lib/ctraces/cmake/headers.cmake | 3 +++ src/fluent-bit/lib/ctraces/cmake/libraries.cmake | 3 +++ src/fluent-bit/lib/ctraces/cmake/macros.cmake | 10 ++++++++++ 3 files changed, 16 insertions(+) create mode 100644 src/fluent-bit/lib/ctraces/cmake/headers.cmake create mode 100644 src/fluent-bit/lib/ctraces/cmake/libraries.cmake create mode 100644 src/fluent-bit/lib/ctraces/cmake/macros.cmake (limited to 'src/fluent-bit/lib/ctraces/cmake') diff --git a/src/fluent-bit/lib/ctraces/cmake/headers.cmake b/src/fluent-bit/lib/ctraces/cmake/headers.cmake new file mode 100644 index 000000000..3a7eb09fb --- /dev/null +++ b/src/fluent-bit/lib/ctraces/cmake/headers.cmake @@ -0,0 +1,3 @@ +include_directories(${PROJECT_SOURCE_DIR}/lib/fluent-otel-proto/include + ${PROJECT_SOURCE_DIR}/lib/fluent-otel-proto/proto_c + ) diff --git a/src/fluent-bit/lib/ctraces/cmake/libraries.cmake b/src/fluent-bit/lib/ctraces/cmake/libraries.cmake new file mode 100644 index 000000000..5e744634f --- /dev/null +++ b/src/fluent-bit/lib/ctraces/cmake/libraries.cmake @@ -0,0 +1,3 @@ +# List of bundled libraries +set(CTR_PATH_LIB_CFL "lib/cfl") +set(CTR_PATH_LIB_FLUENT_OTEL_PROTO "lib/fluent-otel-proto") diff --git a/src/fluent-bit/lib/ctraces/cmake/macros.cmake b/src/fluent-bit/lib/ctraces/cmake/macros.cmake new file mode 100644 index 000000000..877ab14cb --- /dev/null +++ b/src/fluent-bit/lib/ctraces/cmake/macros.cmake @@ -0,0 +1,10 @@ +# Macro to set definitions +macro(CTR_DEFINITION var) + add_definitions(-D${var}) + set(CTR_BUILD_FLAGS "${CTR_BUILD_FLAGS}#ifndef ${var}\n#define ${var}\n#endif\n") + set(CTR_INFO_FLAGS "${CTR_INFO_FLAGS} ${var}") +endmacro() + +macro(CTR_OPTION option value) + set(${option} ${value} CACHE INTERNAL "" FORCE) +endmacro() -- cgit v1.2.3