mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-11 19:12:12 +00:00
update: sysdig dir gate in subdirectories
Signed-off-by: Lorenzo Fontana <lo@linux.com> Co-authored-by: Leonardo Di Donato <leodidonato@gmail.com>
This commit is contained in:
parent
e688ab7d0a
commit
19c12042f4
@ -18,6 +18,10 @@
|
|||||||
configure_file(debian/postinst.in debian/postinst)
|
configure_file(debian/postinst.in debian/postinst)
|
||||||
configure_file(debian/prerm.in debian/prerm)
|
configure_file(debian/prerm.in debian/prerm)
|
||||||
|
|
||||||
|
if(NOT SYSDIG_DIR)
|
||||||
|
set(SYSDIG_DIR "${PROJECT_SOURCE_DIR}/../sysdig")
|
||||||
|
endif()
|
||||||
|
|
||||||
file(COPY "${PROJECT_SOURCE_DIR}/scripts/debian/falco"
|
file(COPY "${PROJECT_SOURCE_DIR}/scripts/debian/falco"
|
||||||
DESTINATION "${PROJECT_BINARY_DIR}/scripts/debian")
|
DESTINATION "${PROJECT_BINARY_DIR}/scripts/debian")
|
||||||
|
|
||||||
|
@ -40,6 +40,7 @@ if(FALCO_BUILD_TESTS)
|
|||||||
"${FAKEIT_INCLUDE}"
|
"${FAKEIT_INCLUDE}"
|
||||||
"${PROJECT_SOURCE_DIR}/userspace/engine")
|
"${PROJECT_SOURCE_DIR}/userspace/engine")
|
||||||
|
|
||||||
|
include(CMakeParseArguments)
|
||||||
include(CTest)
|
include(CTest)
|
||||||
include(Catch)
|
include(Catch)
|
||||||
catch_discover_tests(falco_test)
|
catch_discover_tests(falco_test)
|
||||||
|
@ -15,6 +15,10 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
if(NOT SYSDIG_DIR)
|
||||||
|
set(SYSDIG_DIR "${PROJECT_SOURCE_DIR}/../sysdig")
|
||||||
|
endif()
|
||||||
|
|
||||||
set(FALCO_ENGINE_SOURCE_FILES
|
set(FALCO_ENGINE_SOURCE_FILES
|
||||||
rules.cpp
|
rules.cpp
|
||||||
falco_common.cpp
|
falco_common.cpp
|
||||||
|
@ -15,8 +15,11 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
if(NOT SYSDIG_DIR)
|
||||||
|
set(SYSDIG_DIR "${PROJECT_SOURCE_DIR}/../sysdig")
|
||||||
|
endif()
|
||||||
|
|
||||||
configure_file("${PROJECT_SOURCE_DIR}/../sysdig/userspace/sysdig/config_sysdig.h.in" config_sysdig.h)
|
configure_file("${SYSDIG_DIR}/userspace/sysdig/config_sysdig.h.in" config_sysdig.h)
|
||||||
|
|
||||||
add_executable(falco
|
add_executable(falco
|
||||||
configuration.cpp
|
configuration.cpp
|
||||||
@ -25,7 +28,7 @@ add_executable(falco
|
|||||||
event_drops.cpp
|
event_drops.cpp
|
||||||
statsfilewriter.cpp
|
statsfilewriter.cpp
|
||||||
falco.cpp
|
falco.cpp
|
||||||
"${PROJECT_SOURCE_DIR}/../sysdig/userspace/sysdig/fields_info.cpp"
|
"${SYSDIG_DIR}/userspace/sysdig/fields_info.cpp"
|
||||||
webserver.cpp)
|
webserver.cpp)
|
||||||
|
|
||||||
target_include_directories(falco PUBLIC
|
target_include_directories(falco PUBLIC
|
||||||
|
Loading…
Reference in New Issue
Block a user