diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 12:08:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 12:08:18 +0000 |
commit | 5da14042f70711ea5cf66e034699730335462f66 (patch) | |
tree | 0f6354ccac934ed87a2d555f45be4c831cf92f4a /src/fluent-bit/lib/ctraces/cmake | |
parent | Releasing debian version 1.44.3-2. (diff) | |
download | netdata-5da14042f70711ea5cf66e034699730335462f66.tar.xz netdata-5da14042f70711ea5cf66e034699730335462f66.zip |
Merging upstream version 1.45.3+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/fluent-bit/lib/ctraces/cmake')
-rw-r--r-- | src/fluent-bit/lib/ctraces/cmake/headers.cmake | 3 | ||||
-rw-r--r-- | src/fluent-bit/lib/ctraces/cmake/libraries.cmake | 3 | ||||
-rw-r--r-- | src/fluent-bit/lib/ctraces/cmake/macros.cmake | 10 |
3 files changed, 16 insertions, 0 deletions
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() |