diff --git a/cmake/modules/CompilerFlags.cmake b/cmake/modules/CompilerFlags.cmake index fdcb7fa6bf..dba1ce6595 100644 --- a/cmake/modules/CompilerFlags.cmake +++ b/cmake/modules/CompilerFlags.cmake @@ -1,3 +1,17 @@ +# SPDX-License-Identifier: Apache-2.0 +# +# Copyright (C) 2023 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. +# + option(BUILD_WARNINGS_AS_ERRORS "Enable building with -Wextra -Werror flags") option(ENABLE_PIC "Build position independent libraries and executables" ${BUILD_SHARED_LIBS}) diff --git a/cmake/modules/FindMakedev.cmake b/cmake/modules/FindMakedev.cmake index 6f5866fcd0..db1b6ba41e 100644 --- a/cmake/modules/FindMakedev.cmake +++ b/cmake/modules/FindMakedev.cmake @@ -1,5 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # -# Copyright (C) 2021 The Falco Authors. +# Copyright (C) 2023 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. diff --git a/cmake/modules/Findvalijson.cmake b/cmake/modules/Findvalijson.cmake index 1bf5d0405f..0fdefdc4a1 100644 --- a/cmake/modules/Findvalijson.cmake +++ b/cmake/modules/Findvalijson.cmake @@ -1,5 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # -# Copyright (C) 2022 The Falco Authors. +# Copyright (C) 2023 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. diff --git a/cmake/modules/GetVersionFromGit.cmake b/cmake/modules/GetVersionFromGit.cmake index 287a0e0cee..bfe487c41b 100644 --- a/cmake/modules/GetVersionFromGit.cmake +++ b/cmake/modules/GetVersionFromGit.cmake @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 # # Copyright (C) 2023 The Falco Authors. # @@ -188,4 +189,4 @@ function(get_version_from_git _var match_suffix exclude_suffix) set(${_var} "${dev_version}" PARENT_SCOPE) -endfunction() \ No newline at end of file +endfunction() diff --git a/cmake/modules/b64.cmake b/cmake/modules/b64.cmake index f4f893f735..cd8b813391 100644 --- a/cmake/modules/b64.cmake +++ b/cmake/modules/b64.cmake @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 # # Copyright (C) 2023 The Falco Authors. # diff --git a/cmake/modules/cares.cmake b/cmake/modules/cares.cmake index df0033115a..194d9872c4 100644 --- a/cmake/modules/cares.cmake +++ b/cmake/modules/cares.cmake @@ -1,3 +1,17 @@ +# SPDX-License-Identifier: Apache-2.0 +# +# Copyright (C) 2023 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. +# + option(USE_BUNDLED_CARES "Enable building of the bundled c-ares" ${USE_BUNDLED_DEPS}) if(CARES_INCLUDE) diff --git a/cmake/modules/compute_versions.cmake b/cmake/modules/compute_versions.cmake index 12eb1b2d30..2c6a215556 100644 --- a/cmake/modules/compute_versions.cmake +++ b/cmake/modules/compute_versions.cmake @@ -1,3 +1,17 @@ +# SPDX-License-Identifier: Apache-2.0 +# +# Copyright (C) 2023 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. +# + # Computes API/SCHEMA major, minor, patch and git commit macro(compute_versions api_version_path schema_version_path) diff --git a/cmake/modules/curl.cmake b/cmake/modules/curl.cmake index cc71173076..aba30d29db 100644 --- a/cmake/modules/curl.cmake +++ b/cmake/modules/curl.cmake @@ -1,6 +1,17 @@ +# SPDX-License-Identifier: Apache-2.0 # -# libcurl +# Copyright (C) 2023 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. +# + option(USE_BUNDLED_CURL "Enable building of the bundled curl" ${USE_BUNDLED_DEPS}) include(openssl) diff --git a/cmake/modules/grpc.cmake b/cmake/modules/grpc.cmake index b56478326e..ba2d101dc5 100644 --- a/cmake/modules/grpc.cmake +++ b/cmake/modules/grpc.cmake @@ -1,3 +1,17 @@ +# SPDX-License-Identifier: Apache-2.0 +# +# Copyright (C) 2023 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. +# + option(USE_BUNDLED_GRPC "Enable building of the bundled grpc" ${USE_BUNDLED_DEPS}) if(GRPC_INCLUDE) diff --git a/cmake/modules/gtest.cmake b/cmake/modules/gtest.cmake index 4ff02374bd..a94ed62828 100644 --- a/cmake/modules/gtest.cmake +++ b/cmake/modules/gtest.cmake @@ -1,3 +1,17 @@ +# SPDX-License-Identifier: Apache-2.0 +# +# Copyright (C) 2023 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. +# + option(USE_BUNDLED_GTEST "Enable building of the bundled gtest" ${USE_BUNDLED_DEPS}) if(GTEST_INCLUDE_DIR) diff --git a/cmake/modules/jq.cmake b/cmake/modules/jq.cmake index 66a0d68fb2..dc9ccd972c 100644 --- a/cmake/modules/jq.cmake +++ b/cmake/modules/jq.cmake @@ -1,6 +1,17 @@ +# SPDX-License-Identifier: Apache-2.0 # -# jq +# Copyright (C) 2023 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. +# + option(USE_BUNDLED_JQ "Enable building of the bundled jq" ${USE_BUNDLED_DEPS}) if(JQ_INCLUDE) diff --git a/cmake/modules/jsoncpp.cmake b/cmake/modules/jsoncpp.cmake index 4675c366d3..5ed411200c 100644 --- a/cmake/modules/jsoncpp.cmake +++ b/cmake/modules/jsoncpp.cmake @@ -1,5 +1,15 @@ +# SPDX-License-Identifier: Apache-2.0 # -# JsonCpp +# Copyright (C) 2023 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. # option(USE_BUNDLED_JSONCPP "Enable building of the bundled jsoncpp" ${USE_BUNDLED_DEPS}) diff --git a/cmake/modules/libbpf.cmake b/cmake/modules/libbpf.cmake index 9511738134..d9df916c83 100644 --- a/cmake/modules/libbpf.cmake +++ b/cmake/modules/libbpf.cmake @@ -1,6 +1,17 @@ +# SPDX-License-Identifier: Apache-2.0 # -# libbpf +# Copyright (C) 2023 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. +# + option(USE_BUNDLED_LIBBPF "Enable building of the bundled libbpf" ${USE_BUNDLED_DEPS}) if(LIBBPF_INCLUDE) diff --git a/cmake/modules/libelf.cmake b/cmake/modules/libelf.cmake index 2a635945a0..40bbbe2e95 100644 --- a/cmake/modules/libelf.cmake +++ b/cmake/modules/libelf.cmake @@ -1,6 +1,17 @@ +# SPDX-License-Identifier: Apache-2.0 # -# LIBELF +# Copyright (C) 2023 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. +# + option(USE_BUNDLED_LIBELF "Enable building of the bundled libelf" ${USE_BUNDLED_DEPS}) if(LIBELF_INCLUDE) diff --git a/cmake/modules/libscap.cmake b/cmake/modules/libscap.cmake index b831a584fa..771e8683b8 100644 --- a/cmake/modules/libscap.cmake +++ b/cmake/modules/libscap.cmake @@ -1,3 +1,17 @@ +# SPDX-License-Identifier: Apache-2.0 +# +# Copyright (C) 2023 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. +# + if(NOT HAVE_LIBSCAP) set(HAVE_LIBSCAP On) diff --git a/cmake/modules/libsinsp.cmake b/cmake/modules/libsinsp.cmake index 44ba3e044f..ee8248f50f 100644 --- a/cmake/modules/libsinsp.cmake +++ b/cmake/modules/libsinsp.cmake @@ -1,3 +1,17 @@ +# SPDX-License-Identifier: Apache-2.0 +# +# Copyright (C) 2023 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. +# + if(NOT HAVE_LIBSINSP) set(HAVE_LIBSINSP On) diff --git a/cmake/modules/luajit.cmake b/cmake/modules/luajit.cmake index 01b3b6a4fa..8ef8da38b0 100644 --- a/cmake/modules/luajit.cmake +++ b/cmake/modules/luajit.cmake @@ -1,6 +1,17 @@ +# SPDX-License-Identifier: Apache-2.0 # -# LuaJIT +# Copyright (C) 2023 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. +# + option(USE_BUNDLED_LUAJIT "Enable building of the bundled LuaJIT" ${USE_BUNDLED_DEPS}) if(LUAJIT_INCLUDE) diff --git a/cmake/modules/openssl.cmake b/cmake/modules/openssl.cmake index 44ce15c1df..5a806a96b9 100644 --- a/cmake/modules/openssl.cmake +++ b/cmake/modules/openssl.cmake @@ -1,6 +1,17 @@ +# SPDX-License-Identifier: Apache-2.0 # -# OpenSSL +# Copyright (C) 2023 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. +# + option(USE_BUNDLED_OPENSSL "Enable building of the bundled OpenSSL" ${USE_BUNDLED_DEPS}) if(OPENSSL_INCLUDE_DIR) diff --git a/cmake/modules/protobuf.cmake b/cmake/modules/protobuf.cmake index 48152325be..f95735e49a 100644 --- a/cmake/modules/protobuf.cmake +++ b/cmake/modules/protobuf.cmake @@ -1,3 +1,17 @@ +# SPDX-License-Identifier: Apache-2.0 +# +# Copyright (C) 2023 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. +# + option(USE_BUNDLED_PROTOBUF "Enable building of the bundled protobuf" ${USE_BUNDLED_DEPS}) if(PROTOBUF_INCLUDE) diff --git a/cmake/modules/re2.cmake b/cmake/modules/re2.cmake index 1f50c16f13..ecf9897138 100644 --- a/cmake/modules/re2.cmake +++ b/cmake/modules/re2.cmake @@ -1,6 +1,17 @@ +# SPDX-License-Identifier: Apache-2.0 # -# RE2 +# Copyright (C) 2023 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. +# + option(USE_BUNDLED_RE2 "Enable building of the bundled RE2" ${USE_BUNDLED_DEPS}) if(RE2_INCLUDE) diff --git a/cmake/modules/tbb.cmake b/cmake/modules/tbb.cmake index 05116525be..a00ec120ed 100644 --- a/cmake/modules/tbb.cmake +++ b/cmake/modules/tbb.cmake @@ -1,6 +1,17 @@ +# SPDX-License-Identifier: Apache-2.0 # -# Intel tbb +# Copyright (C) 2023 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. +# + option(USE_BUNDLED_TBB "Enable building of the bundled tbb" ${USE_BUNDLED_DEPS}) if(TBB_INCLUDE_DIR) diff --git a/cmake/modules/tinydir.cmake b/cmake/modules/tinydir.cmake index 81278674b7..e788aee3f3 100644 --- a/cmake/modules/tinydir.cmake +++ b/cmake/modules/tinydir.cmake @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 # # Copyright (C) 2023 The Falco Authors. # @@ -45,4 +46,4 @@ if(NOT TARGET tinydir) add_custom_target(tinydir) endif() -include_directories("${TINYDIR_INCLUDE}") \ No newline at end of file +include_directories("${TINYDIR_INCLUDE}") diff --git a/cmake/modules/uthash.cmake b/cmake/modules/uthash.cmake index 988a3b544b..ecc030662c 100644 --- a/cmake/modules/uthash.cmake +++ b/cmake/modules/uthash.cmake @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 # # Copyright (C) 2023 The Falco Authors. # diff --git a/cmake/modules/valijson.cmake b/cmake/modules/valijson.cmake index cb4b486619..5dcde2cd32 100644 --- a/cmake/modules/valijson.cmake +++ b/cmake/modules/valijson.cmake @@ -1,5 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 # -# Copyright (C) 2020 The Falco Authors. +# Copyright (C) 2023 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 diff --git a/cmake/modules/versions.cmake b/cmake/modules/versions.cmake index 054d46d5c7..682f8cc478 100644 --- a/cmake/modules/versions.cmake +++ b/cmake/modules/versions.cmake @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 # # Copyright (C) 2023 The Falco Authors. # @@ -48,4 +49,4 @@ function(get_shared_libs_versions _var _sovar) list(GET sl_ver_list 0 so_ver) set(${_sovar} ${so_ver} PARENT_SCOPE) return() -endfunction() \ No newline at end of file +endfunction() diff --git a/cmake/modules/zlib.cmake b/cmake/modules/zlib.cmake index f9c9d72d98..344b00bdb6 100644 --- a/cmake/modules/zlib.cmake +++ b/cmake/modules/zlib.cmake @@ -1,6 +1,17 @@ +# SPDX-License-Identifier: Apache-2.0 # -# zlib +# Copyright (C) 2023 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. +# + option(USE_BUNDLED_ZLIB "Enable building of the bundled zlib" ${USE_BUNDLED_DEPS}) if(ZLIB_INCLUDE)