summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-06-14 19:20:33 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-06-14 19:20:33 +0000
commit6cf8f2d5174a53f582e61d715edbb88d6e3367cc (patch)
tree78cec0fd8d09c4a6a052461d42f4b2be3af6d396 /CMakeLists.txt
parentAdding upstream version 1.39.1. (diff)
downloadnetdata-upstream/1.40.0.tar.xz
netdata-upstream/1.40.0.zip
Adding upstream version 1.40.0.upstream/1.40.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--CMakeLists.txt51
1 files changed, 28 insertions, 23 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2447abb6c..34c381619 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -86,7 +86,6 @@ pkg_check_modules(ZLIB REQUIRED zlib)
set(NETDATA_COMMON_CFLAGS ${NETDATA_COMMON_CFLAGS} ${ZLIB_CFLAGS_OTHER})
set(NETDATA_COMMON_LIBRARIES ${NETDATA_COMMON_LIBRARIES} ${ZLIB_LIBRARIES})
set(NETDATA_COMMON_INCLUDE_DIRS ${NETDATA_COMMON_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIRS})
-# set(NETDATA_REQUIRED_DEFINES "${NETDATA_REQUIRED_DEFINES} -DNETDATA_WITH_ZLIB=1")
# -----------------------------------------------------------------------------
# libuv multi-platform support library with a focus on asynchronous I/O
@@ -387,35 +386,14 @@ set(LIBJUDY_SOURCES
libnetdata/libjudy/src/JudyL/JudyLNextEmpty.c
libnetdata/libjudy/src/JudyL/JudyLPrev.c
libnetdata/libjudy/src/JudyL/JudyLPrevEmpty.c
- JudyLTables.c
+ libnetdata/libjudy/src/JudyL/JudyLTables.c
libnetdata/libjudy/src/JudyHS/JudyHS.c)
ADD_LIBRARY(judy STATIC
${LIBJUDY_SOURCES})
-ADD_EXECUTABLE(judyltablesgen
- libnetdata/libjudy/src/JudyL/JudyLTablesGen.c)
-
-target_include_directories(judyltablesgen PUBLIC
- libnetdata/libjudy/src
- libnetdata/libjudy/src/JudyCommon)
-
-target_compile_options(judyltablesgen PUBLIC
- -Wno-format
- -Wno-format-security)
-
include_directories(BEFORE ${CMAKE_SOURCE_DIR}/libnetdata/libjudy/src)
-target_compile_definitions(judyltablesgen PUBLIC
- JU_64BIT
- JUDYL)
-
-add_custom_command(
- OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/JudyLTables.c
- COMMAND judyltablesgen
- DEPENDS judyltablesgen
- )
-
target_include_directories(judy PUBLIC
libnetdata/libjudy/src
libnetdata/libjudy/src/JudyCommon)
@@ -468,6 +446,8 @@ set(LIBNETDATA_FILES
libnetdata/dictionary/dictionary.h
libnetdata/eval/eval.c
libnetdata/eval/eval.h
+ libnetdata/gorilla/gorilla.cc
+ libnetdata/gorilla/gorilla.h
libnetdata/health/health.c
libnetdata/health/health.h
libnetdata/july/july.c
@@ -513,6 +493,7 @@ set(LIBNETDATA_FILES
libnetdata/worker_utilization/worker_utilization.h
libnetdata/parser/parser.h
libnetdata/parser/parser.c
+ libnetdata/http/http_defs.h
)
IF(ENABLE_PLUGIN_EBPF)
@@ -528,6 +509,13 @@ target_include_directories(libnetdata BEFORE PUBLIC ${GENERATED_CONFIG_H_DIR})
set(APPS_PLUGIN_FILES
collectors/apps.plugin/apps_plugin.c)
+set(DEBUGFS_PLUGIN_FILES
+ collectors/debugfs.plugin/debugfs_plugin.c
+ collectors/debugfs.plugin/debugfs_plugin.h
+ collectors/debugfs.plugin/debugfs_extfrag.c
+ collectors/debugfs.plugin/debugfs_zswap.c
+ )
+
set(FREEBSD_PLUGIN_FILES
collectors/freebsd.plugin/plugin_freebsd.c
collectors/freebsd.plugin/plugin_freebsd.h
@@ -632,6 +620,8 @@ set(EBPF_PROCESS_PLUGIN_FILES
collectors/ebpf.plugin/ebpf_apps.h
collectors/ebpf.plugin/ebpf_cgroup.c
collectors/ebpf.plugin/ebpf_cgroup.h
+ collectors/ebpf.plugin/ebpf_unittest.c
+ collectors/ebpf.plugin/ebpf_unittest.h
)
set(PROC_PLUGIN_FILES
@@ -1385,6 +1375,21 @@ target_compile_options(netdatacli PUBLIC ${NETDATA_COMMON_CFLAGS})
# -----------------------------------------------------------------------------
+# debugfs.plugin
+
+IF(ENABLE_PLUGIN_DEBUGFS)
+ message(STATUS "debugfs.plugin: enabled")
+ add_executable(debugfs.plugin ${GENERATED_CONFIG_H} ${DEBUGFS_PLUGIN_FILES})
+ target_link_libraries (debugfs.plugin libnetdata ${NETDATA_COMMON_LIBRARIES} ${CAP_LIBRARIES})
+ target_include_directories(debugfs.plugin PUBLIC ${NETDATA_COMMON_INCLUDE_DIRS} ${CAP_INCLUDE_DIRS})
+ target_include_directories(debugfs.plugin BEFORE PUBLIC ${GENERATED_CONFIG_H_DIR})
+ target_compile_options(debugfs.plugin PUBLIC ${NETDATA_COMMON_CFLAGS} ${CAP_CFLAGS_OTHER})
+ELSE()
+ message(STATUS "debugfs.plugin: disabled")
+ENDIF()
+
+
+# -----------------------------------------------------------------------------
# apps.plugin
IF(ENABLE_PLUGIN_APPS)