ee7f488d18de3d00949897be227be8366511f8d7
[vlc.git] / modules / video_output / Modules.am
1 AM_LIBTOOLFLAGS=--tag=CC
2 noinst_LTLIBRARIES =
3
4 SOURCES_aa = aa.c
5 SOURCES_fb = fb.c
6 SOURCES_vout_sdl = sdl.c
7 SOURCES_directfb = directfb.c
8 SOURCES_vmem = vmem.c
9 SOURCES_yuv = yuv.c
10 SOURCES_vout_macosx = macosx.m opengl.h opengl.c
11 SOURCES_vout_coregraphicslayer = coregraphicslayer.m
12 SOURCES_vout_ios2 = ios2.m opengl.h opengl.c
13 SOURCES_android_surface = androidsurface.c
14
15 if HAVE_DECKLINK
16 libdecklinkoutput_plugin_la_SOURCES = decklink.cpp
17 libdecklinkoutput_plugin_la_CXXFLAGS = $(AM_CFLAGS) $(CPPFLAGS_decklinkoutput)
18 libdecklinkoutput_plugin_la_LIBADD = $(AM_LIBADD) $(LIBS_decklink) $(LIBDL)
19 libvlc_LTLIBRARIES += libdecklinkoutput_plugin.la
20 endif
21
22 ### OpenGL ###
23 # TODO: merge all three source files (?)
24 libgles2_plugin_la_SOURCES = opengl.c opengl.h gl.c
25 libgles2_plugin_la_CFLAGS = $(AM_CFLAGS) $(GLES2_CFLAGS) -DUSE_OPENGL_ES=2
26 libgles2_plugin_la_LIBADD = $(AM_LIBADD) $(GLES2_LIBS)
27 if HAVE_WIN32
28 libgles2_plugin_la_DEPENDENCIES = libgles2_plugin.rc.o
29 endif
30
31 libgles1_plugin_la_SOURCES = opengl.c opengl.h gl.c
32 libgles1_plugin_la_CFLAGS = $(AM_CFLAGS) $(GLES1_CFLAGS) -DUSE_OPENGL_ES=1
33 libgles1_plugin_la_LIBADD = $(AM_LIBADD) $(GLES1_LIBS)
34 if HAVE_WIN32
35 libgles1_plugin_la_DEPENDENCIES = libgles1_plugin.rc.o
36 endif
37
38 libgl_plugin_la_SOURCES = opengl.c opengl.h gl.c
39 libgl_plugin_la_CFLAGS = $(AM_CFLAGS) $(GL_CFLAGS)
40 libgl_plugin_la_LIBADD = $(AM_LIBADD) $(GL_LIBS)
41 if HAVE_WIN32
42 libgl_plugin_la_DEPENDENCIES = libgl_plugin.rc.o
43 endif
44
45 EXTRA_LTLIBRARIES += \
46         libgles2_plugin.la \
47         libgles1_plugin.la \
48         libgl_plugin.la
49 libvlc_LTLIBRARIES += \
50         $(LTLIBgles2) $(LTLIBgles1) $(LTLIBgl)
51
52
53 ### XCB ###
54 libvlc_xcb_events_la_SOURCES = xcb/events.c xcb/events.h
55 libvlc_xcb_events_la_CPPFLAGS = -DMODULE_STRING=\"xcb\"
56 libvlc_xcb_events_la_CFLAGS = $(AM_CFLAGS) $(XCB_CFLAGS)
57 libvlc_xcb_events_la_LDFLAGS = -static
58 libvlc_xcb_events_la_LIBADD = $(AM_LIBADD) $(XCB_LIBS)
59
60 libxcb_x11_plugin_la_SOURCES = \
61         xcb/pictures.c xcb/pictures.h \
62         xcb/x11.c
63 libxcb_x11_plugin_la_CFLAGS = $(AM_CFLAGS) \
64         $(XCB_CFLAGS) $(XCB_SHM_CFLAGS)
65 libxcb_x11_plugin_la_LIBADD = libvlc_xcb_events.la $(AM_LIBADD) \
66         $(XCB_LIBS) $(XCB_SHM_LIBS)
67
68 libxcb_xv_plugin_la_SOURCES = \
69         xcb/pictures.c xcb/pictures.h \
70         xcb/xvideo.c
71 libxcb_xv_plugin_la_CFLAGS = $(AM_CFLAGS) \
72         $(XCB_CFLAGS) $(XCB_SHM_CFLAGS) $(XCB_XV_CFLAGS)
73 libxcb_xv_plugin_la_LIBADD = libvlc_xcb_events.la $(AM_LIBADD) \
74         $(XCB_LIBS) $(XCB_SHM_LIBS) $(XCB_XV_LIBS)
75
76 libxcb_glx_plugin_la_SOURCES = \
77         opengl.c opengl.h \
78         xcb/glx.c
79 libxcb_glx_plugin_la_CFLAGS = $(AM_CFLAGS) \
80         $(XCB_CFLAGS) $(GL_CFLAGS)
81 libxcb_glx_plugin_la_LIBADD = libvlc_xcb_events.la $(AM_LIBADD) \
82         $(XCB_LIBS) $(GL_LIBS) $(X_LIBS) $(X_PRE_LIBS) -lX11
83
84 libxcb_window_plugin_la_SOURCES = xcb/window.c xcb/keys.c xcb/keysym.h xcb/xcb_keysym.h
85 libxcb_window_plugin_la_CFLAGS = $(AM_CFLAGS) \
86         $(CFLAGS_xcb_window) \
87         $(XPROTO_CFLAGS) \
88         $(XCB_CFLAGS) \
89         $(XCB_KEYSYMS_CFLAGS)
90 libxcb_window_plugin_la_LIBADD = $(AM_LIBADD) \
91         $(XPROTO_LIBS) \
92         $(XCB_LIBS) \
93         $(XCB_KEYSYMS_LIBS)
94
95 if HAVE_XCB
96 noinst_LTLIBRARIES += libvlc_xcb_events.la
97 libvlc_LTLIBRARIES += \
98         libxcb_x11_plugin.la \
99         libxcb_window_plugin.la
100 endif
101 EXTRA_LTLIBRARIES += \
102         libxcb_xv_plugin.la \
103         libxcb_glx_plugin.la
104 libvlc_LTLIBRARIES += \
105         $(LTLIBxcb_xv) \
106         $(LTLIBxcb_glx)
107
108 ### Win32 ###
109 libdirect2d_plugin_la_SOURCES = msw/direct2d.c \
110         msw/common.c msw/common.h msw/events.c msw/events.h
111 libdirect2d_plugin_la_CFLAGS = $(AM_CFLAGS)
112 libdirect2d_plugin_la_LIBADD = $(AM_LIBADD) -lgdi32 -lole32 -luuid
113 if HAVE_WIN32
114 libdirect2d_plugin_la_DEPENDENCIES = libdirect2d_plugin.rc.o
115 endif
116 libvlc_LTLIBRARIES += $(LTLIBdirect2d)
117 EXTRA_LTLIBRARIES += libdirect2d_plugin.la
118
119 libdirect3d_plugin_la_SOURCES = msw/direct3d.c \
120         msw/common.c msw/common.h msw/events.c msw/events.h
121 libdirect3d_plugin_la_CFLAGS = $(AM_CFLAGS)
122 libdirect3d_plugin_la_LIBADD = $(AM_LIBADD) -lgdi32 -lole32 -luuid
123 if HAVE_WIN32
124 libdirect3d_plugin_la_DEPENDENCIES = libdirect3d_plugin.rc.o
125 endif
126 libvlc_LTLIBRARIES += $(LTLIBdirect3d)
127 EXTRA_LTLIBRARIES += libdirect3d_plugin.la
128
129 libdirectdraw_plugin_la_SOURCES = msw/directx.c \
130         msw/common.c msw/common.h msw/events.c msw/events.h
131 libdirectdraw_plugin_la_CFLAGS = $(AM_CFLAGS)
132 libdirectdraw_plugin_la_LIBADD = $(AM_LIBADD) -luser32 -lgdi32 -lole32 -luuid
133 if HAVE_WIN32
134 libdirectdraw_plugin_la_DEPENDENCIES = libdirectdraw_plugin.rc.o
135 endif
136
137 if HAVE_DIRECTX
138 libvlc_LTLIBRARIES += libdirectdraw_plugin.la
139 endif
140
141 libglwin32_plugin_la_SOURCES = msw/glwin32.c opengl.c opengl.h \
142         msw/common.c msw/common.h msw/events.c msw/events.h
143 libglwin32_plugin_la_CFLAGS = $(AM_CFLAGS)
144 libglwin32_plugin_la_LIBADD = $(AM_LIBADD) -lopengl32 -lgdi32 -lole32 -luuid
145 if HAVE_WIN32
146 libglwin32_plugin_la_DEPENDENCIES = libglwin32_plugin.rc.o
147 endif
148 libvlc_LTLIBRARIES += $(LTLIBglwin32)
149 EXTRA_LTLIBRARIES += libglwin32_plugin.la
150
151 libwingdi_plugin_la_SOURCES = msw/wingdi.c \
152         msw/common.c msw/common.h msw/events.c msw/events.h
153 libwingdi_plugin_la_CFLAGS = $(AM_CFLAGS)
154 libwingdi_plugin_la_LIBADD = $(AM_LIBADD) -lgdi32 -lole32 -luuid
155 if HAVE_WIN32
156 libvlc_LTLIBRARIES += libwingdi_plugin.la
157 libwingdi_plugin_la_DEPENDENCIES = libwingdi_plugin.rc.o
158 endif
159
160 libdrawable_plugin_la_SOURCES = drawable.c
161 libdrawable_plugin_la_CFLAGS = $(AM_CFLAGS)
162 libdrawable_plugin_la_LIBADD = $(AM_LIBADD)
163 if HAVE_WIN32
164 libvlc_LTLIBRARIES += libdrawable_plugin.la
165 libdrawable_plugin_la_DEPENDENCIES = libdrawable_plugin.rc.o
166 endif
167
168 ### OS/2 ###
169 if HAVE_OS2
170 libvlc_LTLIBRARIES += libdrawable_plugin.la
171 endif
172
173 libkva_plugin_la_SOURCES = kva.c
174 libkva_plugin_la_CFLAGS = $(AM_CFLAGS)
175 libkva_plugin_la_LIBADD = $(AM_LIBADD) $(KVA_LIBS)
176 if HAVE_KVA
177 libvlc_LTLIBRARIES += libkva_plugin.la
178 endif
179
180 ### EGL ###
181 libegl_plugin_la_SOURCES = egl.c
182 libegl_plugin_la_CFLAGS = $(AM_CFLAGS) $(EGL_CFLAGS)
183 libegl_plugin_la_LIBADD = $(AM_LIBADD) $(EGL_LIBS)
184 if !HAVE_WIN32
185 if !HAVE_DARWIN
186 libegl_plugin_la_LIBADD += $(X_LIBS) $(X_PRE_LIBS) -lX11
187 endif
188 else
189 libegl_plugin_la_DEPENDENCIES = libegl_plugin.rc.o
190 endif
191 EXTRA_LTLIBRARIES += libegl_plugin.la
192 libvlc_LTLIBRARIES += $(LTLIBegl)
193
194 ### GLX ###
195 libglx_plugin_la_SOURCES = glx.c
196 libglx_plugin_la_CFLAGS = $(AM_CFLAGS) $(GL_CFLAGS)
197 libglx_plugin_la_LIBADD = $(AM_LIBADD) $(GL_LIBS) $(X_LIBS) $(X_PRE_LIBS) -lX11
198 if HAVE_WIN32
199 libglx_plugin_la_DEPENDENCIES = libglx_plugin.rc.o
200 endif
201 EXTRA_LTLIBRARIES += libglx_plugin.la
202 libvlc_LTLIBRARIES += $(LTLIBglx)
203
204 ### Coloured ASCII art ###
205 libcaca_plugin_la_SOURCES = caca.c
206 libcaca_plugin_la_CFLAGS = $(AM_CFLAGS) $(CACA_CFLAGS)
207 libcaca_plugin_la_LIBADD = $(AM_LIBADD) $(CACA_LIBS)
208 if !HAVE_WIN32
209 if !HAVE_DARWIN
210 libcaca_plugin_la_LIBADD += $(X_LIBS) $(X_PRE_LIBS) -lX11
211 endif
212 else
213 libcaca_plugin_la_DEPENDENCIES = libcaca_plugin.rc.o
214 endif
215 EXTRA_LTLIBRARIES += libcaca_plugin.la
216 libvlc_LTLIBRARIES += $(LTLIBcaca)
217
218 ### Common ###
219 libvdummy_plugin_la_SOURCES = vdummy.c
220 libvdummy_plugin_la_CFLAGS = $(AM_CFLAGS)
221 libvdummy_plugin_la_LIBADD = $(AM_LIBADD)
222 if HAVE_WIN32
223 libvdummy_plugin_la_DEPENDENCIES = libvdummy_plugin.rc.o
224 endif
225
226 libvlc_LTLIBRARIES += \
227         libvdummy_plugin.la \
228         libvmem_plugin.la \
229         libyuv_plugin.la