Makefile.am 1.62 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)

Kristian Høgsberg's avatar
Kristian Høgsberg committed
31 32 33 34 35 36 37 38 39 40 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			\
	gdkkeys-wayland.c			\
	gdkscreen-wayland.c			\
	gdkselection-wayland.c			\
	gdkwindow-wayland.c			\
	gdkwayland.h				\
	gdkprivate-wayland.h

libgdkinclude_HEADERS =				\
	gdkwayland.h

49
libgdkwaylandinclude_HEADERS = 			\
50
	gdkwaylanddevice.h			\
51
	gdkwaylanddisplay.h			\
52
	gdkwaylandselection.h			\
53
	gdkwaylandwindow.h
54

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

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

64 65 66
EXTRA_DIST += 					\
	protocol/xdg-shell.xml			\
	protocol/gtk-shell.xml
67

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