build/gl: add top-level include files for sub-libraries
authorMatthew Waters <matthew@centricular.com>
Tue, 11 Aug 2020 06:53:51 +0000 (16:53 +1000)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 11 Aug 2020 07:11:30 +0000 (07:11 +0000)
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>

gst-libs/gst/gl/egl/egl.h [new file with mode: 0644]
gst-libs/gst/gl/meson.build
gst-libs/gst/gl/wayland/wayland.h [new file with mode: 0644]
gst-libs/gst/gl/x11/x11.h [new file with mode: 0644]

diff --git a/gst-libs/gst/gl/egl/egl.h b/gst-libs/gst/gl/egl/egl.h
new file mode 100644 (file)
index 0000000..d165150
--- /dev/null
@@ -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__ */
index 31010da..c051e38 100644 (file)
@@ -501,6 +501,7 @@ if need_platform_egl != 'no'
       'egl/gstgldisplay_egl_device.c',
     ]
     gl_egl_headers += [
+      'egl/egl.h',
       'egl/gstegl.h',
       'egl/gsteglimage.h',
       'egl/gstgldisplay_egl.h',
@@ -584,6 +585,7 @@ if need_win_wayland != 'no'
         xdg_shell_code,
       ]
       gl_wayland_headers += [
+        'wayland/wayland.h',
         'wayland/gstgldisplay_wayland.h'
       ]
       glconf.set('GST_GL_HAVE_WINDOW_WAYLAND', 1)
@@ -621,6 +623,7 @@ if need_win_x11 != 'no'
       'x11/xcb_event_source.c',
     ]
     gl_x11_headers += [
+      'x11/x11.h',
       'x11/gstgldisplay_x11.h',
     ]
     glconf.set('GST_GL_HAVE_WINDOW_X11', 1)
@@ -1029,7 +1032,7 @@ if build_gstgl
         export_packages : 'gstreamer-gl-x11-1.0',
         includes : ['Gst-1.0', 'GstBase-1.0', 'GstVideo-1.0', gl_gir[0]],
         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]
       )
     endif
@@ -1050,7 +1053,7 @@ if build_gstgl
         export_packages : 'gstreamer-gl-wayland-1.0',
         includes : ['Gst-1.0', 'GstBase-1.0', 'GstVideo-1.0', gl_gir[0]],
         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]
       )
     endif
@@ -1071,7 +1074,7 @@ if build_gstgl
         export_packages : 'gstreamer-gl-egl-1.0',
         includes : ['Gst-1.0', 'GstBase-1.0', 'GstVideo-1.0', gl_gir[0]],
         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]
       )
     endif
diff --git a/gst-libs/gst/gl/wayland/wayland.h b/gst-libs/gst/gl/wayland/wayland.h
new file mode 100644 (file)
index 0000000..ec990e1
--- /dev/null
@@ -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__ */
diff --git a/gst-libs/gst/gl/x11/x11.h b/gst-libs/gst/gl/x11/x11.h
new file mode 100644 (file)
index 0000000..dfc1eaa
--- /dev/null
@@ -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__ */