cargo: rename the license features

This commit is contained in:
meh
2023-05-24 21:49:22 +02:00
committed by Till Höppner
parent 0738a1b691
commit 9793097e91
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -20,9 +20,9 @@ static = []
build = ["static"]
# licensing
build-gpl = ["build"]
build-nonfree = ["build"]
build-version3 = ["build"]
build-license-gpl = ["build"]
build-license-nonfree = ["build"]
build-license-version3 = ["build"]
# ssl
build-lib-gnutls = ["build"]
+3 -3
View File
@@ -130,13 +130,13 @@ fn build() -> io::Result<()> {
}
// the binary using ffmpeg-sys must comply with GPL
switch!(configure, "BUILD_GPL", "gpl");
switch!(configure, "BUILD_LICENSE_GPL", "gpl");
// the binary using ffmpeg-sys must comply with (L)GPLv3
switch!(configure, "BUILD_VERSION3", "version3");
switch!(configure, "BUILD_LICENSE_VERSION3", "version3");
// the binary using ffmpeg-sys cannot be redistributed
switch!(configure, "BUILD_NONFREE", "nonfree");
switch!(configure, "BUILD_LICENSE_NONFREE", "nonfree");
// configure building libraries based on features
switch!(configure, "AVCODEC", "avcodec");