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