CMake: Rename SINSP_PLUGINS to FALCO_PLUGINS

This commit is contained in:
Gerald Combs 2023-01-11 17:50:36 -08:00
parent 4c9b0d846c
commit de16040021
3 changed files with 6 additions and 5 deletions

View File

@ -2793,11 +2793,12 @@ if(BUILD_logray AND QT_FOUND)
endif(QT_WINDEPLOYQT_EXECUTABLE)
endif()
if (BUILD_logray AND SINSP_FOUND)
if (BUILD_logray AND FALCO_PLUGINS)
add_custom_target(copy_falco_plugins)
add_custom_command(TARGET copy_falco_plugins
COMMAND ${CMAKE_COMMAND} -E make_directory ${LOGRAY_PLUGIN_DIR}/falco
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${SINSP_PLUGINS} ${LOGRAY_PLUGIN_DIR}/falco
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${FALCO_PLUGINS} ${LOGRAY_PLUGIN_DIR}/falco
VERBATIM
)
add_dependencies(logray copy_falco_plugins)
endif()

View File

@ -15,7 +15,7 @@
# SINSP_LINK_LIBRARIES - List of libraries when using libsinsp.
# You must manually set the following variables:
# SINSP_PLUGINS - Paths to plugins built from https://github.com/falcosecurity/plugins/.
# FALCO_PLUGINS - Paths to plugins built from https://github.com/falcosecurity/plugins/.
# To do:
# SINSP_DLL_DIR - (Windows) Path to the libsinsp and libscap DLLs
@ -171,6 +171,6 @@ else()
set(SINSP_LINK_LIBRARIES)
endif()
cmake_dependent_option(SINSP_PLUGINS "Paths to Falco plugins. Semicolon-separated" "" SINSP_FOUND "")
cmake_dependent_option(FALCO_PLUGINS "Paths to Falco plugins. Semicolon-separated" "" SINSP_FOUND "")
mark_as_advanced(SINSP_INCLUDE_DIRS SINSP_LINK_LIBRARIES)

View File

@ -14,7 +14,7 @@ It requires [libsinsp and libscap](https://github.com/falcosecurity/libs/).
cmake \
-DSINSP_INCLUDEDIR=/path/to/falcosecurity-libs \
-DSINSP_LIBDIR=/path/to/falcosecurity-libs/ \
-DSINSP_PLUGINS="/path/to/plugin1;/path/to/plugin2;/path/to/plugin3" \
-DFALCO_PLUGINS="/path/to/plugin1;/path/to/plugin2;/path/to/plugin3" \
[other cmake args]
```