diff --git a/internal/cglfw/LICENSE_glfw3 b/internal/cglfw/LICENSE_glfw3 deleted file mode 100644 index 7494a3f68..000000000 --- a/internal/cglfw/LICENSE_glfw3 +++ /dev/null @@ -1,23 +0,0 @@ -Copyright (c) 2002-2006 Marcus Geelnard - -Copyright (c) 2006-2019 Camilla Löwy - -This software is provided 'as-is', without any express or implied -warranty. In no event will the authors be held liable for any damages -arising from the use of this software. - -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it -freely, subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not - claim that you wrote the original software. If you use this software - in a product, an acknowledgment in the product documentation would - be appreciated but is not required. - -2. Altered source versions must be plainly marked as such, and must not - be misrepresented as being the original software. - -3. This notice may not be removed or altered from any source - distribution. - diff --git a/internal/cglfw/cocoa_init_darwin.m b/internal/cglfw/cocoa_init_darwin.m index 431d859f2..1a0afb965 100644 --- a/internal/cglfw/cocoa_init_darwin.m +++ b/internal/cglfw/cocoa_init_darwin.m @@ -1,30 +1,6 @@ -//======================================================================== -// GLFW 3.3 macOS - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2009-2019 Camilla Löwy -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== -// It is fine to use C99 in this file because it will not be built with VS -//======================================================================== +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2009-2019 Camilla Löwy +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors #include "internal.h" #include // For MAXPATHLEN diff --git a/internal/cglfw/cocoa_monitor_darwin.m b/internal/cglfw/cocoa_monitor_darwin.m index 7769bb7e9..7477597f8 100644 --- a/internal/cglfw/cocoa_monitor_darwin.m +++ b/internal/cglfw/cocoa_monitor_darwin.m @@ -1,31 +1,7 @@ -//======================================================================== -// GLFW 3.3 macOS - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2019 Camilla Löwy -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== -// It is fine to use C99 in this file because it will not be built with VS -//======================================================================== +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2002-2006 Marcus Geelnard +// SPDX-FileCopyrightText: 2006-2019 Camilla Löwy +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors #include "internal.h" diff --git a/internal/cglfw/cocoa_platform_darwin.h b/internal/cglfw/cocoa_platform_darwin.h index 65df4a835..fe4cf4726 100644 --- a/internal/cglfw/cocoa_platform_darwin.h +++ b/internal/cglfw/cocoa_platform_darwin.h @@ -1,28 +1,6 @@ -//======================================================================== -// GLFW 3.3 macOS - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2009-2019 Camilla Löwy -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2009-2019 Camilla Löwy +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors #include #include diff --git a/internal/cglfw/cocoa_time_darwin.c b/internal/cglfw/cocoa_time_darwin.c index d390cdc16..84aaddcdd 100644 --- a/internal/cglfw/cocoa_time_darwin.c +++ b/internal/cglfw/cocoa_time_darwin.c @@ -1,30 +1,6 @@ -//======================================================================== -// GLFW 3.3 macOS - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2009-2016 Camilla Löwy -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== -// It is fine to use C99 in this file because it will not be built with VS -//======================================================================== +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2009-2016 Camilla Löwy +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors #include "internal.h" diff --git a/internal/cglfw/cocoa_window_darwin.m b/internal/cglfw/cocoa_window_darwin.m index 4a72f9f68..4c866ad51 100644 --- a/internal/cglfw/cocoa_window_darwin.m +++ b/internal/cglfw/cocoa_window_darwin.m @@ -1,30 +1,6 @@ -//======================================================================== -// GLFW 3.3 macOS - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2009-2019 Camilla Löwy -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== -// It is fine to use C99 in this file because it will not be built with VS -//======================================================================== +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2009-2019 Camilla Löwy +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors #include "internal.h" diff --git a/internal/cglfw/context.c b/internal/cglfw/context.c index 9f3bd5cf3..5a97471b1 100644 --- a/internal/cglfw/context.c +++ b/internal/cglfw/context.c @@ -1,31 +1,7 @@ -//======================================================================== -// GLFW 3.3 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2016 Camilla Löwy -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== -// Please use C89 style variable declarations in this file because VS 2010 -//======================================================================== +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2002-2006 Marcus Geelnard +// SPDX-FileCopyrightText: 2006-2016 Camilla Löwy +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors //go:build darwin || freebsd || linux || netbsd || openbsd diff --git a/internal/cglfw/egl_context.c b/internal/cglfw/egl_context.c index 81edf4f09..f3e237f15 100644 --- a/internal/cglfw/egl_context.c +++ b/internal/cglfw/egl_context.c @@ -1,31 +1,7 @@ -//======================================================================== -// GLFW 3.3 EGL - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2019 Camilla Löwy -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== -// Please use C89 style variable declarations in this file because VS 2010 -//======================================================================== +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2002-2006 Marcus Geelnard +// SPDX-FileCopyrightText: 2006-2019 Camilla Löwy +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors //go:build darwin || freebsd || linux || netbsd || openbsd diff --git a/internal/cglfw/egl_context.h b/internal/cglfw/egl_context.h index 94772dc69..17c802695 100644 --- a/internal/cglfw/egl_context.h +++ b/internal/cglfw/egl_context.h @@ -1,29 +1,7 @@ -//======================================================================== -// GLFW 3.3 EGL - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2017 Camilla Löwy -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2002-2006 Marcus Geelnard +// SPDX-FileCopyrightText: 2006-2017 Camilla Löwy +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors //go:build darwin || freebsd || linux || netbsd || openbsd diff --git a/internal/cglfw/glx_context_linbsd.c b/internal/cglfw/glx_context_linbsd.c index e935fce9c..cfc63266a 100644 --- a/internal/cglfw/glx_context_linbsd.c +++ b/internal/cglfw/glx_context_linbsd.c @@ -1,31 +1,7 @@ -//======================================================================== -// GLFW 3.3 GLX - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2019 Camilla Löwy -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== -// It is fine to use C99 in this file because it will not be built with VS -//======================================================================== +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2002-2006 Marcus Geelnard +// SPDX-FileCopyrightText: 2006-2019 Camilla Löwy +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors //go:build (freebsd || linux || netbsd || openbsd) && !wayland diff --git a/internal/cglfw/glx_context_linbsd.h b/internal/cglfw/glx_context_linbsd.h index e93c78593..4a0eb083e 100644 --- a/internal/cglfw/glx_context_linbsd.h +++ b/internal/cglfw/glx_context_linbsd.h @@ -1,29 +1,7 @@ -//======================================================================== -// GLFW 3.3 GLX - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2017 Camilla Löwy -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2002-2006 Marcus Geelnard +// SPDX-FileCopyrightText: 2006-2017 Camilla Löwy +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors //go:build (freebsd || linux || netbsd || openbsd) && !wayland diff --git a/internal/cglfw/init.c b/internal/cglfw/init.c index 58ae483cb..f06c6a180 100644 --- a/internal/cglfw/init.c +++ b/internal/cglfw/init.c @@ -1,31 +1,7 @@ -//======================================================================== -// GLFW 3.3 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2018 Camilla Löwy -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== -// Please use C89 style variable declarations in this file because VS 2010 -//======================================================================== +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2002-2006 Marcus Geelnard +// SPDX-FileCopyrightText: 2006-2018 Camilla Löwy +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors //go:build darwin || freebsd || linux || netbsd || openbsd diff --git a/internal/cglfw/input.c b/internal/cglfw/input.c index ef3199b64..d4dcd57c4 100644 --- a/internal/cglfw/input.c +++ b/internal/cglfw/input.c @@ -1,31 +1,7 @@ -//======================================================================== -// GLFW 3.3 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2019 Camilla Löwy -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== -// Please use C89 style variable declarations in this file because VS 2010 -//======================================================================== +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2002-2006 Marcus Geelnard +// SPDX-FileCopyrightText: 2006-2019 Camilla Löwy +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors //go:build darwin || freebsd || linux || netbsd || openbsd diff --git a/internal/cglfw/internal.h b/internal/cglfw/internal.h index 27c984a80..a89dfc606 100644 --- a/internal/cglfw/internal.h +++ b/internal/cglfw/internal.h @@ -1,29 +1,7 @@ -//======================================================================== -// GLFW 3.3 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2019 Camilla Löwy -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2002-2006 Marcus Geelnard +// SPDX-FileCopyrightText: 2006-2019 Camilla Löwy +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors //go:build darwin || freebsd || linux || netbsd || openbsd diff --git a/internal/cglfw/monitor.c b/internal/cglfw/monitor.c index bd1d2c83b..942c867e6 100644 --- a/internal/cglfw/monitor.c +++ b/internal/cglfw/monitor.c @@ -1,31 +1,7 @@ -//======================================================================== -// GLFW 3.3 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2019 Camilla Löwy -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== -// Please use C89 style variable declarations in this file because VS 2010 -//======================================================================== +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2002-2006 Marcus Geelnard +// SPDX-FileCopyrightText: 2006-2019 Camilla Löwy +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors //go:build darwin || freebsd || linux || netbsd || openbsd diff --git a/internal/cglfw/nsgl_context_darwin.h b/internal/cglfw/nsgl_context_darwin.h index 010ce4dc8..98ffb6cc4 100644 --- a/internal/cglfw/nsgl_context_darwin.h +++ b/internal/cglfw/nsgl_context_darwin.h @@ -1,28 +1,6 @@ -//======================================================================== -// GLFW 3.3 macOS - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2009-2019 Camilla Löwy -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2009-2019 Camilla Löwy +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors // NOTE: Many Cocoa enum values have been renamed and we need to build across // SDK versions where one is unavailable or deprecated. diff --git a/internal/cglfw/nsgl_context_darwin.m b/internal/cglfw/nsgl_context_darwin.m index 78d688c49..42b19ae94 100644 --- a/internal/cglfw/nsgl_context_darwin.m +++ b/internal/cglfw/nsgl_context_darwin.m @@ -1,30 +1,6 @@ -//======================================================================== -// GLFW 3.3 macOS - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2009-2019 Camilla Löwy -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== -// It is fine to use C99 in this file because it will not be built with VS -//======================================================================== +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2009-2019 Camilla Löwy +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors #include "internal.h" diff --git a/internal/cglfw/osmesa_context.c b/internal/cglfw/osmesa_context.c index 37640f47b..d40057363 100644 --- a/internal/cglfw/osmesa_context.c +++ b/internal/cglfw/osmesa_context.c @@ -1,31 +1,7 @@ -//======================================================================== -// GLFW 3.3 OSMesa - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2016 Google Inc. -// Copyright (c) 2016-2017 Camilla Löwy -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== -// Please use C89 style variable declarations in this file because VS 2010 -//======================================================================== +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2016 Google Inc. +// SPDX-FileCopyrightText: 2016-2017 Camilla Löwy +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors //go:build darwin || freebsd || linux || netbsd || openbsd diff --git a/internal/cglfw/osmesa_context.h b/internal/cglfw/osmesa_context.h index 78f6f5752..026f98eba 100644 --- a/internal/cglfw/osmesa_context.h +++ b/internal/cglfw/osmesa_context.h @@ -1,29 +1,7 @@ -//======================================================================== -// GLFW 3.3 OSMesa - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2016 Google Inc. -// Copyright (c) 2016-2017 Camilla Löwy -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2016 Google Inc. +// SPDX-FileCopyrightText: 2016-2017 Camilla Löwy +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors //go:build darwin || freebsd || linux || netbsd || openbsd diff --git a/internal/cglfw/posix_thread.c b/internal/cglfw/posix_thread.c index ce4e57139..0d54863d8 100644 --- a/internal/cglfw/posix_thread.c +++ b/internal/cglfw/posix_thread.c @@ -1,31 +1,7 @@ -//======================================================================== -// GLFW 3.3 POSIX - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2017 Camilla Löwy -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== -// It is fine to use C99 in this file because it will not be built with VS -//======================================================================== +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2002-2006 Marcus Geelnard +// SPDX-FileCopyrightText: 2006-2017 Camilla Löwy +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors //go:build darwin || freebsd || linux || netbsd || openbsd diff --git a/internal/cglfw/posix_thread.h b/internal/cglfw/posix_thread.h index 567ac7652..bad505c0d 100644 --- a/internal/cglfw/posix_thread.h +++ b/internal/cglfw/posix_thread.h @@ -1,29 +1,7 @@ -//======================================================================== -// GLFW 3.3 POSIX - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2017 Camilla Löwy -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2002-2006 Marcus Geelnard +// SPDX-FileCopyrightText: 2006-2017 Camilla Löwy +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors //go:build darwin || freebsd || linux || netbsd || openbsd diff --git a/internal/cglfw/posix_time_linbsd.c b/internal/cglfw/posix_time_linbsd.c index 8077bd2e4..1370ac201 100644 --- a/internal/cglfw/posix_time_linbsd.c +++ b/internal/cglfw/posix_time_linbsd.c @@ -1,31 +1,7 @@ -//======================================================================== -// GLFW 3.3 POSIX - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2017 Camilla Löwy -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== -// It is fine to use C99 in this file because it will not be built with VS -//======================================================================== +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2002-2006 Marcus Geelnard +// SPDX-FileCopyrightText: 2006-2017 Camilla Löwy +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors //go:build freebsd || linux || netbsd || openbsd diff --git a/internal/cglfw/posix_time_linbsd.h b/internal/cglfw/posix_time_linbsd.h index 7efb61119..e413af087 100644 --- a/internal/cglfw/posix_time_linbsd.h +++ b/internal/cglfw/posix_time_linbsd.h @@ -1,29 +1,7 @@ -//======================================================================== -// GLFW 3.3 POSIX - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2017 Camilla Löwy -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2002-2006 Marcus Geelnard +// SPDX-FileCopyrightText: 2006-2017 Camilla Löwy +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors //go:build freebsd || linux || netbsd || openbsd diff --git a/internal/cglfw/wayland-idle-inhibit-unstable-v1-client-protocol_linbsd.c b/internal/cglfw/wayland-idle-inhibit-unstable-v1-client-protocol_linbsd.c index 09bfb2899..cdee20930 100644 --- a/internal/cglfw/wayland-idle-inhibit-unstable-v1-client-protocol_linbsd.c +++ b/internal/cglfw/wayland-idle-inhibit-unstable-v1-client-protocol_linbsd.c @@ -1,29 +1,10 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2015 Samsung Electronics Co., Ltd +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors + //go:build (freebsd || linux || netbsd || openbsd) && wayland -/* Generated by wayland-scanner 1.18.0 */ - -/* - * Copyright © 2015 Samsung Electronics Co., Ltd - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - * DEALINGS IN THE SOFTWARE. - */ +// Generated by wayland-scanner 1.18.0 #include #include diff --git a/internal/cglfw/wayland-idle-inhibit-unstable-v1-client-protocol_linbsd.h b/internal/cglfw/wayland-idle-inhibit-unstable-v1-client-protocol_linbsd.h index f019d4423..a412e300c 100644 --- a/internal/cglfw/wayland-idle-inhibit-unstable-v1-client-protocol_linbsd.h +++ b/internal/cglfw/wayland-idle-inhibit-unstable-v1-client-protocol_linbsd.h @@ -1,6 +1,9 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors + //go:build (freebsd || linux || netbsd || openbsd) && wayland -/* Generated by wayland-scanner 1.18.0 */ +// Generated by wayland-scanner 1.18.0 #ifndef IDLE_INHIBIT_UNSTABLE_V1_CLIENT_PROTOCOL_H #define IDLE_INHIBIT_UNSTABLE_V1_CLIENT_PROTOCOL_H diff --git a/internal/cglfw/wayland-pointer-constraints-unstable-v1-client-protocol_linbsd.c b/internal/cglfw/wayland-pointer-constraints-unstable-v1-client-protocol_linbsd.c index 470a6d64b..0743be34d 100644 --- a/internal/cglfw/wayland-pointer-constraints-unstable-v1-client-protocol_linbsd.c +++ b/internal/cglfw/wayland-pointer-constraints-unstable-v1-client-protocol_linbsd.c @@ -1,30 +1,11 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2014 Jonas Ådahl +// SPDX-FileCopyrightText: 2015 Red Hat Inc. +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors + //go:build (freebsd || linux || netbsd || openbsd) && wayland -/* Generated by wayland-scanner 1.18.0 */ - -/* - * Copyright © 2014 Jonas Ådahl - * Copyright © 2015 Red Hat Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - * DEALINGS IN THE SOFTWARE. - */ +// Generated by wayland-scanner 1.18.0 #include #include diff --git a/internal/cglfw/wayland-pointer-constraints-unstable-v1-client-protocol_linbsd.h b/internal/cglfw/wayland-pointer-constraints-unstable-v1-client-protocol_linbsd.h index b38523b6d..b039b9c22 100644 --- a/internal/cglfw/wayland-pointer-constraints-unstable-v1-client-protocol_linbsd.h +++ b/internal/cglfw/wayland-pointer-constraints-unstable-v1-client-protocol_linbsd.h @@ -1,6 +1,9 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors + //go:build (freebsd || linux || netbsd || openbsd) && wayland -/* Generated by wayland-scanner 1.18.0 */ +// Generated by wayland-scanner 1.18.0 #ifndef POINTER_CONSTRAINTS_UNSTABLE_V1_CLIENT_PROTOCOL_H #define POINTER_CONSTRAINTS_UNSTABLE_V1_CLIENT_PROTOCOL_H diff --git a/internal/cglfw/wayland-relative-pointer-unstable-v1-client-protocol_linbsd.c b/internal/cglfw/wayland-relative-pointer-unstable-v1-client-protocol_linbsd.c index 6b3b311a2..64953058a 100644 --- a/internal/cglfw/wayland-relative-pointer-unstable-v1-client-protocol_linbsd.c +++ b/internal/cglfw/wayland-relative-pointer-unstable-v1-client-protocol_linbsd.c @@ -1,30 +1,11 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2014 Jonas Ådahl +// SPDX-FileCopyrightText: 2015 Red Hat Inc. +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors + //go:build (freebsd || linux || netbsd || openbsd) && wayland -/* Generated by wayland-scanner 1.18.0 */ - -/* - * Copyright © 2014 Jonas Ådahl - * Copyright © 2015 Red Hat Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - * DEALINGS IN THE SOFTWARE. - */ +// Generated by wayland-scanner 1.18.0 #include #include diff --git a/internal/cglfw/wayland-relative-pointer-unstable-v1-client-protocol_linbsd.h b/internal/cglfw/wayland-relative-pointer-unstable-v1-client-protocol_linbsd.h index 7fa9c9623..cc42abc06 100644 --- a/internal/cglfw/wayland-relative-pointer-unstable-v1-client-protocol_linbsd.h +++ b/internal/cglfw/wayland-relative-pointer-unstable-v1-client-protocol_linbsd.h @@ -1,6 +1,9 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors + //go:build (freebsd || linux || netbsd || openbsd) && wayland -/* Generated by wayland-scanner 1.18.0 */ +// Generated by wayland-scanner 1.18.0 #ifndef RELATIVE_POINTER_UNSTABLE_V1_CLIENT_PROTOCOL_H #define RELATIVE_POINTER_UNSTABLE_V1_CLIENT_PROTOCOL_H diff --git a/internal/cglfw/wayland-viewporter-client-protocol_linbsd.c b/internal/cglfw/wayland-viewporter-client-protocol_linbsd.c index 870a82d4c..6ae199e1d 100644 --- a/internal/cglfw/wayland-viewporter-client-protocol_linbsd.c +++ b/internal/cglfw/wayland-viewporter-client-protocol_linbsd.c @@ -1,29 +1,10 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2013-2016 Collabora, Ltd. +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors + //go:build (freebsd || linux || netbsd || openbsd) && wayland -/* Generated by wayland-scanner 1.18.0 */ - -/* - * Copyright © 2013-2016 Collabora, Ltd. - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - * DEALINGS IN THE SOFTWARE. - */ +// Generated by wayland-scanner 1.18.0 #include #include diff --git a/internal/cglfw/wayland-viewporter-client-protocol_linbsd.h b/internal/cglfw/wayland-viewporter-client-protocol_linbsd.h index 9a1c55a97..38810b656 100644 --- a/internal/cglfw/wayland-viewporter-client-protocol_linbsd.h +++ b/internal/cglfw/wayland-viewporter-client-protocol_linbsd.h @@ -1,6 +1,9 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors + //go:build (freebsd || linux || netbsd || openbsd) && wayland -/* Generated by wayland-scanner 1.18.0 */ +// Generated by wayland-scanner 1.18.0 #ifndef VIEWPORTER_CLIENT_PROTOCOL_H #define VIEWPORTER_CLIENT_PROTOCOL_H diff --git a/internal/cglfw/wayland-xdg-decoration-client-protocol_linbsd.h b/internal/cglfw/wayland-xdg-decoration-client-protocol_linbsd.h index bd5bc4f2a..d71af4b37 100644 --- a/internal/cglfw/wayland-xdg-decoration-client-protocol_linbsd.h +++ b/internal/cglfw/wayland-xdg-decoration-client-protocol_linbsd.h @@ -1,6 +1,9 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors + //go:build (freebsd || linux || netbsd || openbsd) && wayland -/* Generated by wayland-scanner 1.18.0 */ +// Generated by wayland-scanner 1.18.0 #ifndef XDG_DECORATION_UNSTABLE_V1_CLIENT_PROTOCOL_H #define XDG_DECORATION_UNSTABLE_V1_CLIENT_PROTOCOL_H diff --git a/internal/cglfw/wayland-xdg-decoration-unstable-v1-client-protocol_linbsd.c b/internal/cglfw/wayland-xdg-decoration-unstable-v1-client-protocol_linbsd.c index 367470c46..8bc1bc884 100644 --- a/internal/cglfw/wayland-xdg-decoration-unstable-v1-client-protocol_linbsd.c +++ b/internal/cglfw/wayland-xdg-decoration-unstable-v1-client-protocol_linbsd.c @@ -1,29 +1,10 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2018 Simon Ser +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors + //go:build (freebsd || linux || netbsd || openbsd) && wayland -/* Generated by wayland-scanner 1.18.0 */ - -/* - * Copyright © 2018 Simon Ser - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - * DEALINGS IN THE SOFTWARE. - */ +// Generated by wayland-scanner 1.18.0 #include #include diff --git a/internal/cglfw/wayland-xdg-shell-client-protocol_linbsd.c b/internal/cglfw/wayland-xdg-shell-client-protocol_linbsd.c index 1a444f055..7206cadc0 100644 --- a/internal/cglfw/wayland-xdg-shell-client-protocol_linbsd.c +++ b/internal/cglfw/wayland-xdg-shell-client-protocol_linbsd.c @@ -1,34 +1,15 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2008-2013 Kristian Høgsberg +// SPDX-FileCopyrightText: 2013 Rafael Antognolli +// SPDX-FileCopyrightText: 2013 Jasper St. Pierre +// SPDX-FileCopyrightText: 2010-2013 Intel Corporation +// SPDX-FileCopyrightText: 2015-2017 Samsung Electronics Co., Ltd +// SPDX-FileCopyrightText: 2015-2017 Red Hat Inc. +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors + //go:build (freebsd || linux || netbsd || openbsd) && wayland -/* Generated by wayland-scanner 1.18.0 */ - -/* - * Copyright © 2008-2013 Kristian Høgsberg - * Copyright © 2013 Rafael Antognolli - * Copyright © 2013 Jasper St. Pierre - * Copyright © 2010-2013 Intel Corporation - * Copyright © 2015-2017 Samsung Electronics Co., Ltd - * Copyright © 2015-2017 Red Hat Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - * DEALINGS IN THE SOFTWARE. - */ +// Generated by wayland-scanner 1.18.0 #include #include diff --git a/internal/cglfw/wayland-xdg-shell-client-protocol_linbsd.h b/internal/cglfw/wayland-xdg-shell-client-protocol_linbsd.h index 2ee189c97..6d5fcf120 100644 --- a/internal/cglfw/wayland-xdg-shell-client-protocol_linbsd.h +++ b/internal/cglfw/wayland-xdg-shell-client-protocol_linbsd.h @@ -1,6 +1,9 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors + //go:build (freebsd || linux || netbsd || openbsd) && wayland -/* Generated by wayland-scanner 1.18.0 */ +// Generated by wayland-scanner 1.18.0 #ifndef XDG_SHELL_CLIENT_PROTOCOL_H #define XDG_SHELL_CLIENT_PROTOCOL_H diff --git a/internal/cglfw/window.c b/internal/cglfw/window.c index 4eb78fcf8..c6a36e65c 100644 --- a/internal/cglfw/window.c +++ b/internal/cglfw/window.c @@ -1,32 +1,8 @@ -//======================================================================== -// GLFW 3.3 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2019 Camilla Löwy -// Copyright (c) 2012 Torsten Walluhn -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== -// Please use C89 style variable declarations in this file because VS 2010 -//======================================================================== +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2002-2006 Marcus Geelnard +// SPDX-FileCopyrightText: 2006-2019 Camilla Löwy +// SPDX-FileCopyrightText: 2012 Torsten Walluhn +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors //go:build darwin || freebsd || linux || netbsd || openbsd diff --git a/internal/cglfw/wl_init_linbsd.c b/internal/cglfw/wl_init_linbsd.c index deec70daa..9af088199 100644 --- a/internal/cglfw/wl_init_linbsd.c +++ b/internal/cglfw/wl_init_linbsd.c @@ -1,30 +1,6 @@ -//======================================================================== -// GLFW 3.3 Wayland - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2014 Jonas Ådahl -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== -// It is fine to use C99 in this file because it will not be built with VS -//======================================================================== +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2014 Jonas Ådahl +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors //go:build (freebsd || linux || netbsd || openbsd) && wayland diff --git a/internal/cglfw/wl_monitor_linbsd.c b/internal/cglfw/wl_monitor_linbsd.c index 6e7f41297..3b4b59d01 100644 --- a/internal/cglfw/wl_monitor_linbsd.c +++ b/internal/cglfw/wl_monitor_linbsd.c @@ -1,30 +1,6 @@ -//======================================================================== -// GLFW 3.3 Wayland - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2014 Jonas Ådahl -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== -// It is fine to use C99 in this file because it will not be built with VS -//======================================================================== +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2014 Jonas Ådahl +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors //go:build (freebsd || linux || netbsd || openbsd) && wayland diff --git a/internal/cglfw/wl_platform_linbsd.h b/internal/cglfw/wl_platform_linbsd.h index 17efdafaf..b595c8609 100644 --- a/internal/cglfw/wl_platform_linbsd.h +++ b/internal/cglfw/wl_platform_linbsd.h @@ -1,28 +1,6 @@ -//======================================================================== -// GLFW 3.3 Wayland - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2014 Jonas Ådahl -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2014 Jonas Ådahl +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors //go:build (freebsd || linux || netbsd || openbsd) && wayland diff --git a/internal/cglfw/wl_window_linbsd.c b/internal/cglfw/wl_window_linbsd.c index 6526146e3..eb8feea7c 100644 --- a/internal/cglfw/wl_window_linbsd.c +++ b/internal/cglfw/wl_window_linbsd.c @@ -1,30 +1,6 @@ -//======================================================================== -// GLFW 3.3 Wayland - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2014 Jonas Ådahl -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== -// It is fine to use C99 in this file because it will not be built with VS -//======================================================================== +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2014 Jonas Ådahl +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors //go:build (freebsd || linux || netbsd || openbsd) && wayland diff --git a/internal/cglfw/x11_init_linbsd.c b/internal/cglfw/x11_init_linbsd.c index b6981666e..cf54a9d39 100644 --- a/internal/cglfw/x11_init_linbsd.c +++ b/internal/cglfw/x11_init_linbsd.c @@ -1,31 +1,7 @@ -//======================================================================== -// GLFW 3.3 X11 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2019 Camilla Löwy -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== -// It is fine to use C99 in this file because it will not be built with VS -//======================================================================== +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2002-2006 Marcus Geelnard +// SPDX-FileCopyrightText: 2006-2019 Camilla Löwy +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors //go:build (freebsd || linux || netbsd || openbsd) && !wayland diff --git a/internal/cglfw/x11_monitor_linbsd.c b/internal/cglfw/x11_monitor_linbsd.c index fdba94589..a0e78f5d7 100644 --- a/internal/cglfw/x11_monitor_linbsd.c +++ b/internal/cglfw/x11_monitor_linbsd.c @@ -1,31 +1,7 @@ -//======================================================================== -// GLFW 3.3 X11 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2019 Camilla Löwy -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== -// It is fine to use C99 in this file because it will not be built with VS -//======================================================================== +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2002-2006 Marcus Geelnard +// SPDX-FileCopyrightText: 2006-2019 Camilla Löwy +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors //go:build (freebsd || linux || netbsd || openbsd) && !wayland diff --git a/internal/cglfw/x11_platform_linbsd.h b/internal/cglfw/x11_platform_linbsd.h index a799400e6..ce08f3710 100644 --- a/internal/cglfw/x11_platform_linbsd.h +++ b/internal/cglfw/x11_platform_linbsd.h @@ -1,29 +1,7 @@ -//======================================================================== -// GLFW 3.3 X11 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2019 Camilla Löwy -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2002-2006 Marcus Geelnard +// SPDX-FileCopyrightText: 2006-2019 Camilla Löwy +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors //go:build (freebsd || linux || netbsd || openbsd) && !wayland diff --git a/internal/cglfw/x11_window_linbsd.c b/internal/cglfw/x11_window_linbsd.c index e9863518f..0104ea2e5 100644 --- a/internal/cglfw/x11_window_linbsd.c +++ b/internal/cglfw/x11_window_linbsd.c @@ -1,31 +1,7 @@ -//======================================================================== -// GLFW 3.3 X11 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2019 Camilla Löwy -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== -// It is fine to use C99 in this file because it will not be built with VS -//======================================================================== +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2002-2006 Marcus Geelnard +// SPDX-FileCopyrightText: 2006-2019 Camilla Löwy +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors //go:build (freebsd || linux || netbsd || openbsd) && !wayland diff --git a/internal/cglfw/xkb_unicode_linbsd.c b/internal/cglfw/xkb_unicode_linbsd.c index 38718366a..6daaf59d9 100644 --- a/internal/cglfw/xkb_unicode_linbsd.c +++ b/internal/cglfw/xkb_unicode_linbsd.c @@ -1,31 +1,7 @@ -//======================================================================== -// GLFW 3.3 X11 - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2002-2006 Marcus Geelnard -// Copyright (c) 2006-2017 Camilla Löwy -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== -// It is fine to use C99 in this file because it will not be built with VS -//======================================================================== +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2002-2006 Marcus Geelnard +// SPDX-FileCopyrightText: 2006-2017 Camilla Löwy +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors //go:build freebsd || linux || netbsd || openbsd diff --git a/internal/cglfw/xkb_unicode_linbsd.h b/internal/cglfw/xkb_unicode_linbsd.h index ee557b6ac..1a77f9c8d 100644 --- a/internal/cglfw/xkb_unicode_linbsd.h +++ b/internal/cglfw/xkb_unicode_linbsd.h @@ -1,28 +1,6 @@ -//======================================================================== -// GLFW 3.3 Linux - www.glfw.org -//------------------------------------------------------------------------ -// Copyright (c) 2014 Jonas Ådahl -// -// This software is provided 'as-is', without any express or implied -// warranty. In no event will the authors be held liable for any damages -// arising from the use of this software. -// -// Permission is granted to anyone to use this software for any purpose, -// including commercial applications, and to alter it and redistribute it -// freely, subject to the following restrictions: -// -// 1. The origin of this software must not be misrepresented; you must not -// claim that you wrote the original software. If you use this software -// in a product, an acknowledgment in the product documentation would -// be appreciated but is not required. -// -// 2. Altered source versions must be plainly marked as such, and must not -// be misrepresented as being the original software. -// -// 3. This notice may not be removed or altered from any source -// distribution. -// -//======================================================================== +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: 2014 Jonas Ådahl +// SPDX-FileCopyrightText: 2023 The Ebitengine Authors //go:build freebsd || linux || netbsd || openbsd