Commit e87bd30f authored by Seungha Yang's avatar Seungha Yang 🐑
Browse files

tests: nvenc: Fix build condition

Enable build with new dynamic library dependency.
Note that this explicit dependency listing is required for Windows.
parent ed1e0b15
Pipeline #26627 passed with stages
in 41 minutes and 55 seconds
......@@ -16,11 +16,8 @@ enable_gst_player_tests = get_option('gst_player_tests')
# Need explicit dependency listing for nvenc on Windows
nvenc_test_deps = []
if cuda_dep.found() and cudart_dep.found()
nvenc_test_deps += [cuda_dep, cudart_dep, gmodule_dep, gstgl_dep]
if use_nvenc_gl
nvenc_test_deps += gstgl_dep
endif
if cuda_header_dep.found()
nvenc_test_deps += [gmodule_dep, gstgl_dep]
endif
# name, condition when to skip the test and extra dependencies
......@@ -42,7 +39,7 @@ base_tests = [
[['elements/msdkh264enc.c'], not have_msdk, [msdk_dep]],
[['elements/mxfdemux.c']],
[['elements/mxfmux.c']],
[['elements/nvenc.c'], not cuda_dep.found() or not cudart_dep.found(), nvenc_test_deps],
[['elements/nvenc.c'], not cuda_header_dep.found(), nvenc_test_deps],
[['elements/pcapparse.c'], false, [libparser_dep]],
[['elements/pnm.c']],
[['elements/rtponvifparse.c']],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment