arm linux remove cuda-llvm option (#8735)
Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
parent
e283d33f28
commit
bc672b3367
@ -188,7 +188,7 @@ fn gen_vcpkg_package(package: &str, ffi_header: &str, generated: &str, regex: &s
|
|||||||
generate_bindings(&ffi_header, &includes, &ffi_rs, &exact_file, regex);
|
generate_bindings(&ffi_header, &includes, &ffi_rs, &exact_file, regex);
|
||||||
}
|
}
|
||||||
|
|
||||||
// If you have problems installing ffmpeg, you can disable hwcodec feature and disable this function.
|
// If you have problems installing ffmpeg, you can download $VCPKG_ROOT/installed from ci
|
||||||
fn ffmpeg() {
|
fn ffmpeg() {
|
||||||
// ffmpeg
|
// ffmpeg
|
||||||
let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap();
|
let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap();
|
||||||
|
@ -103,7 +103,6 @@ if(VCPKG_TARGET_IS_LINUX)
|
|||||||
--target-os=linux \
|
--target-os=linux \
|
||||||
--enable-pthreads \
|
--enable-pthreads \
|
||||||
--enable-cuda \
|
--enable-cuda \
|
||||||
--enable-cuda_llvm \
|
|
||||||
--enable-ffnvcodec \
|
--enable-ffnvcodec \
|
||||||
--enable-encoder=h264_nvenc \
|
--enable-encoder=h264_nvenc \
|
||||||
--enable-encoder=hevc_nvenc \
|
--enable-encoder=hevc_nvenc \
|
||||||
@ -117,6 +116,11 @@ if(VCPKG_TARGET_IS_LINUX)
|
|||||||
--enable-encoder=h264_vaapi \
|
--enable-encoder=h264_vaapi \
|
||||||
--enable-encoder=hevc_vaapi \
|
--enable-encoder=hevc_vaapi \
|
||||||
")
|
")
|
||||||
|
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
||||||
|
string(APPEND OPTIONS "\
|
||||||
|
--enable-cuda_llvm \
|
||||||
|
")
|
||||||
|
endif()
|
||||||
elseif(VCPKG_TARGET_IS_WINDOWS)
|
elseif(VCPKG_TARGET_IS_WINDOWS)
|
||||||
string(APPEND OPTIONS "\
|
string(APPEND OPTIONS "\
|
||||||
--target-os=win32 \
|
--target-os=win32 \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user