Makefile.am 3.11 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-v6-client-protocol.h			\
	xdg-shell-unstable-v6-protocol.c			\
28 29
	xdg-foreign-unstable-v1-client-protocol.h		\
	xdg-foreign-unstable-v1-protocol.c			\
30 31
	gtk-primary-selection-client-protocol.h			\
	gtk-primary-selection-protocol.c			\
32 33
	tablet-unstable-v2-client-protocol.h	\
	tablet-unstable-v2-protocol.c		\
34 35
	keyboard-shortcuts-inhibit-unstable-v1-client-protocol.h \
	keyboard-shortcuts-inhibit-unstable-v1-protocol.c	\
36 37
	server-decoration-client-protocol.h		\
	server-decoration-protocol.c			\
38 39 40
	gtk-shell-client-protocol.h		\
	gtk-shell-protocol.c

41 42 43
nodist_libgdk_wayland_la_SOURCES =		\
	$(BUILT_SOURCES)

Matthias Clasen's avatar
Matthias Clasen committed
44 45 46
DISTCLEANFILES =				\
	$(BUILT_SOURCES)

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

libgdkinclude_HEADERS =				\
	gdkwayland.h

72
libgdkwaylandinclude_HEADERS = 			\
73
	gdkwaylanddevice.h			\
74
	gdkwaylanddisplay.h			\
75
	gdkwaylandglcontext.h			\
76
	gdkwaylandmonitor.h			\
77
	gdkwaylandselection.h			\
78
	gdkwaylandwindow.h
79

80 81 82
.SECONDEXPANSION:

define protostability
83
$(shell echo $1 | sed 's/.*-\(\(un\)\{0,1\}stable\)-.*/\1/')
84 85 86
endef

define protoname
87
$(shell echo $1 | sed 's/\([a-z\-]\{1,\}\)-[a-z]\{1,\}-v[0-9]\{1,\}/\1/')
88 89 90 91 92 93 94 95
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
96
%-protocol.c : $(srcdir)/protocol/%.xml
97
	$(AM_V_GEN)$(WAYLAND_SCANNER) code < $< > $@
98 99
	$(AM_V_GEN)$(SED) -i -e 's/WL_EXPORT //' $@

Rico Tzschichholz's avatar
Rico Tzschichholz committed
100
%-server-protocol.h : $(srcdir)/protocol/%.xml
101
	$(AM_V_GEN)$(WAYLAND_SCANNER) server-header < $< > $@
Rico Tzschichholz's avatar
Rico Tzschichholz committed
102
%-client-protocol.h : $(srcdir)/protocol/%.xml
103 104
	$(AM_V_GEN)$(WAYLAND_SCANNER) client-header < $< > $@

105
EXTRA_DIST += 					\
106
	protocol/gtk-primary-selection.xml	\
107 108
	protocol/gtk-shell.xml			\
	protocol/server-decoration.xml
109

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