diff --git a/subprojects/gst-plugins-base/gst-libs/gst/gl/meson.build b/subprojects/gst-plugins-base/gst-libs/gst/gl/meson.build index 55e9121597..9ea0fc33df 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/gl/meson.build +++ b/subprojects/gst-plugins-base/gst-libs/gst/gl/meson.build @@ -1082,15 +1082,18 @@ if build_gstgl 'gl_winsys=' + ' '.join(enabled_gl_winsys), 'gl_apis=' + ' '.join(enabled_gl_apis), ] + pkgconfig_installed_variables = [ + 'libinc=-I${libdir}/gstreamer-1.0/include', + ] library_def = {'lib': gstgl} pkg_name = 'gstreamer-gl-1.0' pkgconfig.generate(gstgl, libraries : [gstvideo, gst_base_dep, gst_dep], - variables : pkgconfig_variables + pkgconfig_gl_variables, + variables : pkgconfig_variables + pkgconfig_gl_variables + pkgconfig_installed_variables, uninstalled_variables : pkgconfig_gl_variables, subdirs : pkgconfig_subdirs, - extra_cflags : ['-I${libdir}/gstreamer-1.0/include'], + extra_cflags : ['${libinc}'], name : pkg_name, description : 'Streaming media framework, OpenGL plugins libraries', )