diff --git a/cmake/modules/CPackConfig.cmake b/cmake/modules/CPackConfig.cmake index 1754f606..428cc99b 100644 --- a/cmake/modules/CPackConfig.cmake +++ b/cmake/modules/CPackConfig.cmake @@ -1,3 +1,16 @@ +# +# Copyright (C) 2020 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. +# + set(CPACK_PACKAGE_NAME "${PACKAGE_NAME}") set(CPACK_PACKAGE_VENDOR "Cloud Native Computing Foundation (CNCF) cncf.io.") set(CPACK_PACKAGE_CONTACT "cncf-falco-dev@lists.cncf.io") # todo: change this once we've got @falco.org addresses diff --git a/cmake/modules/Coverage.cmake b/cmake/modules/Coverage.cmake index 0c34bcfb..54a309de 100644 --- a/cmake/modules/Coverage.cmake +++ b/cmake/modules/Coverage.cmake @@ -1,5 +1,5 @@ # -# Copyright (C) 2019 The Falco Authors. +# Copyright (C) 2020 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/DownloadCatch.cmake b/cmake/modules/DownloadCatch.cmake index 2a525de9..3ddffd42 100644 --- a/cmake/modules/DownloadCatch.cmake +++ b/cmake/modules/DownloadCatch.cmake @@ -1,5 +1,5 @@ # -# Copyright (C) 2019 The Falco Authors. +# Copyright (C) 2020 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/DownloadFakeIt.cmake b/cmake/modules/DownloadFakeIt.cmake index c2bcd358..c191161c 100644 --- a/cmake/modules/DownloadFakeIt.cmake +++ b/cmake/modules/DownloadFakeIt.cmake @@ -1,5 +1,5 @@ # -# Copyright (C) 2019 The Falco Authors. +# Copyright (C) 2020 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/DownloadStringViewLite.cmake b/cmake/modules/DownloadStringViewLite.cmake new file mode 100644 index 00000000..cbf2dedf --- /dev/null +++ b/cmake/modules/DownloadStringViewLite.cmake @@ -0,0 +1,29 @@ +# +# Copyright (C) 2020 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. +# + +include(ExternalProject) + +set(STRING_VIEW_LITE_PREFIX ${CMAKE_BINARY_DIR}/string-view-lite-prefix) +set(STRING_VIEW_LITE_INCLUDE ${STRING_VIEW_LITE_PREFIX}/include) +message(STATUS "Found string-view-lite: include: ${STRING_VIEW_LITE_INCLUDE}") + +ExternalProject_Add( + string-view-lite + PREFIX ${STRING_VIEW_LITE_PREFIX} + GIT_REPOSITORY "https://github.com/martinmoene/string-view-lite.git" + GIT_TAG "v1.4.0" + CONFIGURE_COMMAND "" + BUILD_COMMAND "" + INSTALL_COMMAND + ${CMAKE_COMMAND} -E copy ${STRING_VIEW_LITE_PREFIX}/src/string-view-lite/include/nonstd/string_view.hpp + ${STRING_VIEW_LITE_INCLUDE}/nonstd/string_view.hpp) diff --git a/cmake/modules/FindMakedev.cmake b/cmake/modules/FindMakedev.cmake index 6790a9d0..1a3f4859 100644 --- a/cmake/modules/FindMakedev.cmake +++ b/cmake/modules/FindMakedev.cmake @@ -1,5 +1,5 @@ # -# Copyright (C) 2019 The Falco Authors. +# Copyright (C) 2020 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/GetFalcoVersion.cmake b/cmake/modules/GetFalcoVersion.cmake index 71bb6950..3f713d1c 100644 --- a/cmake/modules/GetFalcoVersion.cmake +++ b/cmake/modules/GetFalcoVersion.cmake @@ -1,3 +1,16 @@ +# +# Copyright (C) 2020 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. +# + # Retrieve git ref and commit hash include(GetGitRevisionDescription) diff --git a/cmake/modules/OpenSSL.cmake b/cmake/modules/OpenSSL.cmake index d5881ff5..95168839 100644 --- a/cmake/modules/OpenSSL.cmake +++ b/cmake/modules/OpenSSL.cmake @@ -1,3 +1,15 @@ +# +# Copyright (C) 2020 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 USE_BUNDLED_DEPS) find_package(OpenSSL REQUIRED) message(STATUS "Found openssl: include: ${OPENSSL_INCLUDE_DIR}, lib: ${OPENSSL_LIBRARIES}") diff --git a/cmake/modules/cURL.cmake b/cmake/modules/cURL.cmake index cba2627b..034ad2f7 100644 --- a/cmake/modules/cURL.cmake +++ b/cmake/modules/cURL.cmake @@ -1,5 +1,5 @@ # -# Copyright (C) 2019 The Falco Authors. +# Copyright (C) 2020 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/gRPC.cmake b/cmake/modules/gRPC.cmake index 17175394..814de8d0 100644 --- a/cmake/modules/gRPC.cmake +++ b/cmake/modules/gRPC.cmake @@ -1,5 +1,5 @@ # -# Copyright (C) 2019 The Falco Authors. +# Copyright (C) 2020 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/jq.cmake b/cmake/modules/jq.cmake index eaa55715..3b48a0e6 100644 --- a/cmake/modules/jq.cmake +++ b/cmake/modules/jq.cmake @@ -1,5 +1,5 @@ # -# Copyright (C) 2019 The Falco Authors. +# Copyright (C) 2020 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/sysdig.cmake b/cmake/modules/sysdig.cmake index 2a1ee926..576a26d9 100644 --- a/cmake/modules/sysdig.cmake +++ b/cmake/modules/sysdig.cmake @@ -1,5 +1,5 @@ # -# Copyright (C) 2019 The Falco Authors. +# Copyright (C) 2020 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/yaml-cpp.cmake b/cmake/modules/yaml-cpp.cmake index a31a895a..d1077d8b 100644 --- a/cmake/modules/yaml-cpp.cmake +++ b/cmake/modules/yaml-cpp.cmake @@ -1,5 +1,5 @@ # -# Copyright (C) 2019 The Falco Authors. +# Copyright (C) 2020 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