mirror of
https://github.com/encounter/rust-ffmpeg.git
synced 2026-07-10 21:18:39 -07:00
cargo: rename the license features
This commit is contained in:
+3
-3
@@ -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
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user