Makefile.am 1.59 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

Kristian Høgsberg's avatar
Kristian Høgsberg committed
28
libgdk_wayland_la_SOURCES =			\
29
	$(BUILT_SOURCES)			\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
	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				\
	gdkprivate-wayland.h

libgdkinclude_HEADERS =				\
	gdkwayland.h

47
libgdkwaylandinclude_HEADERS = 			\
48
	gdkwaylanddevice.h			\
49
	gdkwaylanddisplay.h			\
50
	gdkwaylandselection.h			\
51
	gdkwaylandwindow.h
52

Rico Tzschichholz's avatar
Rico Tzschichholz committed
53
%-protocol.c : $(srcdir)/protocol/%.xml
54
	$(AM_V_GEN)$(WAYLAND_SCANNER) code < $< > $@
55 56
	$(AM_V_GEN)$(SED) -i -e 's/WL_EXPORT //' $@

Rico Tzschichholz's avatar
Rico Tzschichholz committed
57
%-server-protocol.h : $(srcdir)/protocol/%.xml
58
	$(AM_V_GEN)$(WAYLAND_SCANNER) server-header < $< > $@
Rico Tzschichholz's avatar
Rico Tzschichholz committed
59
%-client-protocol.h : $(srcdir)/protocol/%.xml
60 61
	$(AM_V_GEN)$(WAYLAND_SCANNER) client-header < $< > $@

62 63 64
EXTRA_DIST += 					\
	protocol/xdg-shell.xml			\
	protocol/gtk-shell.xml
65

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