mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 05:06:17 +00:00
build/gl: add top-level include files for sub-libraries
Makes gir happy Fixes: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/issues/809 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/784>
This commit is contained in:
parent
855315cd39
commit
42b3025bdc
4 changed files with 91 additions and 3 deletions
31
gst-libs/gst/gl/egl/egl.h
Normal file
31
gst-libs/gst/gl/egl/egl.h
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
/*
|
||||||
|
* GStreamer
|
||||||
|
* Copyright (C) 2020 Matthew Waters <matthew@centricular.com>
|
||||||
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Library General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* Library General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Library General Public
|
||||||
|
* License along with this library; if not, write to the
|
||||||
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
||||||
|
* Boston, MA 02110-1301, USA.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef __GST_GL_EGL_H__
|
||||||
|
#define __GST_GL_EGL_H__
|
||||||
|
|
||||||
|
#include <gst/gl/gl.h>
|
||||||
|
#include <gst/gl/egl/gstegl.h>
|
||||||
|
#include <gst/gl/egl/gsteglimage.h>
|
||||||
|
#include <gst/gl/egl/gstgldisplay_egl.h>
|
||||||
|
#include <gst/gl/egl/gstglmemoryegl.h>
|
||||||
|
#include <gst/gl/egl/gstgldisplay_egl_device.h>
|
||||||
|
|
||||||
|
#endif /* __GST_GL_EGL_H__ */
|
|
@ -501,6 +501,7 @@ if need_platform_egl != 'no'
|
||||||
'egl/gstgldisplay_egl_device.c',
|
'egl/gstgldisplay_egl_device.c',
|
||||||
]
|
]
|
||||||
gl_egl_headers += [
|
gl_egl_headers += [
|
||||||
|
'egl/egl.h',
|
||||||
'egl/gstegl.h',
|
'egl/gstegl.h',
|
||||||
'egl/gsteglimage.h',
|
'egl/gsteglimage.h',
|
||||||
'egl/gstgldisplay_egl.h',
|
'egl/gstgldisplay_egl.h',
|
||||||
|
@ -584,6 +585,7 @@ if need_win_wayland != 'no'
|
||||||
xdg_shell_code,
|
xdg_shell_code,
|
||||||
]
|
]
|
||||||
gl_wayland_headers += [
|
gl_wayland_headers += [
|
||||||
|
'wayland/wayland.h',
|
||||||
'wayland/gstgldisplay_wayland.h'
|
'wayland/gstgldisplay_wayland.h'
|
||||||
]
|
]
|
||||||
glconf.set('GST_GL_HAVE_WINDOW_WAYLAND', 1)
|
glconf.set('GST_GL_HAVE_WINDOW_WAYLAND', 1)
|
||||||
|
@ -621,6 +623,7 @@ if need_win_x11 != 'no'
|
||||||
'x11/xcb_event_source.c',
|
'x11/xcb_event_source.c',
|
||||||
]
|
]
|
||||||
gl_x11_headers += [
|
gl_x11_headers += [
|
||||||
|
'x11/x11.h',
|
||||||
'x11/gstgldisplay_x11.h',
|
'x11/gstgldisplay_x11.h',
|
||||||
]
|
]
|
||||||
glconf.set('GST_GL_HAVE_WINDOW_X11', 1)
|
glconf.set('GST_GL_HAVE_WINDOW_X11', 1)
|
||||||
|
@ -1029,7 +1032,7 @@ if build_gstgl
|
||||||
export_packages : 'gstreamer-gl-x11-1.0',
|
export_packages : 'gstreamer-gl-x11-1.0',
|
||||||
includes : ['Gst-1.0', 'GstBase-1.0', 'GstVideo-1.0', gl_gir[0]],
|
includes : ['Gst-1.0', 'GstBase-1.0', 'GstVideo-1.0', gl_gir[0]],
|
||||||
install : true,
|
install : true,
|
||||||
extra_args : gir_init_section + ['--c-include=gst/gl/gl.h'],
|
extra_args : gir_init_section + ['--c-include=gst/gl/x11/x11.h'],
|
||||||
dependencies : [video_dep, gst_dep, gst_base_dep]
|
dependencies : [video_dep, gst_dep, gst_base_dep]
|
||||||
)
|
)
|
||||||
endif
|
endif
|
||||||
|
@ -1050,7 +1053,7 @@ if build_gstgl
|
||||||
export_packages : 'gstreamer-gl-wayland-1.0',
|
export_packages : 'gstreamer-gl-wayland-1.0',
|
||||||
includes : ['Gst-1.0', 'GstBase-1.0', 'GstVideo-1.0', gl_gir[0]],
|
includes : ['Gst-1.0', 'GstBase-1.0', 'GstVideo-1.0', gl_gir[0]],
|
||||||
install : true,
|
install : true,
|
||||||
extra_args : gir_init_section + ['--c-include=gst/gl/gl.h'],
|
extra_args : gir_init_section + ['--c-include=gst/gl/wayland/wayland.h'],
|
||||||
dependencies : [video_dep, gst_dep, gst_base_dep]
|
dependencies : [video_dep, gst_dep, gst_base_dep]
|
||||||
)
|
)
|
||||||
endif
|
endif
|
||||||
|
@ -1071,7 +1074,7 @@ if build_gstgl
|
||||||
export_packages : 'gstreamer-gl-egl-1.0',
|
export_packages : 'gstreamer-gl-egl-1.0',
|
||||||
includes : ['Gst-1.0', 'GstBase-1.0', 'GstVideo-1.0', gl_gir[0]],
|
includes : ['Gst-1.0', 'GstBase-1.0', 'GstVideo-1.0', gl_gir[0]],
|
||||||
install : true,
|
install : true,
|
||||||
extra_args : gir_init_section + ['--c-include=gst/gl/gl.h'],
|
extra_args : gir_init_section + ['--c-include=gst/gl/egl/egl.h'],
|
||||||
dependencies : [video_dep, gst_dep, gst_base_dep]
|
dependencies : [video_dep, gst_dep, gst_base_dep]
|
||||||
)
|
)
|
||||||
endif
|
endif
|
||||||
|
|
27
gst-libs/gst/gl/wayland/wayland.h
Normal file
27
gst-libs/gst/gl/wayland/wayland.h
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
/*
|
||||||
|
* GStreamer
|
||||||
|
* Copyright (C) 2020 Matthew Waters <matthew@centricular.com>
|
||||||
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Library General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* Library General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Library General Public
|
||||||
|
* License along with this library; if not, write to the
|
||||||
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
||||||
|
* Boston, MA 02110-1301, USA.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef __GST_GL_WAYLAND_H__
|
||||||
|
#define __GST_GL_WAYLAND_H__
|
||||||
|
|
||||||
|
#include <gst/gl/gl.h>
|
||||||
|
#include <gst/gl/wayland/gstgldisplay_wayland.h>
|
||||||
|
|
||||||
|
#endif /* __GST_GL_WAYLAND_H__ */
|
27
gst-libs/gst/gl/x11/x11.h
Normal file
27
gst-libs/gst/gl/x11/x11.h
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
/*
|
||||||
|
* GStreamer
|
||||||
|
* Copyright (C) 2020 Matthew Waters <matthew@centricular.com>
|
||||||
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Library General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* Library General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Library General Public
|
||||||
|
* License along with this library; if not, write to the
|
||||||
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
||||||
|
* Boston, MA 02110-1301, USA.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef __GST_GL_X11_H__
|
||||||
|
#define __GST_GL_X11_H__
|
||||||
|
|
||||||
|
#include <gst/gl/gl.h>
|
||||||
|
#include <gst/gl/x11/gstgldisplay_x11.h>
|
||||||
|
|
||||||
|
#endif /* __GST_GL_X11_H__ */
|
Loading…
Reference in a new issue