gallium_nine_c_args = []
gallium_nine_ld_args = []
gallium_nine_link_depends = []
+gallium_nine_link_with = [
+ libgallium, libnine_st,
+ libpipe_loader_static, libws_null, libwsw, libswdri,
+ libswkmsdri,
+]
if with_ld_version_script
gallium_nine_ld_args += ['-Wl,--version-script', join_paths(meson.current_source_dir(), 'd3dadapter9.sym')]
gallium_nine_link_depends += files('d3dadapter9.sym')
endif
+if (with_gallium_va or with_gallium_vdpau or with_gallium_omx != 'disabled' or
+ with_gallium_xvmc or with_dri)
+ gallium_nine_link_with += libgalliumvl
+else
+ gallium_nine_link_with += libgalliumvl_stub
+endif
+
libgallium_nine = shared_library(
'd3dadapter9',
files('description.c', 'getproc.c', 'drm.c'),
cpp_args : [cpp_vis_args],
link_args : [ld_args_gc_sections, gallium_nine_ld_args],
link_depends : gallium_nine_link_depends,
- link_with : [
- libgalliumvl_stub, libgallium, libnine_st,
- libpipe_loader_static, libws_null, libwsw, libswdri,
- libswkmsdri,
- ],
+ link_with : gallium_nine_link_with,
dependencies : [
dep_selinux, dep_libdrm, dep_llvm, dep_thread,
idep_xmlconfig, idep_mesautil, idep_nir,