Makefile.am 16.9 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

Rafaël Carré's avatar
Rafaël Carré committed
11
if HAVE_DECKLINK
12
libdecklinkoutput_plugin_la_SOURCES = video_output/decklink.cpp
13
libdecklinkoutput_plugin_la_CXXFLAGS = $(AM_CXXFLAGS) $(CPPFLAGS_decklinkoutput)
14
libdecklinkoutput_plugin_la_LIBADD = $(LIBS_decklink) $(LIBDL) -lpthread
15
vout_LTLIBRARIES += libdecklinkoutput_plugin.la
Rafaël Carré's avatar
Rafaël Carré committed
16 17
endif

18 19 20
libglconv_cvpx_plugin_la_SOURCES = video_output/opengl/converter_cvpx.c \
	video_output/opengl/converter.h

21
if HAVE_OSX
22
libvout_macosx_plugin_la_SOURCES = video_output/macosx.m $(OPENGL_COMMONSOURCES)
23
libvout_macosx_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)' \
24
	-Wl,-framework,OpenGL,-framework,Cocoa
25

26 27
libcaopengllayer_plugin_la_SOURCES = video_output/caopengllayer.m $(OPENGL_COMMONSOURCES)
libcaopengllayer_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)' \
28 29 30 31 32 33 34 35 36
	-Wl,-framework,OpenGL,-framework,Cocoa,-framework,QuartzCore

libglconv_cvpx_plugin_la_SOURCES += codec/vt_utils.c codec/vt_utils.h
libglconv_cvpx_plugin_la_LDFLAGS = -Wl,-framework,IOSurface -Wl,-framework,CoreVideo
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
37 38
endif

39 40
libvout_ios_plugin_la_SOURCES = video_output/ios.m $(OPENGL_COMMONSOURCES)
libvout_ios_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)' \
41
	-Wl,-framework,OpenGLES,-framework,QuartzCore,-framework,UIKit
42
if HAVE_IOS
43
vout_LTLIBRARIES += libvout_ios_plugin.la libglconv_cvpx_plugin.la
44 45
endif
if HAVE_TVOS
46
vout_LTLIBRARIES += libvout_ios_plugin.la
47 48
endif

49
### OpenGL ###
50
libgles2_plugin_la_SOURCES = $(OPENGL_COMMONSOURCES) video_output/opengl/display.c
51 52 53
libgles2_plugin_la_CFLAGS = $(AM_CFLAGS) $(GLES2_CFLAGS) -DUSE_OPENGL_ES2
libgles2_plugin_la_LIBADD = $(GLES2_LIBS) $(LIBM)
libgles2_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
54

55 56
EXTRA_LTLIBRARIES += libgles2_plugin.la
vout_LTLIBRARIES += $(LTLIBgles2)
57

58
libgl_plugin_la_SOURCES = $(OPENGL_COMMONSOURCES) video_output/opengl/display.c
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
libgl_plugin_la_CFLAGS = $(AM_CFLAGS) $(GL_CFLAGS)
libgl_plugin_la_LIBADD = $(GL_LIBS) $(LIBM)

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)

79 80 81 82 83
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

84 85
if HAVE_GL
vout_LTLIBRARIES += libgl_plugin.la
86 87 88 89 90
if HAVE_EGL
if HAVE_VAAPI
if HAVE_WAYLAND_EGL
if HAVE_VAAPI_WL
vout_LTLIBRARIES += libglconv_vaapi_wl_plugin.la
91
endif
92 93 94 95 96 97 98 99 100 101 102
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
103 104 105 106

if HAVE_VDPAU
vout_LTLIBRARIES += libglconv_vdpau_plugin.la
endif
107
endif # HAVE_GL
108

Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
109
### XCB ###
110 111
libvlc_xcb_events_la_SOURCES = \
	video_output/xcb/events.c video_output/xcb/events.h
112 113
libvlc_xcb_events_la_CPPFLAGS = -DMODULE_STRING=\"xcb\"
libvlc_xcb_events_la_CFLAGS = $(AM_CFLAGS) $(XCB_CFLAGS)
114 115 116 117 118
libvlc_xcb_events_la_LDFLAGS = \
	-no-undefined \
	-export-symbols-regex ^vlc_xcb_ \
	-version-info 0:0:0
libvlc_xcb_events_la_LIBADD = $(XCB_LIBS) $(LTLIBVLCCORE)
119

120
libxcb_x11_plugin_la_SOURCES = \
121 122
	video_output/xcb/pictures.c video_output/xcb/pictures.h \
	video_output/xcb/x11.c
123
libxcb_x11_plugin_la_CFLAGS = $(AM_CFLAGS) \
124
	$(XCB_CFLAGS) $(XCB_SHM_CFLAGS)
125
libxcb_x11_plugin_la_LIBADD = libvlc_xcb_events.la \
126
	$(XCB_LIBS) $(XCB_SHM_LIBS)
127

128
libxcb_xv_plugin_la_SOURCES = \
129 130
	video_output/xcb/pictures.c video_output/xcb/pictures.h \
	video_output/xcb/xvideo.c
131
libxcb_xv_plugin_la_CFLAGS = $(AM_CFLAGS) \
132
	$(XCB_CFLAGS) $(XCB_SHM_CFLAGS) $(XCB_XV_CFLAGS)
133
libxcb_xv_plugin_la_LIBADD = libvlc_xcb_events.la \
134
	$(XCB_LIBS) $(XCB_SHM_LIBS) $(XCB_XV_LIBS)
135

136 137 138 139
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
140
libxcb_window_plugin_la_CFLAGS = $(AM_CFLAGS) \
141
	$(CFLAGS_xcb_window) \
142 143
	$(XPROTO_CFLAGS) $(XCB_CFLAGS) $(XCB_KEYSYMS_CFLAGS)
libxcb_window_plugin_la_LIBADD = $(XPROTO_LIBS) $(XCB_LIBS) $(XCB_KEYSYMS_LIBS)
144

145
libegl_x11_plugin_la_SOURCES = video_output/opengl/egl.c
146 147 148 149
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

150
libglx_plugin_la_SOURCES = video_output/glx.c
151 152 153
libglx_plugin_la_CFLAGS = $(AM_CFLAGS) $(GL_CFLAGS)
libglx_plugin_la_LIBADD = $(GL_LIBS) $(X_LIBS) $(X_PRE_LIBS) -lX11

154
if HAVE_XCB
155
pkglib_LTLIBRARIES += libvlc_xcb_events.la
156 157 158
vout_LTLIBRARIES += libxcb_x11_plugin.la libxcb_window_plugin.la
if HAVE_XCB_KEYSYMS
libxcb_window_plugin_la_CFLAGS += -DHAVE_XCB_KEYSYMS
159
endif
160 161 162
if HAVE_XCB_XVIDEO
vout_LTLIBRARIES += libxcb_xv_plugin.la
endif
163 164 165
if HAVE_EGL
vout_LTLIBRARIES += libegl_x11_plugin.la
endif
166
if HAVE_GL
167
vout_LTLIBRARIES += libglx_plugin.la
168 169 170
endif
endif

171

172
### Wayland ###
173
libwl_shm_plugin_la_SOURCES = video_output/wayland/shm.c
174 175 176
nodist_libwl_shm_plugin_la_SOURCES = \
	video_output/wayland/viewporter-client-protocol.h \
	video_output/wayland/viewporter-protocol.c
177 178
libwl_shm_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
	-I$(builddir)/video_output/wayland
179 180
libwl_shm_plugin_la_CFLAGS = $(WAYLAND_CLIENT_CFLAGS)
libwl_shm_plugin_la_LIBADD = $(WAYLAND_CLIENT_LIBS)
181
CLEANFILES += $(nodist_libwl_shm_plugin_la_SOURCES)
182

183 184 185 186 187 188 189 190
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 $< $@

191 192 193
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)
194

195 196 197
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 \
198 199 200
	video_output/wayland/xdg-shell-protocol.c \
	video_output/wayland/server-decoration-client-protocol.h \
	video_output/wayland/server-decoration-protocol.c
201 202 203 204 205 206 207 208 209 210 211 212 213
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 $< $@

214 215 216 217 218 219
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

220
libegl_wl_plugin_la_SOURCES = video_output/opengl/egl.c
221 222 223
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)
224 225

if HAVE_WAYLAND
226
BUILT_SOURCES += $(nodist_libwl_shm_plugin_la_SOURCES)
227
vout_LTLIBRARIES += libwl_shm_plugin.la
228
vout_LTLIBRARIES += libwl_shell_plugin.la
229 230
BUILT_SOURCES += $(nodist_libxdg_shell_plugin_la_SOURCES)
vout_LTLIBRARIES += libxdg_shell_plugin.la
231
if HAVE_WAYLAND_EGL
232 233 234
if HAVE_EGL
vout_LTLIBRARIES += libegl_wl_plugin.la
endif
235 236
endif
endif
237

238

Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
239
### Win32 ###
240
libdirect3d9_plugin_la_SOURCES = video_output/win32/direct3d9.c \
241
	video_chroma/copy.c video_chroma/copy.h \
242 243
	video_output/win32/common.c video_output/win32/common.h \
	video_output/win32/events.c video_output/win32/events.h \
244
	video_output/win32/sensors.cpp \
245
	video_output/win32/builtin_shaders.h \
246 247
	video_output/win32/win32touch.c video_output/win32/win32touch.h \
	video_chroma/d3d9_fmt.h
248 249
libdirect3d9_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
	-DMODULE_NAME_IS_direct3d9
250
libdirect3d9_plugin_la_LIBADD = -lgdi32 $(LIBCOM) -luuid
251
libdirect3d9_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
252
libdirect3d9_deinterlace_plugin_la_SOURCES = video_output/win32/dxva2_deinterlace.c \
253
        video_filter/deinterlace/common.c video_filter/deinterlace/common.h \
254 255 256
        video_chroma/d3d9_fmt.h
libdirect3d9_deinterlace_plugin_la_LIBADD = $(LIBCOM)
libdirect3d9_deinterlace_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
257 258 259
libdirect3d9_adjust_plugin_la_SOURCES = video_output/win32/d3d9_adjust.c \
  video_chroma/dxgi_fmt.c video_chroma/dxgi_fmt.h
libdirect3d9_adjust_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
260
libdirect3d9_adjust_plugin_la_LIBADD = $(LIBCOM)
261
if HAVE_WIN32_DESKTOP
262
vout_LTLIBRARIES += $(LTLIBdirect3d9)
263 264
video_filter_LTLIBRARIES += $(LTLIBdirect3d9_deinterlace) $(LTLIBdirect3d9_adjust)
EXTRA_LTLIBRARIES += libdirect3d9_plugin.la libdirect3d9_deinterlace_plugin.la libdirect3d9_adjust_plugin.la
265
endif
266

267
libdirect3d11_plugin_la_SOURCES = video_output/win32/direct3d11.c \
268
 video_chroma/d3d11_fmt.h video_chroma/dxgi_fmt.c video_chroma/dxgi_fmt.h \
269 270
 video_output/win32/common.c video_output/win32/common.h \
 video_chroma/copy.c video_chroma/copy.h
Martell Malone's avatar
Martell Malone committed
271 272 273
libdirect3d11_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
 -DMODULE_NAME_IS_direct3d11
if !HAVE_WINSTORE
274 275
libdirect3d11_plugin_la_SOURCES += video_output/win32/events.c \
 video_output/win32/events.h \
276
 video_output/win32/sensors.cpp \
277
 video_output/win32/win32touch.c video_output/win32/win32touch.h
278
libdirect3d11_plugin_la_LIBADD = -lgdi32 $(LIBCOM) -luuid
Martell Malone's avatar
Martell Malone committed
279
else
280
libdirect3d11_plugin_la_LIBADD = -ld3dcompiler_47 $(LIBCOM) -luuid
Martell Malone's avatar
Martell Malone committed
281 282 283 284 285
endif
libdirect3d11_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
vout_LTLIBRARIES += $(LTLIBdirect3d11)
EXTRA_LTLIBRARIES += libdirect3d11_plugin.la

286
libdirect3d11_deinterlace_plugin_la_SOURCES = video_output/win32/d3d11_deinterlace.c \
287
  video_filter/deinterlace/common.c video_filter/deinterlace/common.h \
288
  video_chroma/dxgi_fmt.c video_chroma/dxgi_fmt.h
289
libdirect3d11_deinterlace_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
290 291 292 293 294
libdirect3d11_adjust_plugin_la_SOURCES = video_output/win32/d3d11_adjust.c \
  video_chroma/dxgi_fmt.c video_chroma/dxgi_fmt.h
libdirect3d11_adjust_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
video_filter_LTLIBRARIES += $(LTLIBdirect3d11_deinterlace) $(LTLIBdirect3d11_adjust)
EXTRA_LTLIBRARIES += libdirect3d11_deinterlace_plugin.la libdirect3d11_adjust_plugin.la
295

296 297
libdirectdraw_plugin_la_SOURCES = video_output/win32/directdraw.c \
	video_output/win32/common.c video_output/win32/common.h \
298
	video_chroma/copy.c video_chroma/copy.h \
299
	video_output/win32/events.c video_output/win32/events.h \
300
	video_output/win32/sensors.cpp \
301
	video_output/win32/win32touch.c video_output/win32/win32touch.h
302 303
libdirectdraw_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
	-DMODULE_NAME_IS_directdraw
304
libdirectdraw_plugin_la_LIBADD = -luser32 -lgdi32 $(LIBCOM) -luuid
305
libdirectdraw_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
306
if HAVE_WIN32_DESKTOP
307 308
vout_LTLIBRARIES += $(LTLIBdirectdraw)
EXTRA_LTLIBRARIES += libdirectdraw_plugin.la
309 310
endif

311
libglwin32_plugin_la_SOURCES = $(OPENGL_COMMONSOURCES) \
312
	video_output/win32/glwin32.c \
313
	video_output/win32/common.c video_output/win32/common.h \
314
	video_chroma/copy.c video_chroma/copy.h \
315
	video_output/win32/events.c video_output/win32/events.h \
316
	video_output/win32/sensors.cpp \
317
	video_output/win32/win32touch.c video_output/win32/win32touch.h
318
libwgl_plugin_la_SOURCES = video_output/win32/wgl.c $(OPENGL_COMMONSOURCES)
319

320 321
libglwin32_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
	-DMODULE_NAME_IS_glwin32
322 323 324
libwgl_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
        -DMODULE_NAME_IS_wgl

325 326
libglwin32_plugin_la_LIBADD = -lopengl32 -lgdi32 $(LIBCOM) -luuid
libwgl_plugin_la_LIBADD = -lopengl32 -lgdi32
327

328 329
libglwin32_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
libwgl_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
330

331
if HAVE_WIN32_DESKTOP
332 333
vout_LTLIBRARIES += $(LTLIBglwin32) $(LTLIBwgl)
EXTRA_LTLIBRARIES += libglwin32_plugin.la libwgl_plugin.la
334
endif
335

336 337
libwingdi_plugin_la_SOURCES = video_output/win32/wingdi.c \
	video_output/win32/common.c video_output/win32/common.h \
338
	video_chroma/copy.c video_chroma/copy.h \
339
	video_output/win32/events.c video_output/win32/events.h \
340
	video_output/win32/sensors.cpp \
341
	video_output/win32/win32touch.c video_output/win32/win32touch.h
342 343
libwingdi_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
	-DMODULE_NAME_IS_wingdi
344
libwingdi_plugin_la_LIBADD = -lgdi32 $(LIBCOM) -luuid
345
if HAVE_WIN32_DESKTOP
346
vout_LTLIBRARIES += libwingdi_plugin.la
347 348
endif

349
libegl_win32_plugin_la_SOURCES = video_output/opengl/egl.c
350 351 352 353 354 355 356 357 358
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

359
libdrawable_plugin_la_SOURCES = video_output/drawable.c
360
if HAVE_WIN32
361
vout_LTLIBRARIES += libdrawable_plugin.la
362
endif
363

364 365
### OS/2 ###
if HAVE_OS2
366
vout_LTLIBRARIES += libdrawable_plugin.la
367 368
endif

369
libkva_plugin_la_SOURCES = video_output/kva.c
370
libkva_plugin_la_LIBADD = $(KVA_LIBS)
371
if HAVE_KVA
372
vout_LTLIBRARIES += libkva_plugin.la
373 374
endif

375

376 377
### Android ###

378
libegl_android_plugin_la_SOURCES = video_output/opengl/egl.c
379 380 381
libegl_android_plugin_la_CFLAGS = $(AM_CFLAGS) $(EGL_CFLAGS) -DUSE_PLATFORM_ANDROID=1
libegl_android_plugin_la_LIBADD = $(EGL_LIBS)

382
libandroid_window_plugin_la_SOURCES = video_output/android/window.c \
383
	video_output/android/utils.c video_output/android/utils.h
384 385
libandroid_window_plugin_la_CFLAGS = $(AM_CFLAGS)
libandroid_window_plugin_la_LIBADD = $(LIBDL)
386

387 388 389 390 391
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)
392

393 394 395 396
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

397
if HAVE_ANDROID
398
vout_LTLIBRARIES += libandroid_window_plugin.la libandroid_display_plugin.la
399
if HAVE_EGL
400
vout_LTLIBRARIES += libegl_android_plugin.la libglconv_android_plugin.la
401
endif
402 403
endif

404 405 406

### FrameBuffer ###

407
libfb_plugin_la_SOURCES = video_output/fb.c
408 409 410 411 412 413
libfb_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
EXTRA_LTLIBRARIES += libfb_plugin.la
vout_LTLIBRARIES += $(LTLIBfb)


### ASCII Art ###
414
libaa_plugin_la_SOURCES = video_output/aa.c
415
libaa_plugin_la_LIBADD = libevent_thread.la -laa
416 417 418 419 420 421 422 423
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)


424
### Coloured ASCII art ###
425
libcaca_plugin_la_SOURCES = video_output/caca.c
426
libcaca_plugin_la_CFLAGS = $(AM_CFLAGS) $(CACA_CFLAGS)
427
libcaca_plugin_la_LIBADD = libevent_thread.la $(CACA_LIBS)
428
if !HAVE_WIN32
429
if !HAVE_DARWIN
430 431
libcaca_plugin_la_LIBADD += $(X_LIBS) $(X_PRE_LIBS) -lX11
endif
432
endif
433
libcaca_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
434
EXTRA_LTLIBRARIES += libcaca_plugin.la
435
vout_LTLIBRARIES += $(LTLIBcaca)
436

437

438 439 440 441 442 443 444 445 446 447
### 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


448
### Common ###
449

450
libflaschen_plugin_la_SOURCES = video_output/flaschen.c
451 452
libflaschen_plugin_la_LIBADD = $(SOCKET_LIBS)

453 454 455
libvdummy_plugin_la_SOURCES = video_output/vdummy.c
libvmem_plugin_la_SOURCES = video_output/vmem.c
libyuv_plugin_la_SOURCES = video_output/yuv.c
456

457
vout_LTLIBRARIES += \
458
	libflaschen_plugin.la \
459
	libvdummy_plugin.la \
460
	libvmem_plugin.la \
461
	libyuv_plugin.la
462 463 464 465

libevent_thread_la_SOURCES = \
	video_output/event_thread.c video_output/event_thread.h
noinst_LTLIBRARIES += libevent_thread.la