summaryrefslogtreecommitdiff
path: root/gst-libs/gst/wayland
diff options
context:
space:
mode:
Diffstat (limited to 'gst-libs/gst/wayland')
-rw-r--r--gst-libs/gst/wayland/Makefile.am1
-rw-r--r--gst-libs/gst/wayland/meson.build2
-rw-r--r--gst-libs/gst/wayland/wayland.h6
3 files changed, 7 insertions, 2 deletions
diff --git a/gst-libs/gst/wayland/Makefile.am b/gst-libs/gst/wayland/Makefile.am
index 743a48960..a9f3f7b57 100644
--- a/gst-libs/gst/wayland/Makefile.am
+++ b/gst-libs/gst/wayland/Makefile.am
@@ -9,6 +9,7 @@ libgstwayland_@GST_API_VERSION@_la_CFLAGS = \
$(GST_PLUGINS_BAD_CFLAGS) \
$(GST_PLUGINS_BASE_CFLAGS) \
$(GST_CFLAGS) \
+ -DBUILDING_GST_WAYLAND \
$(WAYLAND_CFLAGS)
libgstwayland_@GST_API_VERSION@_la_LIBADD = \
diff --git a/gst-libs/gst/wayland/meson.build b/gst-libs/gst/wayland/meson.build
index ddade69cd..8bfefcb3b 100644
--- a/gst-libs/gst/wayland/meson.build
+++ b/gst-libs/gst/wayland/meson.build
@@ -9,7 +9,7 @@ use_wayland = wl_protocol_dep.found() and wl_client_dep.found() and wl_scanner.f
if use_wayland
gstwayland = library('gstwayland-' + api_version,
'wayland.c',
- c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API'],
+ c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API', '-DBUILDING_GST_WAYLAND'],
include_directories : [configinc, libsinc],
version : libversion,
soversion : soversion,
diff --git a/gst-libs/gst/wayland/wayland.h b/gst-libs/gst/wayland/wayland.h
index 5cc0e5f74..c60c57ccd 100644
--- a/gst-libs/gst/wayland/wayland.h
+++ b/gst-libs/gst/wayland/wayland.h
@@ -30,7 +30,11 @@
#include <wayland-client.h>
#ifndef GST_WAYLAND_API
-#define GST_WAYLAND_API GST_EXPORT
+# ifdef BUILDING_GST_WAYLAND
+# define GST_WAYLAND_API GST_API_EXPORT /* from config.h */
+# else
+# define GST_WAYLAND_API GST_API_IMPORT
+# endif
#endif
G_BEGIN_DECLS