button-test: Use wl_display_roundtrip instead of yield()
[profile/ivi/weston.git] / clients / Makefile.am
1 bin_PROGRAMS =                                  \
2         weston-info                             \
3         $(terminal)
4
5 noinst_PROGRAMS =                               \
6         $(clients_programs)                     \
7         $(poppler_programs)                     \
8         $(simple_clients_programs)              \
9         $(simple_egl_clients_programs)
10
11 libexec_PROGRAMS =                              \
12         $(desktop_shell)                        \
13         $(tablet_shell)                         \
14         $(screenshooter)                        \
15         $(screensaver)
16
17 AM_CFLAGS = $(GCC_CFLAGS)
18 AM_CPPFLAGS =                                   \
19         -DDATADIR='"$(datadir)"'                \
20         -DBINDIR='"$(bindir)"'                  \
21         $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
22
23 if BUILD_SIMPLE_CLIENTS
24 simple_clients_programs =                       \
25         simple-shm                              \
26         simple-touch
27
28 simple_shm_SOURCES = simple-shm.c               \
29         ../shared/os-compatibility.c            \
30         ../shared/os-compatibility.h
31 simple_shm_CPPFLAGS = $(SIMPLE_CLIENT_CFLAGS)
32 simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS)
33
34 simple_touch_SOURCES = simple-touch.c           \
35         ../shared/os-compatibility.c            \
36         ../shared/os-compatibility.h
37 simple_touch_CPPFLAGS = $(SIMPLE_CLIENT_CFLAGS)
38 simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS)
39 endif
40
41 if BUILD_SIMPLE_EGL_CLIENTS
42 simple_egl_clients_programs =                   \
43         simple-egl
44
45 simple_egl_SOURCES = simple-egl.c
46 simple_egl_CPPFLAGS = $(SIMPLE_EGL_CLIENT_CFLAGS)
47 simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
48 endif
49
50 if BUILD_CLIENTS
51 terminal = weston-terminal
52
53 clients_programs =                              \
54         flower                                  \
55         image                                   \
56         cliptest                                \
57         dnd                                     \
58         smoke                                   \
59         resizor                                 \
60         eventdemo                               \
61         clickdot                                \
62         editor                                  \
63         keyboard                                \
64         $(full_gl_client_programs)
65
66 desktop_shell = weston-desktop-shell
67
68 if ENABLE_TABLET_SHELL
69 tablet_shell = weston-tablet-shell
70 endif
71
72 screenshooter = weston-screenshooter
73
74 noinst_LIBRARIES = libtoytoolkit.a
75
76 libtoytoolkit_a_SOURCES =                       \
77         window.c                                \
78         window.h                                \
79         text-cursor-position-protocol.c         \
80         text-cursor-position-client-protocol.h  \
81         workspaces-protocol.c                   \
82         workspaces-client-protocol.h
83
84 toolkit_libs =                                          \
85         libtoytoolkit.a                                 \
86         ../shared/libshared-cairo.la                    \
87         $(CLIENT_LIBS) $(CAIRO_EGL_LIBS) -lrt -lm
88
89 flower_SOURCES = flower.c
90 flower_LDADD = $(toolkit_libs)
91
92 weston_screenshooter_SOURCES = screenshot.c screenshooter-protocol.c
93 weston_screenshooter_LDADD = $(toolkit_libs)
94
95 weston_terminal_SOURCES = terminal.c
96 weston_terminal_LDADD = $(toolkit_libs) -lutil
97
98 image_SOURCES = image.c
99 image_LDADD = $(toolkit_libs)
100
101 cliptest_SOURCES = cliptest.c
102 cliptest_CPPFLAGS = $(AM_CPPFLAGS) $(PIXMAN_CFLAGS)
103 cliptest_LDADD = $(toolkit_libs) $(PIXMAN_LIBS)
104
105 dnd_SOURCES = dnd.c
106 dnd_LDADD = $(toolkit_libs)
107
108 smoke_SOURCES = smoke.c
109 smoke_LDADD = $(toolkit_libs)
110
111 resizor_SOURCES = resizor.c
112 resizor_LDADD = $(toolkit_libs)
113
114 eventdemo_SOURCES = eventdemo.c
115 eventdemo_LDADD = $(toolkit_libs)
116
117 clickdot_SOURCES = clickdot.c
118 clickdot_LDADD = $(toolkit_libs)
119
120 editor_SOURCES =                                \
121         editor.c                                \
122         text-protocol.c                         \
123         text-client-protocol.h
124 editor_LDADD = $(toolkit_libs)
125
126 keyboard_SOURCES =                              \
127         keyboard.c                              \
128         desktop-shell-client-protocol.h         \
129         desktop-shell-protocol.c                \
130         input-method-protocol.c                 \
131         input-method-client-protocol.h
132 keyboard_LDADD = $(toolkit_libs)
133
134 weston_info_SOURCES =                           \
135         weston-info.c                           \
136         ../shared/os-compatibility.c            \
137         ../shared/os-compatibility.h
138 weston_info_LDADD = $(WESTON_INFO_LIBS)
139
140 weston_desktop_shell_SOURCES =                  \
141         desktop-shell.c                         \
142         desktop-shell-client-protocol.h         \
143         desktop-shell-protocol.c
144 weston_desktop_shell_LDADD = $(toolkit_libs)
145
146 weston_tablet_shell_SOURCES =                   \
147         tablet-shell.c                          \
148         tablet-shell-client-protocol.h          \
149         tablet-shell-protocol.c
150 weston_tablet_shell_LDADD = $(toolkit_libs)
151
152 BUILT_SOURCES =                                 \
153         screenshooter-client-protocol.h         \
154         screenshooter-protocol.c                \
155         text-cursor-position-client-protocol.h  \
156         text-cursor-position-protocol.c         \
157         text-protocol.c                         \
158         text-client-protocol.h                  \
159         input-method-protocol.c                 \
160         input-method-client-protocol.h          \
161         desktop-shell-client-protocol.h         \
162         desktop-shell-protocol.c                \
163         tablet-shell-client-protocol.h          \
164         tablet-shell-protocol.c                 \
165         workspaces-client-protocol.h            \
166         workspaces-protocol.c
167
168 CLEANFILES = $(BUILT_SOURCES)
169 endif
170
171 if BUILD_FULL_GL_CLIENTS
172 full_gl_client_programs = gears
173
174 gears_SOURCES = gears.c
175 gears_LDADD = $(toolkit_libs)
176
177 if HAVE_GLU
178 screensaver = weston-screensaver
179 weston_screensaver_SOURCES =                    \
180         wscreensaver.c                          \
181         wscreensaver.h                          \
182         desktop-shell-client-protocol.h         \
183         desktop-shell-protocol.c                \
184         wscreensaver-glue.c                     \
185         wscreensaver-glue.h                     \
186         glmatrix.c                              \
187         matrix3.xpm
188 weston_screensaver_LDADD = $(toolkit_libs) $(GLU_LIBS)
189 weston_screensaver_CFLAGS = $(GLU_CFLAGS)
190 endif
191
192 endif
193
194 @wayland_scanner_rules@
195
196 if HAVE_POPPLER
197 poppler_programs = view
198 view_SOURCES = view.c
199 view_LDADD = $(toolkit_libs) $(POPPLER_LIBS)
200 view_CPPFLAGS = $(AM_CPPFLAGS) $(POPPLER_CFLAGS)
201 endif