From 50653a9cfe3b26125cf07eae968b81e377a5de66 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Sat, 1 Mar 2025 00:53:32 +0100 Subject: Add license --- BUILD.bazel | 4 ++++ LICENSE.txt | 34 ++++++++++++++++++++++++++++++++++ MODULE.bazel | 4 ++++ hk21/game/BUILD.bazel | 4 ++++ hk21/game/gpu.cpp | 4 ++++ hk21/game/gpu.hpp | 4 ++++ hk21/game/main.cpp | 4 ++++ hk21/vulkan_loader/BUILD.bazel | 4 ++++ hk21/vulkan_loader/api.hpp | 4 ++++ hk21/vulkan_loader/fns.hpp | 4 ++++ hk21/vulkan_loader/loader.cpp | 4 ++++ vendor/vulkan/BUILD.bazel | 4 ++++ 12 files changed, 78 insertions(+) create mode 100644 LICENSE.txt diff --git a/BUILD.bazel b/BUILD.bazel index d861b66..6106368 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -1,3 +1,7 @@ +# Copyright 2025 Steven Le Rouzic +# +# SPDX-License-Identifier: BSD-3-Clause + load("@hedron_compile_commands//:refresh_compile_commands.bzl", "refresh_compile_commands") refresh_compile_commands( diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..c041ad4 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,34 @@ +Copyright (c) 2025 Steven Le Rouzic + +Redistribution and use in source and binary forms, +with or without modification, are permitted provided +that the following conditions are met: + +1. Redistributions of source code must retain the above + copyright notice, this list of conditions and the + following disclaimer. + +2. Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the + following disclaimer in the documentation and/or other + materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names + of its contributors may be used to endorse or promote + products derived from this software without specific + prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND +CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, +INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR +CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE +OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + diff --git a/MODULE.bazel b/MODULE.bazel index d66d815..825d5f9 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -1,3 +1,7 @@ +# Copyright 2025 Steven Le Rouzic +# +# SPDX-License-Identifier: BSD-3-Clause + module(name = "hk21") bazel_dep(name = "platforms", version = "0.0.10") diff --git a/hk21/game/BUILD.bazel b/hk21/game/BUILD.bazel index 786ed6a..9689d67 100644 --- a/hk21/game/BUILD.bazel +++ b/hk21/game/BUILD.bazel @@ -1,3 +1,7 @@ +# Copyright 2025 Steven Le Rouzic +# +# SPDX-License-Identifier: BSD-3-Clause + cc_binary( name = "game", srcs = [ diff --git a/hk21/game/gpu.cpp b/hk21/game/gpu.cpp index b481ee7..4aa1f95 100644 --- a/hk21/game/gpu.cpp +++ b/hk21/game/gpu.cpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #include "hk21/game/gpu.hpp" #include diff --git a/hk21/game/gpu.hpp b/hk21/game/gpu.hpp index d8d9d18..316cdb2 100644 --- a/hk21/game/gpu.hpp +++ b/hk21/game/gpu.hpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include diff --git a/hk21/game/main.cpp b/hk21/game/main.cpp index 21b17f3..527235d 100644 --- a/hk21/game/main.cpp +++ b/hk21/game/main.cpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #include #include diff --git a/hk21/vulkan_loader/BUILD.bazel b/hk21/vulkan_loader/BUILD.bazel index 9cd37f4..8532db3 100644 --- a/hk21/vulkan_loader/BUILD.bazel +++ b/hk21/vulkan_loader/BUILD.bazel @@ -1,3 +1,7 @@ +# Copyright 2025 Steven Le Rouzic +# +# SPDX-License-Identifier: BSD-3-Clause + cc_library( name = "vulkan_loader", hdrs = [ diff --git a/hk21/vulkan_loader/api.hpp b/hk21/vulkan_loader/api.hpp index c858a6c..00382e4 100644 --- a/hk21/vulkan_loader/api.hpp +++ b/hk21/vulkan_loader/api.hpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include diff --git a/hk21/vulkan_loader/fns.hpp b/hk21/vulkan_loader/fns.hpp index 8c45815..0e03349 100644 --- a/hk21/vulkan_loader/fns.hpp +++ b/hk21/vulkan_loader/fns.hpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #define VULKAN_GLOBAL_FNS \ FN(vkEnumerateInstanceVersion) \ FN(vkCreateInstance) diff --git a/hk21/vulkan_loader/loader.cpp b/hk21/vulkan_loader/loader.cpp index 4b2b6d6..7b24979 100644 --- a/hk21/vulkan_loader/loader.cpp +++ b/hk21/vulkan_loader/loader.cpp @@ -1,3 +1,7 @@ +// Copyright 2025 Steven Le Rouzic +// +// SPDX-License-Identifier: BSD-3-Clause + #include "hk21/vulkan_loader/api.hpp" #define FN(NAME) PFN_##NAME NAME; diff --git a/vendor/vulkan/BUILD.bazel b/vendor/vulkan/BUILD.bazel index 71ef954..791ed15 100644 --- a/vendor/vulkan/BUILD.bazel +++ b/vendor/vulkan/BUILD.bazel @@ -1,3 +1,7 @@ +# Copyright 2025 Steven Le Rouzic +# +# SPDX-License-Identifier: BSD-3-Clause + cc_library( name = "vulkan", hdrs = [ -- cgit