Switch FFMpeg plugin to LGPL and distribute it

This is possible now that ffmpeg package (from xmake-repo, see https://github.com/xmake-io/xmake-repo/pull/3315) allows building on Windows without GPL code
This commit is contained in:
SirLynix
2024-02-25 14:33:08 +01:00
parent 9f26fb00ad
commit f572ae06a1
9 changed files with 172 additions and 698 deletions

View File

@@ -1,13 +1,13 @@
/*
Nazara Engine - FFmpeg Plugin
Copyright (C) 2022 Jérôme "SirLynix" Leclercq (lynix680@gmail.com)
Copyright (C) 2024 Jérôme "SirLynix" Leclercq (lynix680@gmail.com)
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>
You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include <NazaraUtils/Algorithm.hpp>

View File

@@ -1,11 +1,12 @@
option("ffmpeg", { description = "Build FFmpeg plugin", default = false, category = "Plugins" })
if has_config("ffmpeg") then
add_requires("ffmpeg", { configs = { asan = false, shared = true } })
add_requires("ffmpeg", { configs = { asan = false, gpl = false, vs_runtime = "MD" } }) -- runtime is not used since FFmpeg is a C library
target("PluginFFmpeg")
set_group("Plugins")
add_rpathdirs("$ORIGIN")
set_license("LGPL-3.0")
add_deps("NazaraCore")
add_packages("ffmpeg")