Makefile.am 16.4 KB
Newer Older
1 2
voutdir = $(pluginsdir)/video_output
vout_LTLIBRARIES =
Pierre d'Herbemont's avatar
Pierre d'Herbemont committed
3

4
EXTRA_DIST += video_output/README
5 6

OPENGL_COMMONSOURCES = video_output/opengl/vout_helper.c \
7
	video_output/opengl/vout_helper.h video_output/opengl/converter.h \
8 9
	video_output/opengl/internal.h video_output/opengl/fragment_shaders.c \
	video_output/opengl/converter_sw.c
10

11 12 13
OPENGL_COMMONCLFAGS = $(LIBPLACEBO_CFLAGS)
OPENGL_COMMONLIBS = $(LIBPLACEBO_LIBS)

Rafaël Carré's avatar
Rafaël Carré committed
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
Rafaël Carré's avatar
Rafaël Carré committed
19 20
endif

21 22
libglconv_cvpx_plugin_la_SOURCES = video_output/opengl/converter_cvpx.c \
	video_output/opengl/converter.h
23
libglconv_cvpx_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
24

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
31

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 37 38
	-Wl,-framework,OpenGL,-framework,Cocoa,-framework,QuartzCore

libglconv_cvpx_plugin_la_SOURCES += codec/vt_utils.c codec/vt_utils.h
39 40
libglconv_cvpx_plugin_la_LDFLAGS += -Wl,-framework,IOSurface \
	-Wl,-framework,Foundation,-framework,CoreVideo,-framework,OpenGL
41 42 43 44 45
vout_LTLIBRARIES += libvout_macosx_plugin.la libcaopengllayer_plugin.la \
	libglconv_cvpx_plugin.la
endif
if HAVE_IOS
libglconv_cvpx_plugin_la_CFLAGS = $(AM_CFLAGS) -DUSE_OPENGL_ES2
46 47
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 56
endif
if HAVE_TVOS
57
vout_LTLIBRARIES += libvout_ios_plugin.la
58 59
endif

60
### OpenGL ###
61
libgles2_plugin_la_SOURCES = $(OPENGL_COMMONSOURCES) video_output/opengl/display.c
62 63
libgles2_plugin_la_CFLAGS = $(AM_CFLAGS) $(GLES2_CFLAGS) -DUSE_OPENGL_ES2 $(OPENGL_COMMONCLFAGS)
libgles2_plugin_la_LIBADD = $(GLES2_LIBS) $(LIBM) $(OPENGL_COMMONLIBS)
64
libgles2_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
65

66 67
EXTRA_LTLIBRARIES += libgles2_plugin.la
vout_LTLIBRARIES += $(LTLIBgles2)
68

69
libgl_plugin_la_SOURCES = $(OPENGL_COMMONSOURCES) video_output/opengl/display.c
70
libgl_plugin_la_CFLAGS = $(AM_CFLAGS) $(GL_CFLAGS) $(OPENGL_COMMONCLFAGS)
71 72 73 74 75
libgl_plugin_la_LIBADD = $(LIBM) $(OPENGL_COMMONLIBS)
if HAVE_WIN32
libgl_plugin_la_CFLAGS += -DHAVE_GL_CORE_SYMBOLS
libgl_plugin_la_LIBADD += $(GL_LIBS)
endif
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93

libglconv_vaapi_wl_plugin_la_SOURCES = video_output/opengl/converter_vaapi.c \
	video_output/opengl/converter.h \
	hw/vaapi/vlc_vaapi.c hw/vaapi/vlc_vaapi.h
libglconv_vaapi_wl_plugin_la_CFLAGS = $(AM_CFLAGS) $(GL_CFLAGS) -DHAVE_VA_WL $(LIBVA_WL_CFLAGS)
libglconv_vaapi_wl_plugin_la_LIBADD = $(LIBVA_LIBS) $(LIBVA_EGL_LIBS) \
	$(LIBVA_WL_LIBS)

libglconv_vaapi_x11_plugin_la_SOURCES = $(libglconv_vaapi_wl_plugin_la_SOURCES)
libglconv_vaapi_x11_plugin_la_CFLAGS = $(AM_CFLAGS) -DHAVE_VA_X11
libglconv_vaapi_x11_plugin_la_LIBADD = $(LIBVA_LIBS) $(LIBVA_EGL_LIBS) \
	$(LIBVA_X11_LIBS) $(X_LIBS) $(X_PRE_LIBS) -lX11

libglconv_vaapi_drm_plugin_la_SOURCES = $(libglconv_vaapi_wl_plugin_la_SOURCES)
libglconv_vaapi_drm_plugin_la_CFLAGS = $(AM_CFLAGS) -DHAVE_VA_DRM
libglconv_vaapi_drm_plugin_la_LIBADD = $(LIBVA_LIBS) $(LIBVA_EGL_LIBS) \
	$(LIBVA_DRM_LIBS)

94 95 96 97 98
libglconv_vdpau_plugin_la_SOURCES = video_output/opengl/converter_vdpau.c \
	video_output/opengl/converter.h hw/vdpau/vlc_vdpau.h
libglconv_vdpau_plugin_la_CFLAGS = $(AM_CFLAGS) $(VDPAU_CFLAGS)
libglconv_vdpau_plugin_la_LIBADD = $(LIBDL) libvlc_vdpau.la $(X_LIBS) $(X_PRE_LIBS) -lX11

99 100
if HAVE_GL
vout_LTLIBRARIES += libgl_plugin.la
101 102 103 104 105
if HAVE_EGL
if HAVE_VAAPI
if HAVE_WAYLAND_EGL
if HAVE_VAAPI_WL
vout_LTLIBRARIES += libglconv_vaapi_wl_plugin.la
106
endif
107 108 109 110 111 112 113 114 115 116 117
endif
if HAVE_XCB
if HAVE_VAAPI_X11
vout_LTLIBRARIES += libglconv_vaapi_x11_plugin.la
endif
endif
if HAVE_VAAPI_DRM
vout_LTLIBRARIES += libglconv_vaapi_drm_plugin.la
endif
endif
endif # HAVE_EGL
118 119 120 121

if HAVE_VDPAU
vout_LTLIBRARIES += libglconv_vdpau_plugin.la
endif
122
endif # HAVE_GL
123

Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
124
### XCB ###
125 126
libvlc_xcb_events_la_SOURCES = \
	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 131 132
	-export-symbols-regex ^vlc_xcb_ \
	-version-info 0:0:0
libvlc_xcb_events_la_LIBADD = $(XCB_LIBS) $(LTLIBVLCCORE)
133

134
libxcb_x11_plugin_la_SOURCES = \
135 136
	video_output/xcb/pictures.c video_output/xcb/pictures.h \
	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)
141

142
libxcb_xv_plugin_la_SOURCES = \
143 144
	video_output/xcb/pictures.c video_output/xcb/pictures.h \
	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)
149

150 151 152 153
libxcb_window_plugin_la_SOURCES =  \
	video_output/xcb/keys.c \
	video_output/xcb/keysym.h video_output/xcb/xcb_keysym.h \
	video_output/xcb/window.c
154
libxcb_window_plugin_la_CFLAGS = $(AM_CFLAGS) \
155
	$(CFLAGS_xcb_window) \
156 157
	$(XPROTO_CFLAGS) $(XCB_CFLAGS) $(XCB_KEYSYMS_CFLAGS)
libxcb_window_plugin_la_LIBADD = $(XPROTO_LIBS) $(XCB_LIBS) $(XCB_KEYSYMS_LIBS)
158

159
libegl_x11_plugin_la_SOURCES = video_output/opengl/egl.c
160 161 162 163
libegl_x11_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DUSE_PLATFORM_X11=1
libegl_x11_plugin_la_CFLAGS = $(AM_CFLAGS) $(EGL_CFLAGS)
libegl_x11_plugin_la_LIBADD = $(EGL_LIBS) $(X_LIBS) $(X_PRE_LIBS) -lX11

164
libglx_plugin_la_SOURCES = video_output/glx.c
165 166 167
libglx_plugin_la_CFLAGS = $(AM_CFLAGS) $(GL_CFLAGS)
libglx_plugin_la_LIBADD = $(GL_LIBS) $(X_LIBS) $(X_PRE_LIBS) -lX11

168
if HAVE_XCB
169
pkglib_LTLIBRARIES += libvlc_xcb_events.la
170 171 172
vout_LTLIBRARIES += libxcb_x11_plugin.la libxcb_window_plugin.la
if HAVE_XCB_KEYSYMS
libxcb_window_plugin_la_CFLAGS += -DHAVE_XCB_KEYSYMS
173
endif
174 175 176
if HAVE_XCB_XVIDEO
vout_LTLIBRARIES += libxcb_xv_plugin.la
endif
177 178 179
if HAVE_EGL
vout_LTLIBRARIES += libegl_x11_plugin.la
endif
180
if HAVE_GL
181
vout_LTLIBRARIES += libglx_plugin.la
182 183 184
endif
endif

185

186
### Wayland ###
187
libwl_shm_plugin_la_SOURCES = video_output/wayland/shm.c
188 189 190
nodist_libwl_shm_plugin_la_SOURCES = \
	video_output/wayland/viewporter-client-protocol.h \
	video_output/wayland/viewporter-protocol.c
191 192
libwl_shm_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
	-I$(builddir)/video_output/wayland
193 194
libwl_shm_plugin_la_CFLAGS = $(WAYLAND_CLIENT_CFLAGS)
libwl_shm_plugin_la_LIBADD = $(WAYLAND_CLIENT_LIBS)
195
CLEANFILES += $(nodist_libwl_shm_plugin_la_SOURCES)
196

197 198 199 200 201 202 203 204
video_output/wayland/viewporter-client-protocol.h: \
		$(WAYLAND_PROTOCOLS)/stable/viewporter/viewporter.xml
	$(AM_V_GEN)$(WAYLAND_SCANNER) client-header $< $@

video_output/wayland/viewporter-protocol.c: \
		$(WAYLAND_PROTOCOLS)/stable/viewporter/viewporter.xml
	$(AM_V_GEN)$(WAYLAND_SCANNER) code $< $@

205 206 207
libwl_shell_plugin_la_SOURCES = video_output/wayland/shell.c
libwl_shell_plugin_la_CFLAGS = $(WAYLAND_CLIENT_CFLAGS)
libwl_shell_plugin_la_LIBADD = $(WAYLAND_CLIENT_LIBS) $(LIBPTHREAD)
208

209 210 211
libxdg_shell_plugin_la_SOURCES = video_output/wayland/xdg-shell.c
nodist_libxdg_shell_plugin_la_SOURCES = \
	video_output/wayland/xdg-shell-client-protocol.h \
212 213 214
	video_output/wayland/xdg-shell-protocol.c \
	video_output/wayland/server-decoration-client-protocol.h \
	video_output/wayland/server-decoration-protocol.c
215 216 217 218 219 220 221 222 223 224 225 226 227
libxdg_shell_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
	-I$(builddir)/video_output/wayland
libxdg_shell_plugin_la_CFLAGS = $(WAYLAND_CLIENT_CFLAGS)
libxdg_shell_plugin_la_LIBADD = $(WAYLAND_CLIENT_LIBS) $(LIBPTHREAD)

video_output/wayland/xdg-shell-client-protocol.h: \
		$(WAYLAND_PROTOCOLS)/unstable/xdg-shell/xdg-shell-unstable-v5.xml
	$(AM_V_GEN)$(WAYLAND_SCANNER) client-header $< $@

video_output/wayland/xdg-shell-protocol.c: \
		$(WAYLAND_PROTOCOLS)/unstable/xdg-shell/xdg-shell-unstable-v5.xml
	$(AM_V_GEN)$(WAYLAND_SCANNER) code $< $@

228 229 230 231 232 233
video_output/wayland/server-decoration-client-protocol.h: \
		video_output/wayland/server-decoration.xml
video_output/wayland/server-decoration-protocol.c: \
		video_output/wayland/server-decoration.xml
EXTRA_DIST += video_output/wayland/server-decoration.xml

234
libegl_wl_plugin_la_SOURCES = video_output/opengl/egl.c
235 236 237
libegl_wl_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DUSE_PLATFORM_WAYLAND=1
libegl_wl_plugin_la_CFLAGS = $(AM_CFLAGS) $(EGL_CFLAGS) $(WAYLAND_EGL_CFLAGS)
libegl_wl_plugin_la_LIBADD = $(EGL_LIBS) $(WAYLAND_EGL_LIBS)
238 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 244
BUILT_SOURCES += $(nodist_libxdg_shell_plugin_la_SOURCES)
vout_LTLIBRARIES += libxdg_shell_plugin.la
245
if HAVE_WAYLAND_EGL
246 247 248
if HAVE_EGL
vout_LTLIBRARIES += libegl_wl_plugin.la
endif
249 250
endif
endif
251

252

Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
253
### Win32 ###
254 255 256
libdirect3d9_plugin_la_SOURCES = video_output/win32/direct3d9.c \
	video_output/win32/common.c video_output/win32/common.h \
	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 261
libdirect3d9_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
	-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
268

269
libdirect3d11_plugin_la_SOURCES = video_output/win32/direct3d11.c \
270
 video_output/win32/common.c video_output/win32/common.h
Martell Malone's avatar
Martell Malone committed
271 272
libdirect3d11_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
 -DMODULE_NAME_IS_direct3d11
273
libdirect3d11_plugin_la_LIBADD = libchroma_copy.la libd3d11_common.la $(LIBCOM) -luuid
Martell Malone's avatar
Martell Malone committed
274
if !HAVE_WINSTORE
275 276
libdirect3d11_plugin_la_SOURCES += video_output/win32/events.c \
 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
Martell Malone's avatar
Martell Malone committed
280
else
281
libdirect3d11_plugin_la_LIBADD += -ld3d11
282
libdirect3d11_plugin_la_LIBADD += -ld3dcompiler_47
Martell Malone's avatar
Martell Malone committed
283 284 285 286 287
endif
libdirect3d11_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
vout_LTLIBRARIES += $(LTLIBdirect3d11)
EXTRA_LTLIBRARIES += libdirect3d11_plugin.la

288 289 290
libdirectdraw_plugin_la_SOURCES = video_output/win32/directdraw.c \
	video_output/win32/common.c video_output/win32/common.h \
	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 294
libdirectdraw_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
	-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 299
vout_LTLIBRARIES += $(LTLIBdirectdraw)
EXTRA_LTLIBRARIES += libdirectdraw_plugin.la
300 301
endif

302
libglwin32_plugin_la_SOURCES = $(OPENGL_COMMONSOURCES) \
303
	video_output/win32/glwin32.c \
304 305
	video_output/win32/common.c video_output/win32/common.h \
	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)
309

310 311
libglwin32_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
	-DMODULE_NAME_IS_glwin32
312

313
libglwin32_plugin_la_LIBADD = libchroma_copy.la -lopengl32 -lgdi32 $(LIBCOM) -luuid $(OPENGL_COMMONLIBS)
314 315
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)
318

319 320
libglwin32_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
libwgl_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
321

322
if HAVE_WIN32_DESKTOP
323 324
vout_LTLIBRARIES += $(LTLIBglwin32) $(LTLIBwgl)
EXTRA_LTLIBRARIES += libglwin32_plugin.la libwgl_plugin.la
325
endif
326

327 328 329
libwingdi_plugin_la_SOURCES = video_output/win32/wingdi.c \
	video_output/win32/common.c video_output/win32/common.h \
	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 336
endif

337 338 339 340 341
libwinhibit_plugin_la_SOURCES = video_output/win32/inhibit.c
if HAVE_WIN32_DESKTOP
vout_LTLIBRARIES += libwinhibit_plugin.la
endif

342
libegl_win32_plugin_la_SOURCES = video_output/opengl/egl.c
343 344 345 346 347 348 349 350 351
libegl_win32_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DUSE_PLATFORM_WIN32=1
libegl_win32_plugin_la_CFLAGS = $(AM_CFLAGS) $(EGL_CFLAGS)
libegl_win32_plugin_la_LIBADD = $(EGL_LIBS)
if HAVE_WIN32
if HAVE_EGL
vout_LTLIBRARIES += libegl_win32_plugin.la
endif
endif

352
libdrawable_plugin_la_SOURCES = video_output/drawable.c
353
if HAVE_WIN32
354
vout_LTLIBRARIES += libdrawable_plugin.la
355
endif
356

357 358
### OS/2 ###
if HAVE_OS2
359
vout_LTLIBRARIES += libdrawable_plugin.la
360 361
endif

362
libkva_plugin_la_SOURCES = video_output/kva.c
363
libkva_plugin_la_LIBADD = $(KVA_LIBS)
364
if HAVE_KVA
365
vout_LTLIBRARIES += libkva_plugin.la
366 367
endif

368

369 370
### Android ###

371
libegl_android_plugin_la_SOURCES = video_output/opengl/egl.c
372 373 374
libegl_android_plugin_la_CFLAGS = $(AM_CFLAGS) $(EGL_CFLAGS) -DUSE_PLATFORM_ANDROID=1
libegl_android_plugin_la_LIBADD = $(EGL_LIBS)

375
libandroid_window_plugin_la_SOURCES = video_output/android/window.c \
376
	video_output/android/utils.c video_output/android/utils.h
377 378
libandroid_window_plugin_la_CFLAGS = $(AM_CFLAGS)
libandroid_window_plugin_la_LIBADD = $(LIBDL)
379

380 381 382 383 384
libandroid_display_plugin_la_SOURCES = video_output/android/display.c \
	video_output/android/display.h \
	video_output/android/utils.c video_output/android/utils.h
libandroid_display_plugin_la_CFLAGS = $(AM_CFLAGS)
libandroid_display_plugin_la_LIBADD = $(LIBDL)
385

386 387 388 389
libglconv_android_plugin_la_SOURCES = video_output/opengl/converter_android.c \
	video_output/opengl/converter.h
libglconv_android_plugin_la_CFLAGS = $(AM_CFLAGS) -DUSE_OPENGL_ES2

390
if HAVE_ANDROID
391
vout_LTLIBRARIES += libandroid_window_plugin.la libandroid_display_plugin.la
392
if HAVE_EGL
393
vout_LTLIBRARIES += libegl_android_plugin.la libglconv_android_plugin.la
394
endif
395 396
endif

397 398 399

### FrameBuffer ###

400
libfb_plugin_la_SOURCES = video_output/fb.c
401 402 403 404 405 406
libfb_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
EXTRA_LTLIBRARIES += libfb_plugin.la
vout_LTLIBRARIES += $(LTLIBfb)


### ASCII Art ###
407
libaa_plugin_la_SOURCES = video_output/aa.c
408
libaa_plugin_la_LIBADD = libevent_thread.la -laa
409 410 411 412 413 414 415 416
if !HAVE_WIN32
libaa_plugin_la_LIBADD += $(X_LIBS) $(X_PRE_LIBS) -lX11
endif
libaa_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
EXTRA_LTLIBRARIES += libaa_plugin.la
vout_LTLIBRARIES += $(LTLIBaa)


417
### Coloured ASCII art ###
418
libcaca_plugin_la_SOURCES = video_output/caca.c
419
libcaca_plugin_la_CFLAGS = $(AM_CFLAGS) $(CACA_CFLAGS)
420
libcaca_plugin_la_LIBADD = libevent_thread.la $(CACA_LIBS)
421
if !HAVE_WIN32
422
if !HAVE_DARWIN
423 424
libcaca_plugin_la_LIBADD += $(X_LIBS) $(X_PRE_LIBS) -lX11
endif
425
endif
426
libcaca_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
427
EXTRA_LTLIBRARIES += libcaca_plugin.la
428
vout_LTLIBRARIES += $(LTLIBcaca)
429

430

431 432 433 434 435 436 437 438 439 440
### EFL Evas video output ###
libevas_plugin_la_SOURCES = video_output/evas.c
libevas_plugin_la_CFLAGS = $(AM_CFLAGS) $(EVAS_CFLAGS)
libevas_plugin_la_LIBADD = $(EVAS_LIBS)
libevas_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
if HAVE_EVAS
vout_LTLIBRARIES += libevas_plugin.la
endif


441
### Common ###
442

443
libflaschen_plugin_la_SOURCES = video_output/flaschen.c
444 445
libflaschen_plugin_la_LIBADD = $(SOCKET_LIBS)

446 447 448
libvdummy_plugin_la_SOURCES = video_output/vdummy.c
libvmem_plugin_la_SOURCES = video_output/vmem.c
libyuv_plugin_la_SOURCES = video_output/yuv.c
449

450
vout_LTLIBRARIES += \
451
	libflaschen_plugin.la \
452
	libvdummy_plugin.la \
453
	libvmem_plugin.la \
454
	libyuv_plugin.la
455 456 457

libevent_thread_la_SOURCES = \
	video_output/event_thread.c video_output/event_thread.h
458
libevent_thread_la_LDFLAGS = -static
459
noinst_LTLIBRARIES += libevent_thread.la