endif
endif
+prog_pkgconfig = find_program('pkg-config')
+
dep_vdpau = []
_vdpau = get_option('gallium-vdpau')
if _vdpau == 'auto'
endif
if with_gallium_vdpau
dep_vdpau = declare_dependency(
- compile_args : dep_vdpau.get_pkgconfig_variable('cflags').split()
+ compile_args : run_command(prog_pkgconfig, ['vdpau', '--cflags']).stdout().split()
)
endif
endif
if with_gallium_xvmc
dep_xvmc = declare_dependency(
- compile_args : dep_xvmc.get_pkgconfig_variable('cflags').split()
+ compile_args : run_command(prog_pkgconfig, ['xvmc', '--cflags']).stdout().split()
)
endif
endif
if with_gallium_omx
dep_omx = declare_dependency(
- compile_args : dep_omx.get_pkgconfig_variable('cflags').split()
+ compile_args : run_command(prog_pkgconfig, ['libomxil-bellagio', '--cflags']).stdout().split()
)
endif
endif
if with_gallium_va
dep_va = declare_dependency(
- compile_args : dep_va.get_pkgconfig_variable('cflags').split()
+ compile_args : run_command(prog_pkgconfig, ['libva', '--cflags']).stdout().split()
)
endif