2f14fbd5d537ad59b5b94eefc8a2f6d06ebb95d2
[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 INSTALL_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         weston-scaler                           \
82         $(subsurfaces)                          \
83         $(full_gl_client_programs)              \
84         $(cairo_glesv2_programs)
85
86 desktop_shell = weston-desktop-shell
87
88 screenshooter = weston-screenshooter
89
90 noinst_LTLIBRARIES = libtoytoolkit.la
91
92 libtoytoolkit_la_SOURCES =                      \
93         window.c                                \
94         window.h                                \
95         text-cursor-position-protocol.c         \
96         text-cursor-position-client-protocol.h  \
97         scaler-protocol.c                       \
98         scaler-client-protocol.h                \
99         workspaces-protocol.c                   \
100         workspaces-client-protocol.h
101
102 libtoytoolkit_la_LIBADD =                       \
103         $(CLIENT_LIBS)                          \
104         $(CAIRO_EGL_LIBS)                       \
105         ../shared/libshared-cairo.la -lrt -lm
106
107 weston_flower_SOURCES = flower.c
108 weston_flower_LDADD = libtoytoolkit.la
109
110 weston_screenshooter_SOURCES =                  \
111         screenshot.c                            \
112         screenshooter-protocol.c                \
113         screenshooter-client-protocol.h         \
114         ../shared/os-compatibility.c            \
115         ../shared/os-compatibility.h
116 weston_screenshooter_LDADD = $(CLIENT_LIBS)
117
118 weston_terminal_SOURCES = terminal.c
119 weston_terminal_LDADD = libtoytoolkit.la -lutil
120
121 weston_image_SOURCES = image.c
122 weston_image_LDADD = libtoytoolkit.la
123
124 weston_cliptest_SOURCES = cliptest.c
125 weston_cliptest_CPPFLAGS = $(AM_CPPFLAGS) $(PIXMAN_CFLAGS)
126 weston_cliptest_LDADD = libtoytoolkit.la $(PIXMAN_LIBS)
127
128 weston_dnd_SOURCES = dnd.c
129 weston_dnd_LDADD = libtoytoolkit.la
130
131 weston_smoke_SOURCES = smoke.c
132 weston_smoke_LDADD = libtoytoolkit.la
133
134 weston_resizor_SOURCES = resizor.c
135 weston_resizor_LDADD = libtoytoolkit.la
136
137 weston_scaler_SOURCES = scaler.c
138 weston_scaler_LDADD = libtoytoolkit.la
139
140 if HAVE_CAIRO_GLESV2
141 cairo_glesv2_programs = weston-nested weston-nested-client
142
143 weston_nested_SOURCES = nested.c
144 weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
145
146 weston_nested_client_SOURCES = nested-client.c
147 weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
148 endif
149
150 weston_eventdemo_SOURCES = eventdemo.c
151 weston_eventdemo_LDADD = libtoytoolkit.la
152
153 weston_clickdot_SOURCES = clickdot.c
154 weston_clickdot_LDADD = libtoytoolkit.la
155
156 weston_transformed_SOURCES = transformed.c
157 weston_transformed_LDADD = libtoytoolkit.la
158
159 weston_fullscreen_SOURCES = fullscreen.c
160 weston_fullscreen_LDADD = libtoytoolkit.la
161
162 weston_stacking_SOURCES = stacking.c
163 weston_stacking_LDADD = libtoytoolkit.la
164
165 weston_calibrator_SOURCES = calibrator.c        \
166         ../shared/matrix.c                      \
167         ../shared/matrix.h
168 weston_calibrator_LDADD = libtoytoolkit.la
169
170 if BUILD_SUBSURFACES_CLIENT
171 subsurfaces = weston-subsurfaces
172 weston_subsurfaces_SOURCES = subsurfaces.c
173 weston_subsurfaces_CPPFLAGS = $(AM_CPPFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
174 weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
175 endif
176
177 if HAVE_PANGO
178 pango_programs = weston-editor
179 weston_editor_SOURCES =                         \
180         editor.c                                \
181         text-protocol.c                         \
182         text-client-protocol.h
183 weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
184 weston_editor_CPPFLAGS = $(AM_CPPFLAGS) $(PANGO_CFLAGS)
185 endif
186
187 keyboard = weston-keyboard
188 weston_keyboard_SOURCES =                       \
189         keyboard.c                              \
190         desktop-shell-client-protocol.h         \
191         desktop-shell-protocol.c                \
192         input-method-protocol.c                 \
193         input-method-client-protocol.h
194 weston_keyboard_LDADD = libtoytoolkit.la
195
196 weston_simple_im_SOURCES =                      \
197         weston-simple-im.c                      \
198         input-method-protocol.c                 \
199         input-method-client-protocol.h
200 weston_simple_im_LDADD = $(CLIENT_LIBS)
201
202 weston_info_SOURCES =                           \
203         weston-info.c                           \
204         ../shared/os-compatibility.c            \
205         ../shared/os-compatibility.h
206 weston_info_LDADD = $(WESTON_INFO_LIBS)
207
208 weston_desktop_shell_SOURCES =                  \
209         desktop-shell.c                         \
210         desktop-shell-client-protocol.h         \
211         desktop-shell-protocol.c
212 weston_desktop_shell_LDADD = libtoytoolkit.la
213
214 BUILT_SOURCES =                                 \
215         screenshooter-client-protocol.h         \
216         screenshooter-protocol.c                \
217         text-cursor-position-client-protocol.h  \
218         text-cursor-position-protocol.c         \
219         text-protocol.c                         \
220         text-client-protocol.h                  \
221         input-method-protocol.c                 \
222         input-method-client-protocol.h          \
223         desktop-shell-client-protocol.h         \
224         desktop-shell-protocol.c                \
225         scaler-client-protocol.h                \
226         scaler-protocol.c                       \
227         workspaces-client-protocol.h            \
228         workspaces-protocol.c
229
230 CLEANFILES = $(BUILT_SOURCES)
231 endif
232
233 if BUILD_FULL_GL_CLIENTS
234 full_gl_client_programs = weston-gears
235
236 weston_gears_SOURCES = gears.c
237 weston_gears_LDADD = libtoytoolkit.la
238
239 if HAVE_GLU
240 screensaver = weston-screensaver
241 weston_screensaver_SOURCES =                    \
242         wscreensaver.c                          \
243         wscreensaver.h                          \
244         desktop-shell-client-protocol.h         \
245         desktop-shell-protocol.c                \
246         wscreensaver-glue.c                     \
247         wscreensaver-glue.h                     \
248         glmatrix.c                              \
249         matrix3.xpm
250 weston_screensaver_LDADD = libtoytoolkit.la $(GLU_LIBS)
251 weston_screensaver_CFLAGS = $(GLU_CFLAGS)
252 endif
253
254 endif
255
256 wayland_protocoldir = $(top_srcdir)/protocol
257 include $(top_srcdir)/wayland-scanner.mk
258
259 if HAVE_POPPLER
260 poppler_programs = weston-view
261 weston_view_SOURCES = view.c
262 weston_view_LDADD = libtoytoolkit.la $(POPPLER_LIBS)
263 weston_view_CPPFLAGS = $(AM_CPPFLAGS) $(POPPLER_CFLAGS)
264 endif