From 7c6437e3a5aeb31eb1462db635be704ad9c8db16 Mon Sep 17 00:00:00 2001 From: Mathias Kraus Date: Sun, 2 Jun 2024 20:57:08 +0200 Subject: [PATCH] [#210] Add missing license headers --- CMakeLists.txt | 12 ++++++++++++ examples/c/CMakeLists.txt | 12 ++++++++++++ examples/c/discovery/CMakeLists.txt | 12 ++++++++++++ examples/c/discovery/src/main.c | 11 +++++++++++ examples/c/publish_subscribe/CMakeLists.txt | 12 ++++++++++++ examples/c/publish_subscribe/src/publisher.c | 12 ++++++++++++ examples/c/publish_subscribe/src/subscriber.c | 12 ++++++++++++ iceoryx2-lang/CMakeLists.txt | 12 ++++++++++++ iceoryx2-lang/c/CMakeLists.txt | 12 ++++++++++++ iceoryx2-lang/c/build.rs | 12 ++++++++++++ iceoryx2-lang/c/cmake/Config.cmake.in | 12 ++++++++++++ iceoryx2-lang/c/cmake/iceoryx2_lang_cConfig.cmake | 12 ++++++++++++ iceoryx2-lang/c/src/lib.rs | 12 ++++++++++++ iceoryx2-lang/c/src/publisher.rs | 12 ++++++++++++ iceoryx2-lang/c/src/subscriber.rs | 12 ++++++++++++ 15 files changed, 179 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 34c3c20b..ea53ce8d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,15 @@ +# Copyright (c) 2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made available under the +# terms of the Apache Software License 2.0 which is available at +# https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +# which is available at https://opensource.org/licenses/MIT. +# +# SPDX-License-Identifier: Apache-2.0 OR MIT + cmake_minimum_required(VERSION 3.28) project(iceoryx2) diff --git a/examples/c/CMakeLists.txt b/examples/c/CMakeLists.txt index 600856b7..4755a8a5 100644 --- a/examples/c/CMakeLists.txt +++ b/examples/c/CMakeLists.txt @@ -1,3 +1,15 @@ +# Copyright (c) 2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made available under the +# terms of the Apache Software License 2.0 which is available at +# https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +# which is available at https://opensource.org/licenses/MIT. +# +# SPDX-License-Identifier: Apache-2.0 OR MIT + cmake_minimum_required(VERSION 3.28) project(examples_c) diff --git a/examples/c/discovery/CMakeLists.txt b/examples/c/discovery/CMakeLists.txt index 96631525..6498e0f4 100644 --- a/examples/c/discovery/CMakeLists.txt +++ b/examples/c/discovery/CMakeLists.txt @@ -1,3 +1,15 @@ +# Copyright (c) 2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made available under the +# terms of the Apache Software License 2.0 which is available at +# https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +# which is available at https://opensource.org/licenses/MIT. +# +# SPDX-License-Identifier: Apache-2.0 OR MIT + cmake_minimum_required(VERSION 3.28) project(example_c_discovery) diff --git a/examples/c/discovery/src/main.c b/examples/c/discovery/src/main.c index 89a286ec..f15b9108 100644 --- a/examples/c/discovery/src/main.c +++ b/examples/c/discovery/src/main.c @@ -1,3 +1,14 @@ +// Copyright (c) 2024 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT #include "iox2/iceoryx2.h" diff --git a/examples/c/publish_subscribe/CMakeLists.txt b/examples/c/publish_subscribe/CMakeLists.txt index 720ef338..0dbac38b 100644 --- a/examples/c/publish_subscribe/CMakeLists.txt +++ b/examples/c/publish_subscribe/CMakeLists.txt @@ -1,3 +1,15 @@ +# Copyright (c) 2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made available under the +# terms of the Apache Software License 2.0 which is available at +# https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +# which is available at https://opensource.org/licenses/MIT. +# +# SPDX-License-Identifier: Apache-2.0 OR MIT + cmake_minimum_required(VERSION 3.28) project(example_c_publish_subscribe) diff --git a/examples/c/publish_subscribe/src/publisher.c b/examples/c/publish_subscribe/src/publisher.c index 62dab8d5..ec9e8805 100644 --- a/examples/c/publish_subscribe/src/publisher.c +++ b/examples/c/publish_subscribe/src/publisher.c @@ -1,3 +1,15 @@ +// Copyright (c) 2024 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #include "iox2/iceoryx2.h" #include diff --git a/examples/c/publish_subscribe/src/subscriber.c b/examples/c/publish_subscribe/src/subscriber.c index 870919e5..63cedf89 100644 --- a/examples/c/publish_subscribe/src/subscriber.c +++ b/examples/c/publish_subscribe/src/subscriber.c @@ -1,3 +1,15 @@ +// Copyright (c) 2024 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + #include "iox2/iceoryx2.h" #include diff --git a/iceoryx2-lang/CMakeLists.txt b/iceoryx2-lang/CMakeLists.txt index 2f134204..6e725904 100644 --- a/iceoryx2-lang/CMakeLists.txt +++ b/iceoryx2-lang/CMakeLists.txt @@ -1,3 +1,15 @@ +# Copyright (c) 2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made available under the +# terms of the Apache Software License 2.0 which is available at +# https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +# which is available at https://opensource.org/licenses/MIT. +# +# SPDX-License-Identifier: Apache-2.0 OR MIT + cmake_minimum_required(VERSION 3.28) project(iceoryx2-lang) diff --git a/iceoryx2-lang/c/CMakeLists.txt b/iceoryx2-lang/c/CMakeLists.txt index cfb59c66..c85609f7 100644 --- a/iceoryx2-lang/c/CMakeLists.txt +++ b/iceoryx2-lang/c/CMakeLists.txt @@ -1,3 +1,15 @@ +# Copyright (c) 2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made available under the +# terms of the Apache Software License 2.0 which is available at +# https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +# which is available at https://opensource.org/licenses/MIT. +# +# SPDX-License-Identifier: Apache-2.0 OR MIT + cmake_minimum_required(VERSION 3.28) project(iceoryx2_lang_c) diff --git a/iceoryx2-lang/c/build.rs b/iceoryx2-lang/c/build.rs index d5c20d7d..bbd65d38 100644 --- a/iceoryx2-lang/c/build.rs +++ b/iceoryx2-lang/c/build.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2024 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + extern crate cbindgen; use std::env; diff --git a/iceoryx2-lang/c/cmake/Config.cmake.in b/iceoryx2-lang/c/cmake/Config.cmake.in index 5bcba53b..8acc77f5 100644 --- a/iceoryx2-lang/c/cmake/Config.cmake.in +++ b/iceoryx2-lang/c/cmake/Config.cmake.in @@ -1,3 +1,15 @@ +# Copyright (c) 2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made available under the +# terms of the Apache Software License 2.0 which is available at +# https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +# which is available at https://opensource.org/licenses/MIT. +# +# SPDX-License-Identifier: Apache-2.0 OR MIT + @PACKAGE_INIT@ # TODO check if this is correct diff --git a/iceoryx2-lang/c/cmake/iceoryx2_lang_cConfig.cmake b/iceoryx2-lang/c/cmake/iceoryx2_lang_cConfig.cmake index aa9b384e..f3d12d70 100644 --- a/iceoryx2-lang/c/cmake/iceoryx2_lang_cConfig.cmake +++ b/iceoryx2-lang/c/cmake/iceoryx2_lang_cConfig.cmake @@ -1,3 +1,15 @@ +# Copyright (c) 2024 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made available under the +# terms of the Apache Software License 2.0 which is available at +# https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +# which is available at https://opensource.org/licenses/MIT. +# +# SPDX-License-Identifier: Apache-2.0 OR MIT + if(NOT ${CMAKE_FIND_PACKAGE_NAME}_FOUND_PRINTED) message(STATUS "The package '${CMAKE_FIND_PACKAGE_NAME}' is used in source code version.") set(${CMAKE_FIND_PACKAGE_NAME}_FOUND_PRINTED true CACHE INTERNAL "") diff --git a/iceoryx2-lang/c/src/lib.rs b/iceoryx2-lang/c/src/lib.rs index 1181f050..d283036b 100644 --- a/iceoryx2-lang/c/src/lib.rs +++ b/iceoryx2-lang/c/src/lib.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2024 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use iceoryx2::prelude::*; use iceoryx2_bb_log::set_log_level; diff --git a/iceoryx2-lang/c/src/publisher.rs b/iceoryx2-lang/c/src/publisher.rs index da3c5ec8..c589c335 100644 --- a/iceoryx2-lang/c/src/publisher.rs +++ b/iceoryx2-lang/c/src/publisher.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2024 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use core::time::Duration; use iceoryx2::prelude::*; use iceoryx2_bb_log::set_log_level; diff --git a/iceoryx2-lang/c/src/subscriber.rs b/iceoryx2-lang/c/src/subscriber.rs index e712c114..21b7b597 100644 --- a/iceoryx2-lang/c/src/subscriber.rs +++ b/iceoryx2-lang/c/src/subscriber.rs @@ -1,3 +1,15 @@ +// Copyright (c) 2024 Contributors to the Eclipse Foundation +// +// See the NOTICE file(s) distributed with this work for additional +// information regarding copyright ownership. +// +// This program and the accompanying materials are made available under the +// terms of the Apache Software License 2.0 which is available at +// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license +// which is available at https://opensource.org/licenses/MIT. +// +// SPDX-License-Identifier: Apache-2.0 OR MIT + use core::time::Duration; use iceoryx2::prelude::*; use iceoryx2_bb_log::set_log_level;