summaryrefslogtreecommitdiff
path: root/kde/window-decorator-kde4/Makefile.am
blob: 3062897dda032aade49ea70486d702609c009183 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
if USE_KDE4

BUILDSOURCES =		      \
	decorator.moc.cpp     \
	window.moc.cpp        \
	kwinadaptor.moc.cpp   \
	kwinadaptor.cpp       \
	kwinadaptor.h

kde4_window_decorator_DEPENDENCIES = \
	$(top_builddir)/libdecoration/libdecoration.la
kde4_window_decorator_LDADD   =			       \
	$(top_builddir)/libdecoration/libdecoration.la \
	@KDE4_WINDOW_DECORATOR_LIBS@ @KDE4_LIBS@

nodist_kde4_window_decorator_SOURCES = \
	$(BUILDSOURCES)

dist_kde4_window_decorator_SOURCES = \
	main.cpp	       \
	utils.cpp	       \
	utils.h		       \
	decorator.cpp	       \
	decorator.h	       \
	window.cpp	       \
	window.h	       \
	options.cpp	       \
	options.h              \
	kdecoration_plugins.cpp \
	kdecoration_plugins.h   \
	switcher.cpp            \
	switcher.h              \
	org.kde.KWin.xml

kde4_window_decorator_program = kde4-window-decorator

INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include @KDE4_WINDOW_DECORATOR_CFLAGS@ @KDE4_CFLAGS@

bin_PROGRAMS = $(kde4_window_decorator_program)

%.moc.cpp: %.h
	$(QT4_MOC) $< > $@

kwinadaptor.h: kwinadaptor.cpp

kwinadaptor.cpp: org.kde.KWin.xml
	$(QDBUSXML2CPP) -a kwinadaptor -i decorator.h -l KWD::Decorator $<

# make sure kwinadaptor.h is built before any of the dist_SOURCES uses it
main.cpp: kwinadaptor.h

CLEANFILES = $(BUILDSOURCES)
EXTRA_DIST = org.kde.KWin.xml

endif