From 471ecbfd371a310da69f8bbb7aa9d0663fe8eca8 Mon Sep 17 00:00:00 2001 From: john wells Date: Sat, 17 Sep 2016 09:29:06 -0600 Subject: [PATCH] build: add NVENC support --- sys/Cargo.toml | 5 +++-- sys/build.rs | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/Cargo.toml b/sys/Cargo.toml index 8c82c41..f155f51 100644 --- a/sys/Cargo.toml +++ b/sys/Cargo.toml @@ -29,8 +29,9 @@ build-license-nonfree = ["build"] build-license-version3 = ["build"] # misc -build-pic = ["build"] -build-zlib = ["build"] +build-nvenc = ["build"] +build-pic = ["build"] +build-zlib = ["build"] # ssl build-lib-gnutls = ["build"] diff --git a/sys/build.rs b/sys/build.rs index d245b20..341cb2d 100644 --- a/sys/build.rs +++ b/sys/build.rs @@ -168,6 +168,9 @@ fn build() -> io::Result<()> { enable!(configure, "BUILD_LIB_AVS", "libavs"); enable!(configure, "BUILD_LIB_XVID", "libxvid"); + // other external libraries + enable!(configure, "BUILD_NVENC", "nvenc"); + // configure external protocols enable!(configure, "BUILD_LIB_SMBCLIENT", "libsmbclient"); enable!(configure, "BUILD_LIB_SSH", "libssh");