copy: Don't modify fmt_out until success is ensured
[vlc.git] / modules / video_output / Makefile.am
blob1a80c5a14e985d3f92a35549001957386c65fed1
1 voutdir = $(pluginsdir)/video_output
2 vout_LTLIBRARIES =
4 EXTRA_DIST += video_output/README
6 OPENGL_COMMONSOURCES = video_output/opengl/vout_helper.c \
7         video_output/opengl/vout_helper.h video_output/opengl/converter.h \
8         video_output/opengl/internal.h video_output/opengl/fragment_shaders.c \
9         video_output/opengl/converter_sw.c
11 OPENGL_COMMONCLFAGS = $(LIBPLACEBO_CFLAGS)
12 OPENGL_COMMONLIBS = $(LIBPLACEBO_LIBS)
14 if HAVE_DECKLINK
15 libdecklinkoutput_plugin_la_SOURCES = video_output/decklink.cpp
16 libdecklinkoutput_plugin_la_CXXFLAGS = $(AM_CXXFLAGS) $(CPPFLAGS_decklinkoutput)
17 libdecklinkoutput_plugin_la_LIBADD = $(LIBS_decklink) $(LIBDL) -lpthread
18 vout_LTLIBRARIES += libdecklinkoutput_plugin.la
19 endif
21 libglconv_cvpx_plugin_la_SOURCES = video_output/opengl/converter_cvpx.c \
22         video_output/opengl/converter.h
23 libglconv_cvpx_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
25 if HAVE_OSX
26 libvout_macosx_plugin_la_SOURCES = video_output/macosx.m $(OPENGL_COMMONSOURCES)
27 libvout_macosx_plugin_la_CFLAGS = $(AM_CFLAGS) $(OPENGL_COMMONCLFAGS) -DHAVE_GL_CORE_SYMBOLS
28 libvout_macosx_plugin_la_LIBADD = $(OPENGL_COMMONLIBS)
29 libvout_macosx_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)' \
30         -Wl,-framework,OpenGL,-framework,Cocoa
32 libcaopengllayer_plugin_la_SOURCES = video_output/caopengllayer.m $(OPENGL_COMMONSOURCES)
33 libcaopengllayer_plugin_la_CFLAGS = $(AM_CFLAGS) $(OPENGL_COMMONCLFAGS) -DHAVE_GL_CORE_SYMBOLS
34 libcaopengllayer_plugin_la_LIBADD = $(OPENGL_COMMONLIBS)
35 libcaopengllayer_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)' \
36         -Wl,-framework,OpenGL,-framework,Cocoa,-framework,QuartzCore
38 libglconv_cvpx_plugin_la_SOURCES += codec/vt_utils.c codec/vt_utils.h
39 libglconv_cvpx_plugin_la_LDFLAGS += -Wl,-framework,IOSurface \
40         -Wl,-framework,Foundation,-framework,CoreVideo,-framework,OpenGL
41 vout_LTLIBRARIES += libvout_macosx_plugin.la libcaopengllayer_plugin.la \
42         libglconv_cvpx_plugin.la
43 endif
44 if HAVE_IOS
45 libglconv_cvpx_plugin_la_CFLAGS = $(AM_CFLAGS) -DUSE_OPENGL_ES2
46 endif
48 libvout_ios_plugin_la_SOURCES = video_output/ios.m $(OPENGL_COMMONSOURCES)
49 libvout_ios_plugin_la_CFLAGS = $(AM_CFLAGS) $(OPENGL_COMMONCLFAGS) -DUSE_OPENGL_ES2
50 libvout_ios_plugin_la_LIBADD = $(OPENGL_COMMONLIBS)
51 libvout_ios_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)' \
52         -Wl,-framework,OpenGLES,-framework,QuartzCore,-framework,UIKit
53 if HAVE_IOS
54 vout_LTLIBRARIES += libvout_ios_plugin.la libglconv_cvpx_plugin.la
55 endif
56 if HAVE_TVOS
57 vout_LTLIBRARIES += libvout_ios_plugin.la
58 endif
60 ### OpenGL ###
61 libgles2_plugin_la_SOURCES = $(OPENGL_COMMONSOURCES) video_output/opengl/display.c
62 libgles2_plugin_la_CFLAGS = $(AM_CFLAGS) $(GLES2_CFLAGS) -DUSE_OPENGL_ES2 $(OPENGL_COMMONCLFAGS)
63 libgles2_plugin_la_LIBADD = $(GLES2_LIBS) $(LIBM) $(OPENGL_COMMONLIBS)
64 libgles2_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
66 EXTRA_LTLIBRARIES += libgles2_plugin.la
67 vout_LTLIBRARIES += $(LTLIBgles2)
69 libgl_plugin_la_SOURCES = $(OPENGL_COMMONSOURCES) video_output/opengl/display.c
70 libgl_plugin_la_CFLAGS = $(AM_CFLAGS) $(GL_CFLAGS) $(OPENGL_COMMONCLFAGS)
71 libgl_plugin_la_LIBADD = $(LIBM) $(OPENGL_COMMONLIBS)
72 if HAVE_WIN32
73 libgl_plugin_la_CFLAGS += -DHAVE_GL_CORE_SYMBOLS
74 libgl_plugin_la_LIBADD += $(GL_LIBS)
75 endif
77 libglconv_vaapi_wl_plugin_la_SOURCES = video_output/opengl/converter_vaapi.c \
78         video_output/opengl/converter.h \
79         hw/vaapi/vlc_vaapi.c hw/vaapi/vlc_vaapi.h
80 libglconv_vaapi_wl_plugin_la_CFLAGS = $(AM_CFLAGS) $(GL_CFLAGS) -DHAVE_VA_WL $(LIBVA_WL_CFLAGS)
81 libglconv_vaapi_wl_plugin_la_LIBADD = $(LIBVA_LIBS) $(LIBVA_EGL_LIBS) \
82         $(LIBVA_WL_LIBS)
84 libglconv_vaapi_x11_plugin_la_SOURCES = $(libglconv_vaapi_wl_plugin_la_SOURCES)
85 libglconv_vaapi_x11_plugin_la_CFLAGS = $(AM_CFLAGS) -DHAVE_VA_X11
86 libglconv_vaapi_x11_plugin_la_LIBADD = $(LIBVA_LIBS) $(LIBVA_EGL_LIBS) \
87         $(LIBVA_X11_LIBS) $(X_LIBS) $(X_PRE_LIBS) -lX11
89 libglconv_vaapi_drm_plugin_la_SOURCES = $(libglconv_vaapi_wl_plugin_la_SOURCES)
90 libglconv_vaapi_drm_plugin_la_CFLAGS = $(AM_CFLAGS) -DHAVE_VA_DRM
91 libglconv_vaapi_drm_plugin_la_LIBADD = $(LIBVA_LIBS) $(LIBVA_EGL_LIBS) \
92         $(LIBVA_DRM_LIBS)
94 libglconv_vdpau_plugin_la_SOURCES = video_output/opengl/converter_vdpau.c \
95         video_output/opengl/converter.h hw/vdpau/vlc_vdpau.h
96 libglconv_vdpau_plugin_la_CFLAGS = $(AM_CFLAGS) $(VDPAU_CFLAGS)
97 libglconv_vdpau_plugin_la_LIBADD = $(LIBDL) libvlc_vdpau.la $(X_LIBS) $(X_PRE_LIBS) -lX11
99 if HAVE_GL
100 vout_LTLIBRARIES += libgl_plugin.la
101 if HAVE_EGL
102 if HAVE_VAAPI
103 if HAVE_WAYLAND_EGL
104 if HAVE_VAAPI_WL
105 vout_LTLIBRARIES += libglconv_vaapi_wl_plugin.la
106 endif
107 endif
108 if HAVE_XCB
109 if HAVE_VAAPI_X11
110 vout_LTLIBRARIES += libglconv_vaapi_x11_plugin.la
111 endif
112 endif
113 if HAVE_VAAPI_DRM
114 vout_LTLIBRARIES += libglconv_vaapi_drm_plugin.la
115 endif
116 endif
117 endif # HAVE_EGL
119 if HAVE_VDPAU
120 vout_LTLIBRARIES += libglconv_vdpau_plugin.la
121 endif
122 endif # HAVE_GL
124 ### XCB ###
125 libvlc_xcb_events_la_SOURCES = \
126         video_output/xcb/events.c video_output/xcb/events.h
127 libvlc_xcb_events_la_CFLAGS = $(AM_CFLAGS) $(XCB_CFLAGS)
128 libvlc_xcb_events_la_LDFLAGS = \
129         -no-undefined \
130         -export-symbols-regex ^vlc_xcb_ \
131         -version-info 0:0:0
132 libvlc_xcb_events_la_LIBADD = $(XCB_LIBS) $(LTLIBVLCCORE)
134 libxcb_x11_plugin_la_SOURCES = \
135         video_output/xcb/pictures.c video_output/xcb/pictures.h \
136         video_output/xcb/x11.c
137 libxcb_x11_plugin_la_CFLAGS = $(AM_CFLAGS) \
138         $(XCB_CFLAGS) $(XCB_SHM_CFLAGS)
139 libxcb_x11_plugin_la_LIBADD = libvlc_xcb_events.la \
140         $(XCB_LIBS) $(XCB_SHM_LIBS)
142 libxcb_xv_plugin_la_SOURCES = \
143         video_output/xcb/pictures.c video_output/xcb/pictures.h \
144         video_output/xcb/xvideo.c
145 libxcb_xv_plugin_la_CFLAGS = $(AM_CFLAGS) \
146         $(XCB_CFLAGS) $(XCB_SHM_CFLAGS) $(XCB_XV_CFLAGS)
147 libxcb_xv_plugin_la_LIBADD = libvlc_xcb_events.la \
148         $(XCB_LIBS) $(XCB_SHM_LIBS) $(XCB_XV_LIBS)
150 libxcb_window_plugin_la_SOURCES =  \
151         video_output/xcb/keys.c \
152         video_output/xcb/keysym.h video_output/xcb/xcb_keysym.h \
153         video_output/xcb/window.c
154 libxcb_window_plugin_la_CFLAGS = $(AM_CFLAGS) \
155         $(CFLAGS_xcb_window) \
156         $(XPROTO_CFLAGS) $(XCB_CFLAGS) $(XCB_KEYSYMS_CFLAGS)
157 libxcb_window_plugin_la_LIBADD = $(XPROTO_LIBS) $(XCB_LIBS) $(XCB_KEYSYMS_LIBS)
159 libegl_x11_plugin_la_SOURCES = video_output/opengl/egl.c
160 libegl_x11_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DUSE_PLATFORM_X11=1
161 libegl_x11_plugin_la_CFLAGS = $(AM_CFLAGS) $(EGL_CFLAGS)
162 libegl_x11_plugin_la_LIBADD = $(EGL_LIBS) $(X_LIBS) $(X_PRE_LIBS) -lX11
164 libglx_plugin_la_SOURCES = video_output/glx.c
165 libglx_plugin_la_CFLAGS = $(AM_CFLAGS) $(GL_CFLAGS)
166 libglx_plugin_la_LIBADD = $(GL_LIBS) $(X_LIBS) $(X_PRE_LIBS) -lX11
168 if HAVE_XCB
169 pkglib_LTLIBRARIES += libvlc_xcb_events.la
170 vout_LTLIBRARIES += libxcb_x11_plugin.la libxcb_window_plugin.la
171 if HAVE_XCB_KEYSYMS
172 libxcb_window_plugin_la_CFLAGS += -DHAVE_XCB_KEYSYMS
173 endif
174 if HAVE_XCB_XVIDEO
175 vout_LTLIBRARIES += libxcb_xv_plugin.la
176 endif
177 if HAVE_EGL
178 vout_LTLIBRARIES += libegl_x11_plugin.la
179 endif
180 if HAVE_GL
181 vout_LTLIBRARIES += libglx_plugin.la
182 endif
183 endif
186 ### Wayland ###
187 libwl_shm_plugin_la_SOURCES = video_output/wayland/shm.c
188 nodist_libwl_shm_plugin_la_SOURCES = \
189         video_output/wayland/viewporter-client-protocol.h \
190         video_output/wayland/viewporter-protocol.c
191 libwl_shm_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
192         -I$(builddir)/video_output/wayland
193 libwl_shm_plugin_la_CFLAGS = $(WAYLAND_CLIENT_CFLAGS)
194 libwl_shm_plugin_la_LIBADD = $(WAYLAND_CLIENT_LIBS)
195 CLEANFILES += $(nodist_libwl_shm_plugin_la_SOURCES)
197 video_output/wayland/viewporter-client-protocol.h: \
198                 $(WAYLAND_PROTOCOLS)/stable/viewporter/viewporter.xml
199         $(AM_V_GEN)$(WAYLAND_SCANNER) client-header $< $@
201 video_output/wayland/viewporter-protocol.c: \
202                 $(WAYLAND_PROTOCOLS)/stable/viewporter/viewporter.xml
203         $(AM_V_GEN)$(WAYLAND_SCANNER) code $< $@
205 libwl_shell_plugin_la_SOURCES = video_output/wayland/shell.c
206 libwl_shell_plugin_la_CFLAGS = $(WAYLAND_CLIENT_CFLAGS)
207 libwl_shell_plugin_la_LIBADD = $(WAYLAND_CLIENT_LIBS) $(LIBPTHREAD)
209 libxdg_shell_plugin_la_SOURCES = video_output/wayland/xdg-shell.c
210 nodist_libxdg_shell_plugin_la_SOURCES = \
211         video_output/wayland/xdg-shell-client-protocol.h \
212         video_output/wayland/xdg-shell-protocol.c \
213         video_output/wayland/server-decoration-client-protocol.h \
214         video_output/wayland/server-decoration-protocol.c
215 libxdg_shell_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
216         -I$(builddir)/video_output/wayland
217 libxdg_shell_plugin_la_CFLAGS = $(WAYLAND_CLIENT_CFLAGS)
218 libxdg_shell_plugin_la_LIBADD = $(WAYLAND_CLIENT_LIBS) $(LIBPTHREAD)
220 video_output/wayland/xdg-shell-client-protocol.h: \
221                 $(WAYLAND_PROTOCOLS)/unstable/xdg-shell/xdg-shell-unstable-v5.xml
222         $(AM_V_GEN)$(WAYLAND_SCANNER) client-header $< $@
224 video_output/wayland/xdg-shell-protocol.c: \
225                 $(WAYLAND_PROTOCOLS)/unstable/xdg-shell/xdg-shell-unstable-v5.xml
226         $(AM_V_GEN)$(WAYLAND_SCANNER) code $< $@
228 video_output/wayland/server-decoration-client-protocol.h: \
229                 video_output/wayland/server-decoration.xml
230 video_output/wayland/server-decoration-protocol.c: \
231                 video_output/wayland/server-decoration.xml
232 EXTRA_DIST += video_output/wayland/server-decoration.xml
234 libegl_wl_plugin_la_SOURCES = video_output/opengl/egl.c
235 libegl_wl_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DUSE_PLATFORM_WAYLAND=1
236 libegl_wl_plugin_la_CFLAGS = $(AM_CFLAGS) $(EGL_CFLAGS) $(WAYLAND_EGL_CFLAGS)
237 libegl_wl_plugin_la_LIBADD = $(EGL_LIBS) $(WAYLAND_EGL_LIBS)
239 if HAVE_WAYLAND
240 BUILT_SOURCES += $(nodist_libwl_shm_plugin_la_SOURCES)
241 vout_LTLIBRARIES += libwl_shm_plugin.la
242 vout_LTLIBRARIES += libwl_shell_plugin.la
243 BUILT_SOURCES += $(nodist_libxdg_shell_plugin_la_SOURCES)
244 vout_LTLIBRARIES += libxdg_shell_plugin.la
245 if HAVE_WAYLAND_EGL
246 if HAVE_EGL
247 vout_LTLIBRARIES += libegl_wl_plugin.la
248 endif
249 endif
250 endif
253 ### Win32 ###
254 libdirect3d9_plugin_la_SOURCES = video_output/win32/direct3d9.c \
255         video_output/win32/common.c video_output/win32/common.h \
256         video_output/win32/events.c video_output/win32/events.h \
257         video_output/win32/sensors.cpp \
258         video_output/win32/builtin_shaders.h \
259         video_output/win32/win32touch.c video_output/win32/win32touch.h
260 libdirect3d9_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
261         -DMODULE_NAME_IS_direct3d9
262 libdirect3d9_plugin_la_LIBADD = libchroma_copy.la libd3d9_common.la -lgdi32 $(LIBCOM) -luuid
263 libdirect3d9_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
264 if HAVE_WIN32_DESKTOP
265 vout_LTLIBRARIES += $(LTLIBdirect3d9)
266 EXTRA_LTLIBRARIES += libdirect3d9_plugin.la
267 endif
269 libdirect3d11_plugin_la_SOURCES = video_output/win32/direct3d11.c \
270  video_output/win32/common.c video_output/win32/common.h
271 libdirect3d11_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
272  -DMODULE_NAME_IS_direct3d11
273 libdirect3d11_plugin_la_LIBADD = libchroma_copy.la libd3d11_common.la $(LIBCOM) -luuid
274 if !HAVE_WINSTORE
275 libdirect3d11_plugin_la_SOURCES += video_output/win32/events.c \
276  video_output/win32/events.h \
277  video_output/win32/sensors.cpp \
278  video_output/win32/win32touch.c video_output/win32/win32touch.h
279 libdirect3d11_plugin_la_LIBADD += -lgdi32
280 else
281 libdirect3d11_plugin_la_LIBADD += -ld3d11
282 libdirect3d11_plugin_la_LIBADD += -ld3dcompiler_47
283 endif
284 libdirect3d11_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
285 vout_LTLIBRARIES += $(LTLIBdirect3d11)
286 EXTRA_LTLIBRARIES += libdirect3d11_plugin.la
288 libdirectdraw_plugin_la_SOURCES = video_output/win32/directdraw.c \
289         video_output/win32/common.c video_output/win32/common.h \
290         video_output/win32/events.c video_output/win32/events.h \
291         video_output/win32/sensors.cpp \
292         video_output/win32/win32touch.c video_output/win32/win32touch.h
293 libdirectdraw_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
294         -DMODULE_NAME_IS_directdraw
295 libdirectdraw_plugin_la_LIBADD = libchroma_copy.la -luser32 -lgdi32 $(LIBCOM) -luuid
296 libdirectdraw_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
297 if HAVE_WIN32_DESKTOP
298 vout_LTLIBRARIES += $(LTLIBdirectdraw)
299 EXTRA_LTLIBRARIES += libdirectdraw_plugin.la
300 endif
302 libglwin32_plugin_la_SOURCES = $(OPENGL_COMMONSOURCES) \
303         video_output/win32/glwin32.c \
304         video_output/win32/common.c video_output/win32/common.h \
305         video_output/win32/events.c video_output/win32/events.h \
306         video_output/win32/sensors.cpp \
307         video_output/win32/win32touch.c video_output/win32/win32touch.h
308 libwgl_plugin_la_SOURCES = video_output/win32/wgl.c $(OPENGL_COMMONSOURCES)
310 libglwin32_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
311         -DMODULE_NAME_IS_glwin32
313 libglwin32_plugin_la_LIBADD = libchroma_copy.la -lopengl32 -lgdi32 $(LIBCOM) -luuid $(OPENGL_COMMONLIBS)
314 libwgl_plugin_la_LIBADD = -lopengl32 -lgdi32 $(OPENGL_COMMONLIBS)
316 libglwin32_plugin_la_CFLAGS = $(AM_CFLAGS) $(OPENGL_COMMONCLFAGS) -DHAVE_GL_CORE_SYMBOLS
317 libwgl_plugin_la_CFLAGS = $(AM_CFLAGS) $(OPENGL_COMMONCLFAGS)
319 libglwin32_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
320 libwgl_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
322 if HAVE_WIN32_DESKTOP
323 vout_LTLIBRARIES += $(LTLIBglwin32) $(LTLIBwgl)
324 EXTRA_LTLIBRARIES += libglwin32_plugin.la libwgl_plugin.la
325 endif
327 libwingdi_plugin_la_SOURCES = video_output/win32/wingdi.c \
328         video_output/win32/common.c video_output/win32/common.h \
329         video_output/win32/events.c video_output/win32/events.h \
330         video_output/win32/sensors.cpp \
331         video_output/win32/win32touch.c video_output/win32/win32touch.h
332 libwingdi_plugin_la_LIBADD = libchroma_copy.la -lgdi32 $(LIBCOM) -luuid
333 if HAVE_WIN32_DESKTOP
334 vout_LTLIBRARIES += libwingdi_plugin.la
335 endif
337 libegl_win32_plugin_la_SOURCES = video_output/opengl/egl.c
338 libegl_win32_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DUSE_PLATFORM_WIN32=1
339 libegl_win32_plugin_la_CFLAGS = $(AM_CFLAGS) $(EGL_CFLAGS)
340 libegl_win32_plugin_la_LIBADD = $(EGL_LIBS)
341 if HAVE_WIN32
342 if HAVE_EGL
343 vout_LTLIBRARIES += libegl_win32_plugin.la
344 endif
345 endif
347 libdrawable_plugin_la_SOURCES = video_output/drawable.c
348 if HAVE_WIN32
349 vout_LTLIBRARIES += libdrawable_plugin.la
350 endif
352 ### OS/2 ###
353 if HAVE_OS2
354 vout_LTLIBRARIES += libdrawable_plugin.la
355 endif
357 libkva_plugin_la_SOURCES = video_output/kva.c
358 libkva_plugin_la_LIBADD = $(KVA_LIBS)
359 if HAVE_KVA
360 vout_LTLIBRARIES += libkva_plugin.la
361 endif
364 ### Android ###
366 libegl_android_plugin_la_SOURCES = video_output/opengl/egl.c
367 libegl_android_plugin_la_CFLAGS = $(AM_CFLAGS) $(EGL_CFLAGS) -DUSE_PLATFORM_ANDROID=1
368 libegl_android_plugin_la_LIBADD = $(EGL_LIBS)
370 libandroid_window_plugin_la_SOURCES = video_output/android/window.c \
371         video_output/android/utils.c video_output/android/utils.h
372 libandroid_window_plugin_la_CFLAGS = $(AM_CFLAGS)
373 libandroid_window_plugin_la_LIBADD = $(LIBDL)
375 libandroid_display_plugin_la_SOURCES = video_output/android/display.c \
376         video_output/android/display.h \
377         video_output/android/utils.c video_output/android/utils.h
378 libandroid_display_plugin_la_CFLAGS = $(AM_CFLAGS)
379 libandroid_display_plugin_la_LIBADD = $(LIBDL)
381 libglconv_android_plugin_la_SOURCES = video_output/opengl/converter_android.c \
382         video_output/opengl/converter.h
383 libglconv_android_plugin_la_CFLAGS = $(AM_CFLAGS) -DUSE_OPENGL_ES2
385 if HAVE_ANDROID
386 vout_LTLIBRARIES += libandroid_window_plugin.la libandroid_display_plugin.la
387 if HAVE_EGL
388 vout_LTLIBRARIES += libegl_android_plugin.la libglconv_android_plugin.la
389 endif
390 endif
393 ### FrameBuffer ###
395 libfb_plugin_la_SOURCES = video_output/fb.c
396 libfb_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
397 EXTRA_LTLIBRARIES += libfb_plugin.la
398 vout_LTLIBRARIES += $(LTLIBfb)
401 ### ASCII Art ###
402 libaa_plugin_la_SOURCES = video_output/aa.c
403 libaa_plugin_la_LIBADD = libevent_thread.la -laa
404 if !HAVE_WIN32
405 libaa_plugin_la_LIBADD += $(X_LIBS) $(X_PRE_LIBS) -lX11
406 endif
407 libaa_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
408 EXTRA_LTLIBRARIES += libaa_plugin.la
409 vout_LTLIBRARIES += $(LTLIBaa)
412 ### Coloured ASCII art ###
413 libcaca_plugin_la_SOURCES = video_output/caca.c
414 libcaca_plugin_la_CFLAGS = $(AM_CFLAGS) $(CACA_CFLAGS)
415 libcaca_plugin_la_LIBADD = libevent_thread.la $(CACA_LIBS)
416 if !HAVE_WIN32
417 if !HAVE_DARWIN
418 libcaca_plugin_la_LIBADD += $(X_LIBS) $(X_PRE_LIBS) -lX11
419 endif
420 endif
421 libcaca_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
422 EXTRA_LTLIBRARIES += libcaca_plugin.la
423 vout_LTLIBRARIES += $(LTLIBcaca)
426 ### EFL Evas video output ###
427 libevas_plugin_la_SOURCES = video_output/evas.c
428 libevas_plugin_la_CFLAGS = $(AM_CFLAGS) $(EVAS_CFLAGS)
429 libevas_plugin_la_LIBADD = $(EVAS_LIBS)
430 libevas_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
431 if HAVE_EVAS
432 vout_LTLIBRARIES += libevas_plugin.la
433 endif
436 ### Common ###
438 libflaschen_plugin_la_SOURCES = video_output/flaschen.c
439 libflaschen_plugin_la_LIBADD = $(SOCKET_LIBS)
441 libvdummy_plugin_la_SOURCES = video_output/vdummy.c
442 libvmem_plugin_la_SOURCES = video_output/vmem.c
443 libyuv_plugin_la_SOURCES = video_output/yuv.c
445 vout_LTLIBRARIES += \
446         libflaschen_plugin.la \
447         libvdummy_plugin.la \
448         libvmem_plugin.la \
449         libyuv_plugin.la
451 libevent_thread_la_SOURCES = \
452         video_output/event_thread.c video_output/event_thread.h
453 libevent_thread_la_LDFLAGS = -static
454 noinst_LTLIBRARIES += libevent_thread.la