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

4 5
EXTRA_DIST += video_output/README

Rafaël Carré's avatar
Rafaël Carré committed
6
if HAVE_DECKLINK
7
libdecklinkoutput_plugin_la_SOURCES = video_output/decklink.cpp
Rafaël Carré's avatar
Rafaël Carré committed
8
libdecklinkoutput_plugin_la_CXXFLAGS = $(AM_CFLAGS) $(CPPFLAGS_decklinkoutput)
9
libdecklinkoutput_plugin_la_LIBADD = $(LIBS_decklink) $(LIBDL) -lpthread
10
vout_LTLIBRARIES += libdecklinkoutput_plugin.la
Rafaël Carré's avatar
Rafaël Carré committed
11 12
endif

13
if HAVE_OSX
14
libvout_macosx_plugin_la_SOURCES = video_output/macosx.m video_output/opengl.c video_output/opengl.h
15 16 17 18
libvout_macosx_plugin_la_CFLAGS = $(AM_CFLAGS) $(GL_CFLAGS)
libvout_macosx_plugin_la_LIBADD = $(GL_LIBS)
libvout_macosx_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)' -Wl,-framework,OpenGL,-framework,Cocoa

19
libcaopengllayer_plugin_la_SOURCES = video_output/caopengllayer.m video_output/opengl.c video_output/opengl.h
20 21 22
libcaopengllayer_plugin_la_CFLAGS = $(AM_CFLAGS) $(GL_CFLAGS)
libcaopengllayer_plugin_la_LIBADD = $(GL_LIBS)
libcaopengllayer_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)' -Wl,-framework,OpenGL,-framework,Cocoa,-framework,QuartzCore
23
vout_LTLIBRARIES += libvout_macosx_plugin.la libcaopengllayer_plugin.la
24 25
endif

26
libvout_ios2_plugin_la_SOURCES = video_output/ios2.m video_output/opengl.h video_output/opengl.c
27
libvout_ios2_plugin_la_CFLAGS = $(AM_CFLAGS) $(GL_CFLAGS)
28 29
libvout_ios2_plugin_la_OBJCFLAGS = $(AM_OBJCFLAGS) $(GL_OBJCFLAGS)
libvout_ios2_plugin_la_LIBADD = $(AM_LIBADD) $(GL_LIBS)
30
libvout_ios2_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)' -Wl,-framework,OpenGLES,-framework,QuartzCore,-framework,UIKit
31
if HAVE_IOS
32
vout_LTLIBRARIES += libvout_ios2_plugin.la
33 34
endif

35 36
### OpenGL ###
# TODO: merge all three source files (?)
37
libgles2_plugin_la_SOURCES = video_output/opengl.c video_output/opengl.h \
38
	video_output/gl.c
39
libgles2_plugin_la_CFLAGS = $(AM_CFLAGS) $(GLES2_CFLAGS) -DUSE_OPENGL_ES=2
40
libgles2_plugin_la_LIBADD = $(GLES2_LIBS)
41
libgles2_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
42

43 44
libgles1_plugin_la_SOURCES = video_output/opengl.c video_output/opengl.h \
	video_output/gl.c
45
libgles1_plugin_la_CFLAGS = $(AM_CFLAGS) $(GLES1_CFLAGS) -DUSE_OPENGL_ES=1
46
libgles1_plugin_la_LIBADD = $(GLES1_LIBS)
47
libgles1_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
48

49 50 51
EXTRA_LTLIBRARIES += libgles2_plugin.la libgles1_plugin.la
vout_LTLIBRARIES += $(LTLIBgles2) $(LTLIBgles1)

52 53
libgl_plugin_la_SOURCES = video_output/opengl.c video_output/opengl.h \
	video_output/gl.c
54
libgl_plugin_la_CFLAGS = $(AM_CFLAGS) $(GL_CFLAGS)
55
libgl_plugin_la_LIBADD = $(GL_LIBS)
56 57 58
if HAVE_GL
vout_LTLIBRARIES += libgl_plugin.la
endif
59

60

Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
61
### XCB ###
62 63
libvlc_xcb_events_la_SOURCES = \
	video_output/xcb/events.c video_output/xcb/events.h
64 65 66
libvlc_xcb_events_la_CPPFLAGS = -DMODULE_STRING=\"xcb\"
libvlc_xcb_events_la_CFLAGS = $(AM_CFLAGS) $(XCB_CFLAGS)
libvlc_xcb_events_la_LDFLAGS = -static
67
libvlc_xcb_events_la_LIBADD = $(XCB_LIBS)
68

69
libxcb_x11_plugin_la_SOURCES = \
70 71
	video_output/xcb/pictures.c video_output/xcb/pictures.h \
	video_output/xcb/x11.c
72
libxcb_x11_plugin_la_CFLAGS = $(AM_CFLAGS) \
73
	$(XCB_CFLAGS) $(XCB_SHM_CFLAGS)
74
libxcb_x11_plugin_la_LIBADD = libvlc_xcb_events.la \
75
	$(XCB_LIBS) $(XCB_SHM_LIBS)
76

77
libxcb_xv_plugin_la_SOURCES = \
78 79
	video_output/xcb/pictures.c video_output/xcb/pictures.h \
	video_output/xcb/xvideo.c
80
libxcb_xv_plugin_la_CFLAGS = $(AM_CFLAGS) \
81
	$(XCB_CFLAGS) $(XCB_SHM_CFLAGS) $(XCB_XV_CFLAGS)
82
libxcb_xv_plugin_la_LIBADD = libvlc_xcb_events.la \
83
	$(XCB_LIBS) $(XCB_SHM_LIBS) $(XCB_XV_LIBS)
84

85
libxcb_glx_plugin_la_SOURCES = \
86 87
	video_output/opengl.c video_output/opengl.h \
	video_output/xcb/glx.c
88
libxcb_glx_plugin_la_CFLAGS = $(AM_CFLAGS) \
89
	$(XCB_CFLAGS) $(GL_CFLAGS)
90
libxcb_glx_plugin_la_LIBADD = libvlc_xcb_events.la \
91
	$(XCB_LIBS) $(GL_LIBS)
92

93 94 95 96
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
97
libxcb_window_plugin_la_CFLAGS = $(AM_CFLAGS) \
98
	$(CFLAGS_xcb_window) \
99 100
	$(XPROTO_CFLAGS) $(XCB_CFLAGS) $(XCB_KEYSYMS_CFLAGS)
libxcb_window_plugin_la_LIBADD = $(XPROTO_LIBS) $(XCB_LIBS) $(XCB_KEYSYMS_LIBS)
101

102
libegl_x11_plugin_la_SOURCES = video_output/egl.c
103 104 105 106
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

107
libglx_plugin_la_SOURCES = video_output/glx.c
108 109 110
libglx_plugin_la_CFLAGS = $(AM_CFLAGS) $(GL_CFLAGS)
libglx_plugin_la_LIBADD = $(GL_LIBS) $(X_LIBS) $(X_PRE_LIBS) -lX11

111
if HAVE_XCB
112
noinst_LTLIBRARIES += libvlc_xcb_events.la
113 114 115
vout_LTLIBRARIES += libxcb_x11_plugin.la libxcb_window_plugin.la
if HAVE_XCB_KEYSYMS
libxcb_window_plugin_la_CFLAGS += -DHAVE_XCB_KEYSYMS
116
endif
117 118 119
if HAVE_XCB_XVIDEO
vout_LTLIBRARIES += libxcb_xv_plugin.la
endif
120 121 122
if HAVE_EGL
vout_LTLIBRARIES += libegl_x11_plugin.la
endif
123 124 125 126 127
if HAVE_GL
vout_LTLIBRARIES += libxcb_glx_plugin.la libglx_plugin.la
endif
endif

128

129
### Wayland ###
130 131 132 133
libwl_shm_plugin_la_SOURCES = video_output/wayland/shm.c
nodist_libwl_shm_plugin_la_SOURCES = video_output/wayland/scaler-protocol.c
libwl_shm_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
	-I$(builddir)/video_output/wayland
134 135
libwl_shm_plugin_la_CFLAGS = $(WAYLAND_CLIENT_CFLAGS)
libwl_shm_plugin_la_LIBADD = $(WAYLAND_CLIENT_LIBS)
136 137
EXTRA_DIST += video_output/wayland/scaler.xml
CLEANFILES += $(nodist_libwl_shm_plugin_la_SOURCES)
138

139
libwl_shell_surface_plugin_la_SOURCES = video_output/wayland/shell_surface.c
140
libwl_shell_surface_plugin_la_CFLAGS = $(WAYLAND_CLIENT_CFLAGS)
141
libwl_shell_surface_plugin_la_LIBADD = $(WAYLAND_CLIENT_LIBS) $(LIBPTHREAD)
142

143 144 145 146
libegl_wl_plugin_la_SOURCES = video_output/egl.c
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)
147 148 149 150 151 152

if HAVE_WAYLAND
BUILT_SOURCES += video_output/wayland/scaler-client-protocol.h
vout_LTLIBRARIES += libwl_shm_plugin.la
vout_LTLIBRARIES += libwl_shell_surface_plugin.la
if HAVE_WAYLAND_EGL
153 154 155
if HAVE_EGL
vout_LTLIBRARIES += libegl_wl_plugin.la
endif
156 157
endif
endif
158

159

Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
160
### Win32 ###
161 162 163 164
libdirect2d_plugin_la_SOURCES = video_output/msw/direct2d.c \
	video_output/msw/common.c video_output/msw/common.h \
	video_output/msw/events.c video_output/msw/events.h \
	video_output/msw/win32touch.c video_output/msw/win32touch.h
165 166
libdirect2d_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
	-DMODULE_NAME_IS_direct2d
167
libdirect2d_plugin_la_LIBADD = -lgdi32 -lole32 -luuid
168 169
libdirect2d_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
vout_LTLIBRARIES += $(LTLIBdirect2d)
170 171
EXTRA_LTLIBRARIES += libdirect2d_plugin.la

172
libdirect3d9_plugin_la_SOURCES = video_output/msw/direct3d9.c \
173 174 175 176
	video_output/msw/common.c video_output/msw/common.h \
	video_output/msw/events.c video_output/msw/events.h \
	video_output/msw/builtin_shaders.h \
	video_output/msw/win32touch.c video_output/msw/win32touch.h
177 178 179 180 181 182
libdirect3d9_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
	-DMODULE_NAME_IS_direct3d9
libdirect3d9_plugin_la_LIBADD = -lgdi32 -lole32 -luuid
libdirect3d9_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
vout_LTLIBRARIES += $(LTLIBdirect3d9)
EXTRA_LTLIBRARIES += libdirect3d9_plugin.la
183

Martell Malone's avatar
Martell Malone committed
184
libdirect3d11_plugin_la_SOURCES = video_output/msw/direct3d11.c \
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
185
 video_output/msw/common.c video_output/msw/common.h
Martell Malone's avatar
Martell Malone committed
186 187 188
libdirect3d11_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
 -DMODULE_NAME_IS_direct3d11
if !HAVE_WINSTORE
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
189 190 191
libdirect3d11_plugin_la_SOURCES += video_output/msw/events.c \
 video_output/msw/events.h video_output/msw/builtin_shaders.h \
 video_output/msw/win32touch.c video_output/msw/win32touch.h
Martell Malone's avatar
Martell Malone committed
192 193 194 195 196 197 198 199
libdirect3d11_plugin_la_LIBADD = -lgdi32 -lole32 -luuid
else
libdirect3d11_plugin_la_LIBADD = -ld3dcompiler -lole32 -luuid
endif
libdirect3d11_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
vout_LTLIBRARIES += $(LTLIBdirect3d11)
EXTRA_LTLIBRARIES += libdirect3d11_plugin.la

200
libdirectdraw_plugin_la_SOURCES = video_output/msw/directdraw.c \
201 202 203
	video_output/msw/common.c video_output/msw/common.h \
	video_output/msw/events.c video_output/msw/events.h \
	video_output/msw/win32touch.c video_output/msw/win32touch.h
204 205
libdirectdraw_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
	-DMODULE_NAME_IS_directdraw
206
libdirectdraw_plugin_la_LIBADD = -luser32 -lgdi32 -lole32 -luuid
207
if HAVE_DIRECTX
208
vout_LTLIBRARIES += libdirectdraw_plugin.la
209 210
endif

211 212 213 214 215
libglwin32_plugin_la_SOURCES = video_output/msw/glwin32.c \
	video_output/opengl.c video_output/opengl.h \
	video_output/msw/common.c video_output/msw/common.h \
	video_output/msw/events.c video_output/msw/events.h \
	video_output/msw/win32touch.c video_output/msw/win32touch.h
216 217
libglwin32_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
	-DMODULE_NAME_IS_glwin32
218
libglwin32_plugin_la_LIBADD = -lopengl32 -lgdi32 -lole32 -luuid
219 220
libglwin32_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
vout_LTLIBRARIES += $(LTLIBglwin32)
221 222
EXTRA_LTLIBRARIES += libglwin32_plugin.la

223 224 225 226
libwingdi_plugin_la_SOURCES = video_output/msw/wingdi.c \
	video_output/msw/common.c video_output/msw/common.h \
	video_output/msw/events.c video_output/msw/events.h \
	video_output/msw/win32touch.c video_output/msw/win32touch.h
227 228
libwingdi_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
	-DMODULE_NAME_IS_wingdi
229
libwingdi_plugin_la_LIBADD = -lgdi32 -lole32 -luuid
230
if HAVE_WIN32
231
if !HAVE_WINSTORE
232
vout_LTLIBRARIES += libwingdi_plugin.la
233
endif
234
endif
235

236
libegl_win32_plugin_la_SOURCES = video_output/egl.c
237 238 239 240 241 242 243 244 245
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

246
libdrawable_plugin_la_SOURCES = video_output/drawable.c
247
if HAVE_WIN32
248
vout_LTLIBRARIES += libdrawable_plugin.la
249
endif
250

komh's avatar
komh committed
251 252
### OS/2 ###
if HAVE_OS2
253
vout_LTLIBRARIES += libdrawable_plugin.la
komh's avatar
komh committed
254 255
endif

256
libkva_plugin_la_SOURCES = video_output/kva.c
257
libkva_plugin_la_LIBADD = $(KVA_LIBS)
komh's avatar
komh committed
258
if HAVE_KVA
259
vout_LTLIBRARIES += libkva_plugin.la
komh's avatar
komh committed
260 261
endif

262

263 264
### Android ###

265
libegl_android_plugin_la_SOURCES = video_output/egl.c
266 267 268
libegl_android_plugin_la_CFLAGS = $(AM_CFLAGS) $(EGL_CFLAGS) -DUSE_PLATFORM_ANDROID=1
libegl_android_plugin_la_LIBADD = $(EGL_LIBS)

269
libandroid_native_window_plugin_la_SOURCES = video_output/android/nativewindow.c video_output/android/utils.c
270
libandroid_native_window_plugin_la_CFLAGS = $(AM_CFLAGS)
271 272
libandroid_native_window_plugin_la_LIBADD = $(LIBDL)

273 274 275 276 277
libandroid_window_plugin_la_SOURCES = video_output/android/android_window.c video_output/android/android_window.h video_output/android/utils.c video_output/android/utils.h
libandroid_window_plugin_la_CFLAGS = $(AM_CFLAGS)
libandroid_window_plugin_la_LIBADD = $(LIBDL)
libandroid_window_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
EXTRA_LTLIBRARIES += libandroid_window_plugin.la
278

279 280
if HAVE_ANDROID
vout_LTLIBRARIES += libandroid_native_window_plugin.la
281
vout_LTLIBRARIES += $(LTLIBandroid_window)
282 283 284
if HAVE_EGL
vout_LTLIBRARIES += libegl_android_plugin.la
endif
285 286
endif

287 288 289

### FrameBuffer ###

290
libdirectfb_plugin_la_SOURCES = video_output/directfb.c
291 292 293 294 295 296
libdirectfb_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_directfb)
libdirectfb_plugin_la_LIBADD = $(LIBS_directfb)
libdirectfb_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
EXTRA_LTLIBRARIES += libdirectfb_plugin.la
vout_LTLIBRARIES += $(LTLIBdirectfb)

297
libfb_plugin_la_SOURCES = video_output/fb.c
298 299 300 301 302 303
libfb_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
EXTRA_LTLIBRARIES += libfb_plugin.la
vout_LTLIBRARIES += $(LTLIBfb)


### Simple DirectMedia Layer ###
304
libvout_sdl_plugin_la_SOURCES = video_output/sdl.c
305 306 307 308 309 310 311 312 313 314 315 316 317 318
libvout_sdl_plugin_la_CFLAGS = $(AM_CFLAGS) $(SDL_CFLAGS)
libvout_sdl_plugin_la_LIBADD = $(SDL_LIBS)
if !HAVE_WIN32
if !HAVE_OS2
libvout_sdl_plugin_la_LIBADD += $(X_LIBS) $(X_PRE_LIBS) -lX11
endif
endif
libvout_sdl_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
EXTRA_LTLIBRARIES += libvout_sdl_plugin.la
vout_LTLIBRARIES += $(LTLIBvout_sdl)



### ASCII Art ###
319
libaa_plugin_la_SOURCES = video_output/aa.c
320 321 322 323 324 325 326 327 328
libaa_plugin_la_LIBADD = -laa
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)


329
### Coloured ASCII art ###
330
libcaca_plugin_la_SOURCES = video_output/caca.c
331
libcaca_plugin_la_CFLAGS = $(AM_CFLAGS) $(CACA_CFLAGS)
332
libcaca_plugin_la_LIBADD = $(CACA_LIBS)
333
if !HAVE_WIN32
Rafaël Carré's avatar
Rafaël Carré committed
334
if !HAVE_DARWIN
335 336
libcaca_plugin_la_LIBADD += $(X_LIBS) $(X_PRE_LIBS) -lX11
endif
Rafaël Carré's avatar
Rafaël Carré committed
337
endif
338
libcaca_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
339
EXTRA_LTLIBRARIES += libcaca_plugin.la
340
vout_LTLIBRARIES += $(LTLIBcaca)
341

342

343
### Common ###
344 345 346
libvdummy_plugin_la_SOURCES = video_output/vdummy.c
libvmem_plugin_la_SOURCES = video_output/vmem.c
libyuv_plugin_la_SOURCES = video_output/yuv.c
347

348
vout_LTLIBRARIES += \
349
	libvdummy_plugin.la \
350
	libvmem_plugin.la \
351
	libyuv_plugin.la