Modules.am 7.05 KB
Newer Older
1 2
voutdir = $(pluginsdir)/video_output

3
noinst_LTLIBRARIES =
4
vout_LTLIBRARIES =
Pierre d'Herbemont's avatar
Pierre d'Herbemont committed
5

6
SOURCES_aa = aa.c
Sam Hocevar's avatar
Sam Hocevar committed
7
SOURCES_fb = fb.c
8
SOURCES_vout_sdl = sdl.c
9
SOURCES_directfb = directfb.c
10
SOURCES_vmem = vmem.c
11
SOURCES_yuv = yuv.c
12
SOURCES_vout_macosx = macosx.m opengl.h opengl.c
13
SOURCES_vout_coregraphicslayer = coregraphicslayer.m
14
SOURCES_vout_ios2 = ios2.m opengl.h opengl.c
15
SOURCES_android_surface = androidsurface.c
16

Rafaël Carré's avatar
Rafaël Carré committed
17 18
if HAVE_DECKLINK
libdecklinkoutput_plugin_la_SOURCES = decklink.cpp
Rafaël Carré's avatar
Rafaël Carré committed
19
libdecklinkoutput_plugin_la_CXXFLAGS = $(AM_CFLAGS) $(CPPFLAGS_decklinkoutput)
Rafaël Carré's avatar
Rafaël Carré committed
20
libdecklinkoutput_plugin_la_LIBADD = $(AM_LIBADD) $(LIBS_decklink) $(LIBDL)
21
vout_LTLIBRARIES += libdecklinkoutput_plugin.la
Rafaël Carré's avatar
Rafaël Carré committed
22 23
endif

24 25
### OpenGL ###
# TODO: merge all three source files (?)
26 27 28
libgles2_plugin_la_SOURCES = opengl.c opengl.h gl.c
libgles2_plugin_la_CFLAGS = $(AM_CFLAGS) $(GLES2_CFLAGS) -DUSE_OPENGL_ES=2
libgles2_plugin_la_LIBADD = $(AM_LIBADD) $(GLES2_LIBS)
29
libgles2_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
30 31 32 33

libgles1_plugin_la_SOURCES = opengl.c opengl.h gl.c
libgles1_plugin_la_CFLAGS = $(AM_CFLAGS) $(GLES1_CFLAGS) -DUSE_OPENGL_ES=1
libgles1_plugin_la_LIBADD = $(AM_LIBADD) $(GLES1_LIBS)
34
libgles1_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
35 36 37 38

libgl_plugin_la_SOURCES = opengl.c opengl.h gl.c
libgl_plugin_la_CFLAGS = $(AM_CFLAGS) $(GL_CFLAGS)
libgl_plugin_la_LIBADD = $(AM_LIBADD) $(GL_LIBS)
39
libgl_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
40

41 42
EXTRA_LTLIBRARIES += libgles2_plugin.la libgles1_plugin.la libgl_plugin.la
vout_LTLIBRARIES += $(LTLIBgles2) $(LTLIBgles1) $(LTLIBgl)
43

44

Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
45
### XCB ###
46 47 48 49 50 51
libvlc_xcb_events_la_SOURCES = xcb/events.c xcb/events.h
libvlc_xcb_events_la_CPPFLAGS = -DMODULE_STRING=\"xcb\"
libvlc_xcb_events_la_CFLAGS = $(AM_CFLAGS) $(XCB_CFLAGS)
libvlc_xcb_events_la_LDFLAGS = -static
libvlc_xcb_events_la_LIBADD = $(AM_LIBADD) $(XCB_LIBS)

52
libxcb_x11_plugin_la_SOURCES = \
53 54
	xcb/pictures.c xcb/pictures.h \
	xcb/x11.c
55
libxcb_x11_plugin_la_CFLAGS = $(AM_CFLAGS) \
56
	$(XCB_CFLAGS) $(XCB_SHM_CFLAGS)
57
libxcb_x11_plugin_la_LIBADD = libvlc_xcb_events.la $(AM_LIBADD) \
58
	$(XCB_LIBS) $(XCB_SHM_LIBS)
59

60
libxcb_xv_plugin_la_SOURCES = \
61 62
	xcb/pictures.c xcb/pictures.h \
	xcb/xvideo.c
63
libxcb_xv_plugin_la_CFLAGS = $(AM_CFLAGS) \
64
	$(XCB_CFLAGS) $(XCB_SHM_CFLAGS) $(XCB_XV_CFLAGS)
65
libxcb_xv_plugin_la_LIBADD = libvlc_xcb_events.la $(AM_LIBADD) \
66
	$(XCB_LIBS) $(XCB_SHM_LIBS) $(XCB_XV_LIBS)
67
libxcb_xv_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
68

69
libxcb_glx_plugin_la_SOURCES = \
70 71
	opengl.c opengl.h \
	xcb/glx.c
72
libxcb_glx_plugin_la_CFLAGS = $(AM_CFLAGS) \
73
	$(XCB_CFLAGS) $(GL_CFLAGS)
74
libxcb_glx_plugin_la_LIBADD = libvlc_xcb_events.la $(AM_LIBADD) \
75
	$(XCB_LIBS) $(GL_LIBS) $(X_LIBS) $(X_PRE_LIBS) -lX11
76
libxcb_glx_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
77

aballier's avatar
aballier committed
78
libxcb_window_plugin_la_SOURCES = xcb/window.c xcb/keys.c xcb/keysym.h xcb/xcb_keysym.h
79
libxcb_window_plugin_la_CFLAGS = $(AM_CFLAGS) \
80
	$(CFLAGS_xcb_window) \
81
	$(XPROTO_CFLAGS) \
82
	$(XCB_CFLAGS) \
83
	$(XCB_KEYSYMS_CFLAGS)
84
libxcb_window_plugin_la_LIBADD = $(AM_LIBADD) \
85
	$(XPROTO_LIBS) \
86
	$(XCB_LIBS) \
87
	$(XCB_KEYSYMS_LIBS)
88

89
if HAVE_XCB
90
noinst_LTLIBRARIES += libvlc_xcb_events.la
91
vout_LTLIBRARIES += \
92
	libxcb_x11_plugin.la \
93
	libxcb_window_plugin.la
94
endif
95 96
EXTRA_LTLIBRARIES += libxcb_xv_plugin.la libxcb_glx_plugin.la
vout_LTLIBRARIES += $(LTLIBxcb_xv) $(LTLIBxcb_glx)
97

Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
98
### Win32 ###
99 100
libdirect2d_plugin_la_SOURCES = msw/direct2d.c \
	msw/common.c msw/common.h msw/events.c msw/events.h
101 102
libdirect2d_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
	-DMODULE_NAME_IS_direct2d
103
libdirect2d_plugin_la_LIBADD = $(AM_LIBADD) -lgdi32 -lole32 -luuid
104 105
libdirect2d_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
vout_LTLIBRARIES += $(LTLIBdirect2d)
106 107 108 109
EXTRA_LTLIBRARIES += libdirect2d_plugin.la

libdirect3d_plugin_la_SOURCES = msw/direct3d.c \
	msw/common.c msw/common.h msw/events.c msw/events.h
110 111
libdirect3d_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
	-DMODULE_NAME_IS_direct3d
112
libdirect3d_plugin_la_LIBADD = $(AM_LIBADD) -lgdi32 -lole32 -luuid
113 114
libdirect3d_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
vout_LTLIBRARIES += $(LTLIBdirect3d)
115 116 117 118
EXTRA_LTLIBRARIES += libdirect3d_plugin.la

libdirectdraw_plugin_la_SOURCES = msw/directx.c \
	msw/common.c msw/common.h msw/events.c msw/events.h
119 120
libdirectdraw_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
	-DMODULE_NAME_IS_directdraw
121 122
libdirectdraw_plugin_la_LIBADD = $(AM_LIBADD) -luser32 -lgdi32 -lole32 -luuid
if HAVE_DIRECTX
123
vout_LTLIBRARIES += libdirectdraw_plugin.la
124 125 126 127
endif

libglwin32_plugin_la_SOURCES = msw/glwin32.c opengl.c opengl.h \
	msw/common.c msw/common.h msw/events.c msw/events.h
128 129
libglwin32_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
	-DMODULE_NAME_IS_glwin32
130
libglwin32_plugin_la_LIBADD = $(AM_LIBADD) -lopengl32 -lgdi32 -lole32 -luuid
131 132
libglwin32_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
vout_LTLIBRARIES += $(LTLIBglwin32)
133 134 135 136
EXTRA_LTLIBRARIES += libglwin32_plugin.la

libwingdi_plugin_la_SOURCES = msw/wingdi.c \
	msw/common.c msw/common.h msw/events.c msw/events.h
137 138
libwingdi_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
	-DMODULE_NAME_IS_wingdi
139 140
libwingdi_plugin_la_LIBADD = $(AM_LIBADD) -lgdi32 -lole32 -luuid
if HAVE_WIN32
141
vout_LTLIBRARIES += libwingdi_plugin.la
142
libwingdi_plugin_la_DEPENDENCIES = libwingdi_plugin.rc.o
143 144
endif

145 146 147
libdrawable_plugin_la_SOURCES = drawable.c
libdrawable_plugin_la_CFLAGS = $(AM_CFLAGS)
libdrawable_plugin_la_LIBADD = $(AM_LIBADD)
148
if HAVE_WIN32
149
vout_LTLIBRARIES += libdrawable_plugin.la
150
libdrawable_plugin_la_DEPENDENCIES = libdrawable_plugin.rc.o
151
endif
152

komh's avatar
komh committed
153 154
### OS/2 ###
if HAVE_OS2
155
vout_LTLIBRARIES += libdrawable_plugin.la
komh's avatar
komh committed
156 157
endif

komh's avatar
komh committed
158 159 160 161
libkva_plugin_la_SOURCES = kva.c
libkva_plugin_la_CFLAGS = $(AM_CFLAGS)
libkva_plugin_la_LIBADD = $(AM_LIBADD) $(KVA_LIBS)
if HAVE_KVA
162
vout_LTLIBRARIES += libkva_plugin.la
komh's avatar
komh committed
163 164
endif

165
### EGL ###
166 167 168
libegl_plugin_la_SOURCES = egl.c
libegl_plugin_la_CFLAGS = $(AM_CFLAGS) $(EGL_CFLAGS)
libegl_plugin_la_LIBADD = $(AM_LIBADD) $(EGL_LIBS)
169
if !HAVE_WIN32
nkoriyama's avatar
nkoriyama committed
170
if !HAVE_DARWIN
171
libegl_plugin_la_LIBADD += $(X_LIBS) $(X_PRE_LIBS) -lX11
nkoriyama's avatar
nkoriyama committed
172
endif
173
endif
174
libegl_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
175
EXTRA_LTLIBRARIES += libegl_plugin.la
176
vout_LTLIBRARIES += $(LTLIBegl)
177

178 179 180 181
### GLX ###
libglx_plugin_la_SOURCES = glx.c
libglx_plugin_la_CFLAGS = $(AM_CFLAGS) $(GL_CFLAGS)
libglx_plugin_la_LIBADD = $(AM_LIBADD) $(GL_LIBS) $(X_LIBS) $(X_PRE_LIBS) -lX11
182 183 184
if HAVE_WIN32
libglx_plugin_la_DEPENDENCIES = libglx_plugin.rc.o
endif
185
libglx_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
186
EXTRA_LTLIBRARIES += libglx_plugin.la
187
vout_LTLIBRARIES += $(LTLIBglx)
188

189 190 191 192
### Coloured ASCII art ###
libcaca_plugin_la_SOURCES = caca.c
libcaca_plugin_la_CFLAGS = $(AM_CFLAGS) $(CACA_CFLAGS)
libcaca_plugin_la_LIBADD = $(AM_LIBADD) $(CACA_LIBS)
193
if !HAVE_WIN32
Rafaël Carré's avatar
Rafaël Carré committed
194
if !HAVE_DARWIN
195 196
libcaca_plugin_la_LIBADD += $(X_LIBS) $(X_PRE_LIBS) -lX11
endif
Rafaël Carré's avatar
Rafaël Carré committed
197
endif
198
libcaca_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
199
EXTRA_LTLIBRARIES += libcaca_plugin.la
200
vout_LTLIBRARIES += $(LTLIBcaca)
201

202
### Common ###
203 204 205
libvdummy_plugin_la_SOURCES = vdummy.c
libvdummy_plugin_la_CFLAGS = $(AM_CFLAGS)
libvdummy_plugin_la_LIBADD = $(AM_LIBADD)
206 207 208
if HAVE_WIN32
libvdummy_plugin_la_DEPENDENCIES = libvdummy_plugin.rc.o
endif
209

210
vout_LTLIBRARIES += \
211
	libvdummy_plugin.la \
212
	libvmem_plugin.la \
213
	libyuv_plugin.la