Makefile.am 1.73 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
	xdg-shell-client-protocol.h		\
	xdg-shell-protocol.c			\
25 26 27
	gtk-shell-client-protocol.h		\
	gtk-shell-protocol.c

28 29 30
nodist_libgdk_wayland_la_SOURCES =		\
	$(BUILT_SOURCES)

Matthias Clasen's avatar
Matthias Clasen committed
31 32 33
DISTCLEANFILES =				\
	$(BUILT_SOURCES)

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

libgdkinclude_HEADERS =				\
	gdkwayland.h

54
libgdkwaylandinclude_HEADERS = 			\
55
	gdkwaylanddevice.h			\
56
	gdkwaylanddisplay.h			\
57
	gdkwaylandselection.h			\
58
	gdkwaylandwindow.h
59

Rico Tzschichholz's avatar
Rico Tzschichholz committed
60
%-protocol.c : $(srcdir)/protocol/%.xml
61
	$(AM_V_GEN)$(WAYLAND_SCANNER) code < $< > $@
62 63
	$(AM_V_GEN)$(SED) -i -e 's/WL_EXPORT //' $@

Rico Tzschichholz's avatar
Rico Tzschichholz committed
64
%-server-protocol.h : $(srcdir)/protocol/%.xml
65
	$(AM_V_GEN)$(WAYLAND_SCANNER) server-header < $< > $@
Rico Tzschichholz's avatar
Rico Tzschichholz committed
66
%-client-protocol.h : $(srcdir)/protocol/%.xml
67 68
	$(AM_V_GEN)$(WAYLAND_SCANNER) client-header < $< > $@

69 70 71
EXTRA_DIST += 					\
	protocol/xdg-shell.xml			\
	protocol/gtk-shell.xml
72

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