Makefile.am 2.8 KB
Newer Older
Kristian Høgsberg's avatar
Kristian Høgsberg committed
1 2 3 4
## Process this file with automake to produce Makefile.in
include $(top_srcdir)/Makefile.decl

libgdkincludedir = $(includedir)/gtk-3.0/gdk
5
libgdkwaylandincludedir = $(includedir)/gtk-3.0/gdk/wayland
Kristian Høgsberg's avatar
Kristian Høgsberg committed
6

7
AM_CPPFLAGS =					\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
8
	-DG_LOG_DOMAIN=\"Gdk\"			\
9
	-DG_LOG_USE_STRUCTURED=1		\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
10 11 12 13
	-DGDK_COMPILATION			\
	-I$(top_srcdir)				\
	-I$(top_srcdir)/gdk			\
	-I$(top_builddir)/gdk			\
14
	$(GDK_HIDDEN_VISIBILITY_CFLAGS)		\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
15 16 17
	$(GTK_DEBUG_FLAGS)			\
	$(GDK_DEP_CFLAGS)

18
LDADDS = $(GDK_DEP_LIBS) $(SHM_LIBS)
Kristian Høgsberg's avatar
Kristian Høgsberg committed
19 20 21 22

noinst_LTLIBRARIES =				\
	libgdk-wayland.la

23
BUILT_SOURCES = 				\
24 25
	pointer-gestures-unstable-v1-client-protocol.h		\
	pointer-gestures-unstable-v1-protocol.c			\
26 27
	xdg-shell-unstable-v5-client-protocol.h			\
	xdg-shell-unstable-v5-protocol.c			\
28 29
	gtk-primary-selection-client-protocol.h			\
	gtk-primary-selection-protocol.c			\
30 31
	tablet-unstable-v2-client-protocol.h	\
	tablet-unstable-v2-protocol.c		\
32 33 34
	gtk-shell-client-protocol.h		\
	gtk-shell-protocol.c

35 36 37
nodist_libgdk_wayland_la_SOURCES =		\
	$(BUILT_SOURCES)

Matthias Clasen's avatar
Matthias Clasen committed
38 39 40
DISTCLEANFILES =				\
	$(BUILT_SOURCES)

Kristian Høgsberg's avatar
Kristian Høgsberg committed
41 42 43 44 45 46 47 48
libgdk_wayland_la_SOURCES =			\
	gdkapplaunchcontext-wayland.c		\
	gdkcursor-wayland.c			\
	gdkdevice-wayland.c			\
	gdkdisplay-wayland.c			\
	gdkdisplay-wayland.h			\
	gdkdnd-wayland.c			\
	gdkeventsource.c			\
49 50 51
	gdkkeys-wayland.c                       \
	gdkglcontext-wayland.c			\
	gdkglcontext-wayland.h			\
52 53
	gdkmonitor-wayland.c			\
	gdkmonitor-wayland.h			\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
54
	gdkscreen-wayland.c			\
55
	gdkseat-wayland.h			\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
56 57 58
	gdkselection-wayland.c			\
	gdkwindow-wayland.c			\
	gdkwayland.h				\
59 60 61
	gdkprivate-wayland.h			\
	wm-button-layout-translation.c		\
	wm-button-layout-translation.h
Kristian Høgsberg's avatar
Kristian Høgsberg committed
62 63 64 65

libgdkinclude_HEADERS =				\
	gdkwayland.h

66
libgdkwaylandinclude_HEADERS = 			\
67
	gdkwaylanddevice.h			\
68
	gdkwaylanddisplay.h			\
69
	gdkwaylandglcontext.h			\
70
	gdkwaylandmonitor.h			\
71
	gdkwaylandselection.h			\
72
	gdkwaylandwindow.h
73

74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
.SECONDEXPANSION:

define protostability
$(shell echo $1 | sed 's/.*\(\<unstable\>\|\<stable\>\).*/\1/')
endef

define protoname
$(shell echo $1 | sed 's/\([a-z\-]\+\)-[a-z]\+-v[0-9]\+/\1/')
endef

%-protocol.c : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
	$(AM_V_GEN)$(WAYLAND_SCANNER) code < $< > $@
	$(AM_V_GEN)$(SED) -i -e 's/WL_EXPORT //' $@
%-client-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
	$(AM_V_GEN)$(WAYLAND_SCANNER) client-header < $< > $@

Rico Tzschichholz's avatar
Rico Tzschichholz committed
90
%-protocol.c : $(srcdir)/protocol/%.xml
91
	$(AM_V_GEN)$(WAYLAND_SCANNER) code < $< > $@
92 93
	$(AM_V_GEN)$(SED) -i -e 's/WL_EXPORT //' $@

Rico Tzschichholz's avatar
Rico Tzschichholz committed
94
%-server-protocol.h : $(srcdir)/protocol/%.xml
95
	$(AM_V_GEN)$(WAYLAND_SCANNER) server-header < $< > $@
Rico Tzschichholz's avatar
Rico Tzschichholz committed
96
%-client-protocol.h : $(srcdir)/protocol/%.xml
97 98
	$(AM_V_GEN)$(WAYLAND_SCANNER) client-header < $< > $@

99
EXTRA_DIST += 					\
100
	protocol/gtk-primary-selection.xml	\
101
	protocol/gtk-shell.xml
102

Kristian Høgsberg's avatar
Kristian Høgsberg committed
103
-include $(top_srcdir)/git.mk