toytoolkit: Don't draw shadows for maximized windows.
[profile/ivi/weston.git] / src / Makefile.am
1 bin_PROGRAMS = weston                           \
2         $(weston_launch)
3
4 AM_CPPFLAGS =                                   \
5         -DDATADIR='"$(datadir)"'                \
6         -DMODULEDIR='"$(moduledir)"'            \
7         -DLIBEXECDIR='"$(libexecdir)"'
8
9 weston_LDFLAGS = -export-dynamic
10 weston_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
11 weston_LDADD = $(COMPOSITOR_LIBS) $(DLOPEN_LIBS) -lm ../shared/libshared.la
12
13 weston_SOURCES =                                \
14         git-version.h                           \
15         log.c                                   \
16         log.h                                   \
17         compositor.c                            \
18         compositor.h                            \
19         filter.c                                \
20         filter.h                                \
21         screenshooter.c                         \
22         screenshooter-protocol.c                \
23         screenshooter-server-protocol.h         \
24         clipboard.c                             \
25         text-cursor-position-protocol.c         \
26         text-cursor-position-server-protocol.h  \
27         zoom.c                                  \
28         text-backend.c                          \
29         text-protocol.c                         \
30         text-server-protocol.h                  \
31         input-method-protocol.c                 \
32         input-method-server-protocol.h          \
33         workspaces-protocol.c                   \
34         workspaces-server-protocol.h            \
35         util.c                                  \
36         matrix.c                                \
37         matrix.h                                \
38         gles2-renderer.c                        \
39         weston-launch.h                         \
40         weston-egl-ext.h
41
42 git-version.h : .FORCE
43         $(AM_V_GEN)(echo "#define BUILD_ID \"$(shell git --work-tree=$(top_srcdir) describe --always --dirty) $(shell git --work-tree=$(top_srcdir) log -1 --format='%s (%ci)')\"" > $@-new; \
44         cmp -s $@ $@-new || cp $@-new $@; \
45         rm $@-new)
46
47 .FORCE :
48
49 if ENABLE_XWAYLAND
50 SUBDIRS = xwayland
51 endif
52
53 DIST_SUBDIRS = xwayland
54
55
56 if BUILD_WESTON_LAUNCH
57 weston_launch = weston-launch
58 weston_launch_SOURCES = weston-launch.c weston-launch.h
59 weston_launch_CFLAGS= $(GCC_CFLAGS)
60 weston_launch_CPPFLAGS = $(WESTON_LAUNCH_CFLAGS) $(SYSTEMD_LOGIN_CFLAGS) \
61                  -DBINDIR='"$(bindir)"'
62 weston_launch_LDADD = $(WESTON_LAUNCH_LIBS) $(SYSTEMD_LOGIN_LIBS)
63
64 if ENABLE_SETUID_INSTALL
65 install-exec-hook:
66         chown root $(DESTDIR)$(bindir)/weston-launch
67         chmod u+s $(DESTDIR)$(bindir)/weston-launch
68 endif
69
70 endif # BUILD_WESTON_LAUNCH
71
72 moduledir = @libdir@/weston
73 module_LTLIBRARIES =                            \
74         $(desktop_shell)                        \
75         $(tablet_shell)                         \
76         $(x11_backend)                          \
77         $(drm_backend)                          \
78         $(wayland_backend)
79
80 # Do not install, since the binary produced via autotools is unusable.
81 # The real backend is built by the Android build system.
82 noinst_LTLIBRARIES = $(android_backend)
83
84 if ENABLE_X11_COMPOSITOR
85 x11_backend = x11-backend.la
86 x11_backend_la_LDFLAGS = -module -avoid-version
87 x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
88         ../shared/libshared.la
89 x11_backend_la_CFLAGS =                         \
90         $(COMPOSITOR_CFLAGS)                    \
91         $(X11_COMPOSITOR_CFLAGS)                \
92         $(GCC_CFLAGS)
93 x11_backend_la_SOURCES = compositor-x11.c
94 endif
95
96 if ENABLE_DRM_COMPOSITOR
97 drm_backend = drm-backend.la
98 drm_backend_la_LDFLAGS = -module -avoid-version
99 drm_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(DRM_COMPOSITOR_LIBS) \
100         ../shared/libshared.la
101 drm_backend_la_CFLAGS =                         \
102         $(COMPOSITOR_CFLAGS)                    \
103         $(DRM_COMPOSITOR_CFLAGS)                \
104         $(GCC_CFLAGS)
105 drm_backend_la_SOURCES =                        \
106         compositor-drm.c                        \
107         tty.c                                   \
108         evdev.c                                 \
109         evdev.h                                 \
110         evdev-touchpad.c                        \
111         launcher-util.c                         \
112         launcher-util.h                         \
113         libbacklight.c                          \
114         libbacklight.h
115 endif
116
117 if ENABLE_WAYLAND_COMPOSITOR
118 wayland_backend = wayland-backend.la
119 wayland_backend_la_LDFLAGS = -module -avoid-version
120 wayland_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(WAYLAND_COMPOSITOR_LIBS) \
121         ../shared/libshared.la
122 wayland_backend_la_CFLAGS =                     \
123         $(COMPOSITOR_CFLAGS)                    \
124         $(WAYLAND_COMPOSITOR_CFLAGS)            \
125         $(GCC_CFLAGS)
126 wayland_backend_la_SOURCES = compositor-wayland.c
127 endif
128
129 if ENABLE_ANDROID_COMPOSITOR
130 android_backend = android-backend.la
131 android_backend_la_LDFLAGS = -module -avoid-version
132 android_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(ANDROID_COMPOSITOR_LIBS)
133 android_backend_la_CFLAGS =                     \
134         $(GCC_CFLAGS)                           \
135         $(COMPOSITOR_CFLAGS)                    \
136         $(ANDROID_COMPOSITOR_CFLAGS)
137 android_backend_la_CXXFLAGS = $(GCC_CXXFLAGS) $(COMPOSITOR_CFLAGS)
138 android_backend_la_SOURCES =                    \
139         compositor-android.c                    \
140         evdev.c                                 \
141         evdev.h                                 \
142         evdev-touchpad.c                        \
143         android-framebuffer.cpp                 \
144         android-framebuffer.h
145 endif
146
147 if ENABLE_DESKTOP_SHELL
148 desktop_shell = desktop-shell.la
149 desktop_shell_la_LDFLAGS = -module -avoid-version
150 desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS)    \
151         ../shared/libshared.la
152 desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
153 desktop_shell_la_SOURCES =                      \
154         shell.c                                 \
155         desktop-shell-protocol.c                \
156         desktop-shell-server-protocol.h
157 endif
158
159 if ENABLE_TABLET_SHELL
160 tablet_shell = tablet-shell.la
161 tablet_shell_la_LDFLAGS = -module -avoid-version
162 tablet_shell_la_LIBADD = $(COMPOSITOR_LIBS)
163 tablet_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
164 tablet_shell_la_SOURCES =                       \
165         tablet-shell.c                          \
166         tablet-shell-protocol.c                 \
167         tablet-shell-server-protocol.h
168 endif
169
170 BUILT_SOURCES =                                 \
171         screenshooter-server-protocol.h         \
172         screenshooter-protocol.c                \
173         text-cursor-position-server-protocol.h  \
174         text-cursor-position-protocol.c         \
175         tablet-shell-protocol.c                 \
176         tablet-shell-server-protocol.h          \
177         desktop-shell-protocol.c                \
178         desktop-shell-server-protocol.h         \
179         text-protocol.c                         \
180         text-server-protocol.h                  \
181         input-method-protocol.c                 \
182         input-method-server-protocol.h          \
183         workspaces-server-protocol.h            \
184         workspaces-protocol.c                   \
185         git-version.h
186
187 CLEANFILES = $(BUILT_SOURCES)
188
189 @wayland_scanner_rules@