mirror of
https://github.com/falcosecurity/falco.git
synced 2026-03-31 00:53:03 +00:00
Compare commits
2 Commits
embed-lua-
...
falco-on-a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
825a66e4d4 | ||
|
|
ff53387023 |
23
build/init.sh
Executable file
23
build/init.sh
Executable file
@@ -0,0 +1,23 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# Copyright (C) 2019 The Falco Authors.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
|
||||||
|
# the License. You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an
|
||||||
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
||||||
|
# specific language governing permissions and limitations under the License.
|
||||||
|
#
|
||||||
|
|
||||||
|
cmake ../ \
|
||||||
|
-DBUILD_BPF=OFF \
|
||||||
|
-DBUILD_WARNINGS_AS_ERRORS="OFF" \
|
||||||
|
-DCMAKE_BUILD_TYPE="release" \
|
||||||
|
-DCMAKE_INSTALL_PREFIX="/usr" \
|
||||||
|
-DDRAIOS_DEBUG_FLAGS="-D_DEBUG" \
|
||||||
|
-DFALCO_ETC_DIR="/etc/falco" \
|
||||||
|
-DUSE_BUNDLED_DEPS=ON
|
||||||
|
|
||||||
@@ -42,6 +42,17 @@ if(NOT USE_BUNDLED_DEPS)
|
|||||||
message(FATAL_ERROR "Couldn't find system protobuf")
|
message(FATAL_ERROR "Couldn't find system protobuf")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# gpr
|
||||||
|
find_library(GPR_LIB NAMES gpr)
|
||||||
|
|
||||||
|
if(GPR_LIB)
|
||||||
|
message(STATUS "Found gpr lib: ${GPR_LIB}")
|
||||||
|
else()
|
||||||
|
message(FATAL_ERROR "Couldn't find system gpr")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# gRPC todo(fntlnz, leodido): check that gRPC version is greater or equal than 1.8.0
|
# gRPC todo(fntlnz, leodido): check that gRPC version is greater or equal than 1.8.0
|
||||||
find_path(GRPCXX_INCLUDE NAMES grpc++/grpc++.h)
|
find_path(GRPCXX_INCLUDE NAMES grpc++/grpc++.h)
|
||||||
if(GRPCXX_INCLUDE)
|
if(GRPCXX_INCLUDE)
|
||||||
|
|||||||
@@ -75,6 +75,7 @@ target_include_directories(
|
|||||||
"${YAMLCPP_INCLUDE_DIR}"
|
"${YAMLCPP_INCLUDE_DIR}"
|
||||||
"${CIVETWEB_INCLUDE_DIR}"
|
"${CIVETWEB_INCLUDE_DIR}"
|
||||||
"${GRPC_INCLUDE}"
|
"${GRPC_INCLUDE}"
|
||||||
|
"${GRPCPP_INCLUDE}"
|
||||||
"${PROTOBUF_INCLUDE}"
|
"${PROTOBUF_INCLUDE}"
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}"
|
"${CMAKE_CURRENT_BINARY_DIR}"
|
||||||
"${DRAIOS_DEPENDENCIES_DIR}/yaml-${DRAIOS_YAML_VERSION}/target/include")
|
"${DRAIOS_DEPENDENCIES_DIR}/yaml-${DRAIOS_YAML_VERSION}/target/include")
|
||||||
@@ -83,8 +84,9 @@ target_link_libraries(
|
|||||||
falco
|
falco
|
||||||
falco_engine
|
falco_engine
|
||||||
sinsp
|
sinsp
|
||||||
"${GRPCPP_LIB}"
|
"${GPR_LIB}"
|
||||||
"${GRPC_LIB}"
|
"${GRPC_LIB}"
|
||||||
|
"${GRPCPP_LIB}"
|
||||||
"${PROTOBUF_LIB}"
|
"${PROTOBUF_LIB}"
|
||||||
"${LIBYAML_LIB}"
|
"${LIBYAML_LIB}"
|
||||||
"${YAMLCPP_LIB}"
|
"${YAMLCPP_LIB}"
|
||||||
|
|||||||
Reference in New Issue
Block a user