nested: Remove the surface from the surface list when destroyed
[profile/ivi/weston-ivi-shell.git] / clients / Makefile.am
1 bin_PROGRAMS =                                  \
2         weston-info                             \
3         $(terminal)
4
5 demo_clients = \
6         $(clients_programs)                     \
7         $(pango_programs)                       \
8         $(poppler_programs)                     \
9         $(simple_clients_programs)              \
10         $(simple_egl_clients_programs)
11
12 if ENABLE_DEMO_CLIENTS
13 bin_PROGRAMS += $(demo_clients)
14 else
15 noinst_PROGRAMS = $(demo_clients)
16 endif
17
18 libexec_PROGRAMS =                              \
19         $(desktop_shell)                        \
20         $(screenshooter)                        \
21         $(screensaver)                          \
22         $(keyboard)                             \
23         weston-simple-im
24
25 AM_CFLAGS = $(GCC_CFLAGS)
26 AM_CPPFLAGS =                                   \
27         -DDATADIR='"$(datadir)"'                \
28         -DBINDIR='"$(bindir)"'                  \
29         $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
30
31 if BUILD_SIMPLE_CLIENTS
32 simple_clients_programs =                       \
33         weston-simple-shm                       \
34         weston-simple-touch                     \
35         weston-multi-resource
36
37 weston_simple_shm_SOURCES = simple-shm.c        \
38         ../shared/os-compatibility.c            \
39         ../shared/os-compatibility.h
40 weston_simple_shm_CPPFLAGS = $(SIMPLE_CLIENT_CFLAGS)
41 weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS)
42
43 weston_simple_touch_SOURCES = simple-touch.c    \
44         ../shared/os-compatibility.c            \
45         ../shared/os-compatibility.h
46 weston_simple_touch_CPPFLAGS = $(SIMPLE_CLIENT_CFLAGS)
47 weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS)
48
49 weston_multi_resource_SOURCES = multi-resource.c        \
50         ../shared/os-compatibility.c                    \
51         ../shared/os-compatibility.h
52 weston_multi_resource_CPPFLAGS = $(SIMPLE_CLIENT_CFLAGS)
53 weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) -lm
54 endif
55
56 if BUILD_SIMPLE_EGL_CLIENTS
57 simple_egl_clients_programs =                   \
58         weston-simple-egl
59
60 weston_simple_egl_SOURCES = simple-egl.c
61 weston_simple_egl_CPPFLAGS = $(SIMPLE_EGL_CLIENT_CFLAGS)
62 weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
63 endif
64
65 if BUILD_CLIENTS
66 terminal = weston-terminal
67
68 clients_programs =                              \
69         weston-flower                           \
70         weston-image                            \
71         weston-cliptest                         \
72         weston-dnd                              \
73         weston-smoke                            \
74         weston-resizor                          \
75         weston-eventdemo                        \
76         weston-clickdot                         \
77         weston-transformed                      \
78         weston-fullscreen                       \
79         weston-stacking                         \
80         weston-calibrator                       \
81         $(subsurfaces)                          \
82         $(full_gl_client_programs)              \
83         $(cairo_glesv2_programs)
84
85 desktop_shell = weston-desktop-shell
86
87 screenshooter = weston-screenshooter
88
89 noinst_LTLIBRARIES = libtoytoolkit.la
90
91 libtoytoolkit_la_SOURCES =                      \
92         window.c                                \
93         window.h                                \
94         text-cursor-position-protocol.c         \
95         text-cursor-position-client-protocol.h  \
96         workspaces-protocol.c                   \
97         workspaces-client-protocol.h
98
99 libtoytoolkit_la_LIBADD =                       \
100         $(CLIENT_LIBS)                          \
101         $(CAIRO_EGL_LIBS)                       \
102         ../shared/libshared-cairo.la -lrt -lm
103
104 weston_flower_SOURCES = flower.c
105 weston_flower_LDADD = libtoytoolkit.la
106
107 weston_screenshooter_SOURCES =                  \
108         screenshot.c                            \
109         screenshooter-protocol.c                \
110         screenshooter-client-protocol.h         \
111         ../shared/os-compatibility.c            \
112         ../shared/os-compatibility.h
113 weston_screenshooter_LDADD = $(CLIENT_LIBS)
114
115 weston_terminal_SOURCES = terminal.c
116 weston_terminal_LDADD = libtoytoolkit.la -lutil
117
118 weston_image_SOURCES = image.c
119 weston_image_LDADD = libtoytoolkit.la
120
121 weston_cliptest_SOURCES = cliptest.c
122 weston_cliptest_CPPFLAGS = $(AM_CPPFLAGS) $(PIXMAN_CFLAGS)
123 weston_cliptest_LDADD = libtoytoolkit.la $(PIXMAN_LIBS)
124
125 weston_dnd_SOURCES = dnd.c
126 weston_dnd_LDADD = libtoytoolkit.la
127
128 weston_smoke_SOURCES = smoke.c
129 weston_smoke_LDADD = libtoytoolkit.la
130
131 weston_resizor_SOURCES = resizor.c
132 weston_resizor_LDADD = libtoytoolkit.la
133
134 if HAVE_CAIRO_GLESV2
135 cairo_glesv2_programs = weston-nested weston-nested-client
136
137 weston_nested_SOURCES = nested.c
138 weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
139
140 weston_nested_client_SOURCES = nested-client.c
141 weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
142 endif
143
144 weston_eventdemo_SOURCES = eventdemo.c
145 weston_eventdemo_LDADD = libtoytoolkit.la
146
147 weston_clickdot_SOURCES = clickdot.c
148 weston_clickdot_LDADD = libtoytoolkit.la
149
150 weston_transformed_SOURCES = transformed.c
151 weston_transformed_LDADD = libtoytoolkit.la
152
153 weston_fullscreen_SOURCES = fullscreen.c
154 weston_fullscreen_LDADD = libtoytoolkit.la
155
156 weston_stacking_SOURCES = stacking.c
157 weston_stacking_LDADD = libtoytoolkit.la
158
159 weston_calibrator_SOURCES = calibrator.c        \
160         ../shared/matrix.c                      \
161         ../shared/matrix.h
162 weston_calibrator_LDADD = libtoytoolkit.la
163
164 if BUILD_SUBSURFACES_CLIENT
165 subsurfaces = weston-subsurfaces
166 weston_subsurfaces_SOURCES = subsurfaces.c
167 weston_subsurfaces_CPPFLAGS = $(AM_CPPFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
168 weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
169 endif
170
171 if HAVE_PANGO
172 pango_programs = weston-editor
173 weston_editor_SOURCES =                         \
174         editor.c                                \
175         text-protocol.c                         \
176         text-client-protocol.h
177 weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
178 weston_editor_CPPFLAGS = $(AM_CPPFLAGS) $(PANGO_CFLAGS)
179 endif
180
181 keyboard = weston-keyboard
182 weston_keyboard_SOURCES =                       \
183         keyboard.c                              \
184         desktop-shell-client-protocol.h         \
185         desktop-shell-protocol.c                \
186         input-method-protocol.c                 \
187         input-method-client-protocol.h
188 weston_keyboard_LDADD = libtoytoolkit.la
189
190 weston_simple_im_SOURCES =                      \
191         weston-simple-im.c                      \
192         input-method-protocol.c                 \
193         input-method-client-protocol.h
194 weston_simple_im_LDADD = $(CLIENT_LIBS)
195
196 weston_info_SOURCES =                           \
197         weston-info.c                           \
198         ../shared/os-compatibility.c            \
199         ../shared/os-compatibility.h
200 weston_info_LDADD = $(WESTON_INFO_LIBS)
201
202 weston_desktop_shell_SOURCES =                  \
203         desktop-shell.c                         \
204         desktop-shell-client-protocol.h         \
205         desktop-shell-protocol.c
206 weston_desktop_shell_LDADD = libtoytoolkit.la
207
208 BUILT_SOURCES =                                 \
209         screenshooter-client-protocol.h         \
210         screenshooter-protocol.c                \
211         text-cursor-position-client-protocol.h  \
212         text-cursor-position-protocol.c         \
213         text-protocol.c                         \
214         text-client-protocol.h                  \
215         input-method-protocol.c                 \
216         input-method-client-protocol.h          \
217         desktop-shell-client-protocol.h         \
218         desktop-shell-protocol.c                \
219         workspaces-client-protocol.h            \
220         workspaces-protocol.c
221
222 CLEANFILES = $(BUILT_SOURCES)
223 endif
224
225 if BUILD_FULL_GL_CLIENTS
226 full_gl_client_programs = weston-gears
227
228 weston_gears_SOURCES = gears.c
229 weston_gears_LDADD = libtoytoolkit.la
230
231 if HAVE_GLU
232 screensaver = weston-screensaver
233 weston_screensaver_SOURCES =                    \
234         wscreensaver.c                          \
235         wscreensaver.h                          \
236         desktop-shell-client-protocol.h         \
237         desktop-shell-protocol.c                \
238         wscreensaver-glue.c                     \
239         wscreensaver-glue.h                     \
240         glmatrix.c                              \
241         matrix3.xpm
242 weston_screensaver_LDADD = libtoytoolkit.la $(GLU_LIBS)
243 weston_screensaver_CFLAGS = $(GLU_CFLAGS)
244 endif
245
246 endif
247
248 wayland_protocoldir = $(top_srcdir)/protocol
249 include $(top_srcdir)/wayland-scanner.mk
250
251 if HAVE_POPPLER
252 poppler_programs = weston-view
253 weston_view_SOURCES = view.c
254 weston_view_LDADD = libtoytoolkit.la $(POPPLER_LIBS)
255 weston_view_CPPFLAGS = $(AM_CPPFLAGS) $(POPPLER_CFLAGS)
256 endif