mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
gtk: hook up to meson build
This commit is contained in:
parent
9c21a17a9a
commit
eb29ffa36d
4 changed files with 38 additions and 1 deletions
|
@ -43,7 +43,7 @@ if gtk_dep.found()
|
||||||
|
|
||||||
gstgtk = library('gstgtk',
|
gstgtk = library('gstgtk',
|
||||||
gtk_sources,
|
gtk_sources,
|
||||||
c_args : gst_plugins_bad_args + gtk_defines,
|
c_args : gst_plugins_good_args + gtk_defines,
|
||||||
link_args : noseh_link_args,
|
link_args : noseh_link_args,
|
||||||
include_directories : [configinc],
|
include_directories : [configinc],
|
||||||
dependencies : [gtk_dep, gstvideo_dep, gstbase_dep, libm] + optional_deps,
|
dependencies : [gtk_dep, gstvideo_dep, gstbase_dep, libm] + optional_deps,
|
||||||
|
|
|
@ -2,6 +2,7 @@ subdir('aalib')
|
||||||
subdir('cairo')
|
subdir('cairo')
|
||||||
subdir('flac')
|
subdir('flac')
|
||||||
subdir('gdk_pixbuf')
|
subdir('gdk_pixbuf')
|
||||||
|
subdir('gtk')
|
||||||
subdir('jack')
|
subdir('jack')
|
||||||
subdir('jpeg')
|
subdir('jpeg')
|
||||||
subdir('lame')
|
subdir('lame')
|
||||||
|
|
35
meson.build
35
meson.build
|
@ -194,6 +194,41 @@ gsttag_dep = dependency('gstreamer-tag-1.0', version : gst_req,
|
||||||
gstvideo_dep = dependency('gstreamer-video-1.0', version : gst_req,
|
gstvideo_dep = dependency('gstreamer-video-1.0', version : gst_req,
|
||||||
fallback : ['gst-plugins-base', 'video_dep'])
|
fallback : ['gst-plugins-base', 'video_dep'])
|
||||||
|
|
||||||
|
# GStreamer OpenGL
|
||||||
|
gstgl_dep = dependency('gstreamer-gl-1.0', version : gst_req,
|
||||||
|
fallback : ['gst-plugins-base', 'gstgl_dep'], required: false)
|
||||||
|
|
||||||
|
build_gstgl = gstgl_dep.found() # FIXME: add option?
|
||||||
|
|
||||||
|
if build_gstgl
|
||||||
|
if gstgl_dep.type_name() == 'pkgconfig'
|
||||||
|
gst_gl_apis = gstgl_dep.get_pkgconfig_variable('gl_apis').split()
|
||||||
|
gst_gl_winsys = gstgl_dep.get_pkgconfig_variable('gl_winsys').split()
|
||||||
|
gst_gl_platforms = gstgl_dep.get_pkgconfig_variable('gl_platforms').split()
|
||||||
|
else
|
||||||
|
gstbase = subproject('gst-plugins-base')
|
||||||
|
gst_gl_apis = gstbase.get_variable('enabled_gl_apis')
|
||||||
|
gst_gl_winsys = gstbase.get_variable('enabled_gl_winsys')
|
||||||
|
gst_gl_platforms = gstbase.get_variable('enabled_gl_platforms')
|
||||||
|
endif
|
||||||
|
|
||||||
|
message('GStreamer OpenGL window systems: @0@'.format(' '.join(gst_gl_winsys)))
|
||||||
|
message('GStreamer OpenGL platforms: @0@'.format(' '.join(gst_gl_platforms)))
|
||||||
|
message('GStreamer OpenGL apis: @0@'.format(' '.join(gst_gl_apis)))
|
||||||
|
|
||||||
|
foreach ws : ['x11', 'wayland', 'android', 'cocoa', 'eagl', 'win32', 'dispmanx', 'viv_fb']
|
||||||
|
set_variable('gst_gl_have_window_@0@'.format(ws), gst_gl_winsys.contains(ws))
|
||||||
|
endforeach
|
||||||
|
|
||||||
|
foreach p : ['glx', 'egl', 'cgl', 'eagl', 'wgl']
|
||||||
|
set_variable('gst_gl_have_platform_@0@'.format(p), gst_gl_platforms.contains(p))
|
||||||
|
endforeach
|
||||||
|
|
||||||
|
foreach api : ['opengl', 'gles2']
|
||||||
|
set_variable('gst_gl_have_api_@0@'.format(api), gst_gl_apis.contains(api))
|
||||||
|
endforeach
|
||||||
|
endif
|
||||||
|
|
||||||
zlib_dep = dependency('zlib', required : false)
|
zlib_dep = dependency('zlib', required : false)
|
||||||
bz2lib = cc.find_library('bz2', required : false)
|
bz2lib = cc.find_library('bz2', required : false)
|
||||||
glib_deps = [dependency('glib-2.0', version : glib_req, fallback: ['glib', 'libglib_dep']),
|
glib_deps = [dependency('glib-2.0', version : glib_req, fallback: ['glib', 'libglib_dep']),
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
subdir('audiofx')
|
subdir('audiofx')
|
||||||
subdir('cairo')
|
subdir('cairo')
|
||||||
|
#FIXME: subdir('gtk')
|
||||||
subdir('level')
|
subdir('level')
|
||||||
subdir('rtp')
|
subdir('rtp')
|
||||||
subdir('shapewipe')
|
subdir('shapewipe')
|
||||||
|
|
Loading…
Reference in a new issue