summaryrefslogtreecommitdiff
path: root/va/wayland/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'va/wayland/Makefile.am')
-rw-r--r--va/wayland/Makefile.am19
1 files changed, 16 insertions, 3 deletions
diff --git a/va/wayland/Makefile.am b/va/wayland/Makefile.am
index 4ab8d07..1ac8d48 100644
--- a/va/wayland/Makefile.am
+++ b/va/wayland/Makefile.am
@@ -46,6 +46,14 @@ source_h_priv = \
va_wayland_private.h \
$(NULL)
+protocol_source_export_c = \
+ wayland-drm-client-protocol-export.c \
+ $(NULL)
+
+protocol_source_c = \
+ wayland-drm-client-protocol.c \
+ $(NULL)
+
protocol_source_h = \
wayland-drm-client-protocol.h \
$(NULL)
@@ -53,19 +61,24 @@ protocol_source_h = \
noinst_LTLIBRARIES = libva_wayland.la
libva_waylandincludedir = ${includedir}/va
libva_waylandinclude_HEADERS = $(source_h)
-libva_wayland_la_SOURCES = $(source_c)
+libva_wayland_la_SOURCES = $(source_c) $(protocol_source_c)
noinst_HEADERS = $(source_h_priv)
# Wayland protocol
va_wayland_drm.c: $(protocol_source_h)
%-client-protocol.h : %.xml
$(AM_V_GEN)$(WAYLAND_SCANNER) client-header < $< > $@
-
+%-client-protocol-export.c : %.xml
+ $(AM_V_GEN)$(WAYLAND_SCANNER) code < $< > $@
+%-client-protocol.c: %-client-protocol-export.c
+ $(AM_V_GEN)$(SED) -e '1i#include "sysdeps.h"' \
+ -e 's@WL_EXPORT@DLL_HIDDEN@g' < $< > $@
+
EXTRA_DIST = \
wayland-drm.xml \
$(NULL)
-BUILT_SOURCES = $(protocol_source_h)
+BUILT_SOURCES = $(protocol_source_h) $(protocol_source_c) $(protocol_source_export_c)
CLEANFILES = $(BUILT_SOURCES)
# Extra clean files so that maintainer-clean removes *everything*