Makefile.am 1.94 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 9 10 11 12
	-DG_LOG_DOMAIN=\"Gdk\"			\
	-DGDK_COMPILATION			\
	-I$(top_srcdir)				\
	-I$(top_srcdir)/gdk			\
	-I$(top_builddir)/gdk			\
13
	$(GDK_HIDDEN_VISIBILITY_CFLAGS)		\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
14 15 16 17 18 19 20 21
	$(GTK_DEBUG_FLAGS)			\
	$(GDK_DEP_CFLAGS)

LDADDS = $(GDK_DEP_LIBS)

noinst_LTLIBRARIES =				\
	libgdk-wayland.la

22
BUILT_SOURCES = 				\
23 24
	pointer-gestures-client-protocol.h	\
	pointer-gestures-protocol.c		\
25 26
	xdg-shell-client-protocol.h		\
	xdg-shell-protocol.c			\
27 28 29
	gtk-shell-client-protocol.h		\
	gtk-shell-protocol.c

30 31 32
nodist_libgdk_wayland_la_SOURCES =		\
	$(BUILT_SOURCES)

Matthias Clasen's avatar
Matthias Clasen committed
33 34 35
DISTCLEANFILES =				\
	$(BUILT_SOURCES)

Kristian Høgsberg's avatar
Kristian Høgsberg committed
36 37 38 39 40 41 42 43
libgdk_wayland_la_SOURCES =			\
	gdkapplaunchcontext-wayland.c		\
	gdkcursor-wayland.c			\
	gdkdevice-wayland.c			\
	gdkdisplay-wayland.c			\
	gdkdisplay-wayland.h			\
	gdkdnd-wayland.c			\
	gdkeventsource.c			\
44 45 46
	gdkkeys-wayland.c                       \
	gdkglcontext-wayland.c			\
	gdkglcontext-wayland.h			\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
47 48 49 50
	gdkscreen-wayland.c			\
	gdkselection-wayland.c			\
	gdkwindow-wayland.c			\
	gdkwayland.h				\
51 52 53
	gdkprivate-wayland.h			\
	wm-button-layout-translation.c		\
	wm-button-layout-translation.h
Kristian Høgsberg's avatar
Kristian Høgsberg committed
54 55 56 57

libgdkinclude_HEADERS =				\
	gdkwayland.h

58
libgdkwaylandinclude_HEADERS = 			\
59
	gdkwaylanddevice.h			\
60
	gdkwaylanddisplay.h			\
61
	gdkwaylandglcontext.h			\
62
	gdkwaylandselection.h			\
63
	gdkwaylandwindow.h
64

Rico Tzschichholz's avatar
Rico Tzschichholz committed
65
%-protocol.c : $(srcdir)/protocol/%.xml
66
	$(AM_V_GEN)$(WAYLAND_SCANNER) code < $< > $@
67 68
	$(AM_V_GEN)$(SED) -i -e 's/WL_EXPORT //' $@

Rico Tzschichholz's avatar
Rico Tzschichholz committed
69
%-server-protocol.h : $(srcdir)/protocol/%.xml
70
	$(AM_V_GEN)$(WAYLAND_SCANNER) server-header < $< > $@
Rico Tzschichholz's avatar
Rico Tzschichholz committed
71
%-client-protocol.h : $(srcdir)/protocol/%.xml
72 73
	$(AM_V_GEN)$(WAYLAND_SCANNER) client-header < $< > $@

74
EXTRA_DIST += 					\
75
	protocol/pointer-gestures.xml		\
76 77
	protocol/xdg-shell.xml			\
	protocol/gtk-shell.xml
78

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