summaryrefslogtreecommitdiff
path: root/clients/Makefile.am
blob: cad0d405e83c7df2b6f8e124714461c5cf340d4b (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
bin_PROGRAMS =					\
	weston-info				\
	$(terminal)

noinst_PROGRAMS =				\
	$(clients_programs)			\
	$(pango_programs)			\
	$(poppler_programs)			\
	$(simple_clients_programs)		\
	$(simple_egl_clients_programs)

libexec_PROGRAMS =				\
	$(desktop_shell)			\
	$(tablet_shell)				\
	$(screenshooter)			\
	$(screensaver)				\
	$(keyboard)				\
	weston-simple-im

AM_CFLAGS = $(GCC_CFLAGS)
AM_CPPFLAGS =					\
	-DDATADIR='"$(datadir)"'		\
	-DBINDIR='"$(bindir)"'			\
	$(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)

if BUILD_SIMPLE_CLIENTS
simple_clients_programs =			\
	simple-shm				\
	simple-touch

simple_shm_SOURCES = simple-shm.c 		\
	../shared/os-compatibility.c		\
	../shared/os-compatibility.h
simple_shm_CPPFLAGS = $(SIMPLE_CLIENT_CFLAGS)
simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS)

simple_touch_SOURCES = simple-touch.c		\
	../shared/os-compatibility.c		\
	../shared/os-compatibility.h
simple_touch_CPPFLAGS = $(SIMPLE_CLIENT_CFLAGS)
simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS)
endif

if BUILD_SIMPLE_EGL_CLIENTS
simple_egl_clients_programs =			\
	simple-egl

simple_egl_SOURCES = simple-egl.c
simple_egl_CPPFLAGS = $(SIMPLE_EGL_CLIENT_CFLAGS)
simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
endif

if BUILD_CLIENTS
terminal = weston-terminal

clients_programs =				\
	flower					\
	image					\
	cliptest				\
	dnd					\
	smoke					\
	resizor					\
	eventdemo				\
	clickdot				\
	transformed				\
	fullscreen				\
	calibrator				\
	$(subsurfaces)				\
	$(full_gl_client_programs)		\
	$(cairo_glesv2_programs)

desktop_shell = weston-desktop-shell

if ENABLE_TABLET_SHELL
tablet_shell = weston-tablet-shell
endif

screenshooter = weston-screenshooter

noinst_LTLIBRARIES = libtoytoolkit.la

libtoytoolkit_la_SOURCES =			\
	window.c				\
	window.h				\
	text-cursor-position-protocol.c		\
	text-cursor-position-client-protocol.h	\
	subsurface-protocol.c			\
	subsurface-client-protocol.h		\
	workspaces-protocol.c			\
	workspaces-client-protocol.h

libtoytoolkit_la_LIBADD =			\
	$(CLIENT_LIBS)				\
	$(CAIRO_EGL_LIBS)			\
	../shared/libshared-cairo.la -lrt -lm

flower_SOURCES = flower.c
flower_LDADD = libtoytoolkit.la

weston_screenshooter_SOURCES =			\
	screenshot.c				\
	screenshooter-protocol.c		\
	screenshooter-client-protocol.h
weston_screenshooter_LDADD = libtoytoolkit.la

weston_terminal_SOURCES = terminal.c
weston_terminal_LDADD = libtoytoolkit.la -lutil

image_SOURCES = image.c
image_LDADD = libtoytoolkit.la

cliptest_SOURCES = cliptest.c
cliptest_CPPFLAGS = $(AM_CPPFLAGS) $(PIXMAN_CFLAGS)
cliptest_LDADD = libtoytoolkit.la $(PIXMAN_LIBS)

dnd_SOURCES = dnd.c
dnd_LDADD = libtoytoolkit.la

smoke_SOURCES = smoke.c
smoke_LDADD = libtoytoolkit.la

resizor_SOURCES = resizor.c
resizor_LDADD = libtoytoolkit.la

if HAVE_CAIRO_GLESV2
cairo_glesv2_programs = nested nested-client

nested_SOURCES = nested.c
nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)

nested_client_SOURCES = nested-client.c
nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
endif

eventdemo_SOURCES = eventdemo.c
eventdemo_LDADD = libtoytoolkit.la

clickdot_SOURCES = clickdot.c
clickdot_LDADD = libtoytoolkit.la

transformed_SOURCES = transformed.c
transformed_LDADD = libtoytoolkit.la

fullscreen_SOURCES = fullscreen.c
fullscreen_LDADD = libtoytoolkit.la

calibrator_SOURCES = calibrator.c ../shared/matrix.c ../shared/matrix.h
calibrator_LDADD = libtoytoolkit.la

if BUILD_SUBSURFACES_CLIENT
subsurfaces = subsurfaces
subsurfaces_SOURCES = subsurfaces.c
subsurfaces_CPPFLAGS = $(AM_CPPFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
endif

if HAVE_PANGO
pango_programs = editor
editor_SOURCES = 				\
	editor.c				\
	text-protocol.c				\
	text-client-protocol.h
editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
editor_CPPFLAGS = $(AM_CPPFLAGS) $(PANGO_CFLAGS)
endif

keyboard = weston-keyboard
weston_keyboard_SOURCES = 			\
	keyboard.c				\
	desktop-shell-client-protocol.h		\
	desktop-shell-protocol.c		\
	input-method-protocol.c			\
	input-method-client-protocol.h
weston_keyboard_LDADD = libtoytoolkit.la

weston_simple_im_SOURCES = 			\
	weston-simple-im.c			\
	input-method-protocol.c			\
	input-method-client-protocol.h
weston_simple_im_LDADD = $(CLIENT_LIBS)

weston_info_SOURCES =				\
	weston-info.c				\
	../shared/os-compatibility.c		\
	../shared/os-compatibility.h
weston_info_LDADD = $(WESTON_INFO_LIBS)

weston_desktop_shell_SOURCES =			\
	desktop-shell.c				\
	desktop-shell-client-protocol.h		\
	desktop-shell-protocol.c
weston_desktop_shell_LDADD = libtoytoolkit.la

weston_tablet_shell_SOURCES =			\
	tablet-shell.c				\
	tablet-shell-client-protocol.h		\
	tablet-shell-protocol.c
weston_tablet_shell_LDADD = libtoytoolkit.la

BUILT_SOURCES =					\
	screenshooter-client-protocol.h		\
	screenshooter-protocol.c		\
	text-cursor-position-client-protocol.h	\
	text-cursor-position-protocol.c		\
	text-protocol.c				\
	text-client-protocol.h			\
	input-method-protocol.c			\
	input-method-client-protocol.h		\
	desktop-shell-client-protocol.h		\
	desktop-shell-protocol.c		\
	tablet-shell-client-protocol.h		\
	tablet-shell-protocol.c			\
	subsurface-client-protocol.h		\
	subsurface-protocol.c			\
	workspaces-client-protocol.h		\
	workspaces-protocol.c

CLEANFILES = $(BUILT_SOURCES)
endif

if BUILD_FULL_GL_CLIENTS
full_gl_client_programs = gears

gears_SOURCES = gears.c
gears_LDADD = libtoytoolkit.la

if HAVE_GLU
screensaver = weston-screensaver
weston_screensaver_SOURCES =			\
	wscreensaver.c				\
	wscreensaver.h				\
	desktop-shell-client-protocol.h		\
	desktop-shell-protocol.c		\
	wscreensaver-glue.c			\
	wscreensaver-glue.h			\
	glmatrix.c				\
	matrix3.xpm
weston_screensaver_LDADD = libtoytoolkit.la $(GLU_LIBS)
weston_screensaver_CFLAGS = $(GLU_CFLAGS)
endif

endif

@wayland_scanner_rules@

if HAVE_POPPLER
poppler_programs = view
view_SOURCES = view.c
view_LDADD = libtoytoolkit.la $(POPPLER_LIBS)
view_CPPFLAGS = $(AM_CPPFLAGS) $(POPPLER_CFLAGS)
endif