modules: use different directory prefixes for each plugins subdirectory
[vlc.git] / modules / video_output / Modules.am
1 voutdir = $(pluginsdir)/video_output
2
3 noinst_LTLIBRARIES =
4 vout_LTLIBRARIES =
5
6 SOURCES_aa = aa.c
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
17 if HAVE_DECKLINK
18 libdecklinkoutput_plugin_la_SOURCES = decklink.cpp
19 libdecklinkoutput_plugin_la_CXXFLAGS = $(AM_CFLAGS) $(CPPFLAGS_decklinkoutput)
20 libdecklinkoutput_plugin_la_LIBADD = $(AM_LIBADD) $(LIBS_decklink) $(LIBDL)
21 vout_LTLIBRARIES += libdecklinkoutput_plugin.la
22 endif
23
24 ### OpenGL ###
25 # TODO: merge all three source files (?)
26 libgles2_plugin_la_SOURCES = opengl.c opengl.h gl.c
27 libgles2_plugin_la_CFLAGS = $(AM_CFLAGS) $(GLES2_CFLAGS) -DUSE_OPENGL_ES=2
28 libgles2_plugin_la_LIBADD = $(AM_LIBADD) $(GLES2_LIBS)
29 libgles2_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
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 libgles1_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
35
36 libgl_plugin_la_SOURCES = opengl.c opengl.h gl.c
37 libgl_plugin_la_CFLAGS = $(AM_CFLAGS) $(GL_CFLAGS)
38 libgl_plugin_la_LIBADD = $(AM_LIBADD) $(GL_LIBS)
39 libgl_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
40
41 EXTRA_LTLIBRARIES += libgles2_plugin.la libgles1_plugin.la libgl_plugin.la
42 vout_LTLIBRARIES += $(LTLIBgles2) $(LTLIBgles1) $(LTLIBgl)
43
44
45 ### XCB ###
46 libvlc_xcb_events_la_SOURCES = xcb/events.c xcb/events.h
47 libvlc_xcb_events_la_CPPFLAGS = -DMODULE_STRING=\"xcb\"
48 libvlc_xcb_events_la_CFLAGS = $(AM_CFLAGS) $(XCB_CFLAGS)
49 libvlc_xcb_events_la_LDFLAGS = -static
50 libvlc_xcb_events_la_LIBADD = $(AM_LIBADD) $(XCB_LIBS)
51
52 libxcb_x11_plugin_la_SOURCES = \
53         xcb/pictures.c xcb/pictures.h \
54         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         xcb/pictures.c xcb/pictures.h \
62         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         opengl.c opengl.h \
71         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
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 EXTRA_LTLIBRARIES += libxcb_xv_plugin.la libxcb_glx_plugin.la
96 vout_LTLIBRARIES += $(LTLIBxcb_xv) $(LTLIBxcb_glx)
97
98 ### Win32 ###
99 libdirect2d_plugin_la_SOURCES = msw/direct2d.c \
100         msw/common.c msw/common.h msw/events.c msw/events.h
101 libdirect2d_plugin_la_CFLAGS = $(AM_CFLAGS)
102 libdirect2d_plugin_la_LIBADD = $(AM_LIBADD) -lgdi32 -lole32 -luuid
103 libdirect2d_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
104 vout_LTLIBRARIES += $(LTLIBdirect2d)
105 EXTRA_LTLIBRARIES += libdirect2d_plugin.la
106
107 libdirect3d_plugin_la_SOURCES = msw/direct3d.c \
108         msw/common.c msw/common.h msw/events.c msw/events.h
109 libdirect3d_plugin_la_CFLAGS = $(AM_CFLAGS)
110 libdirect3d_plugin_la_LIBADD = $(AM_LIBADD) -lgdi32 -lole32 -luuid
111 libdirect3d_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
112 vout_LTLIBRARIES += $(LTLIBdirect3d)
113 EXTRA_LTLIBRARIES += libdirect3d_plugin.la
114
115 libdirectdraw_plugin_la_SOURCES = msw/directx.c \
116         msw/common.c msw/common.h msw/events.c msw/events.h
117 libdirectdraw_plugin_la_CFLAGS = $(AM_CFLAGS)
118 libdirectdraw_plugin_la_LIBADD = $(AM_LIBADD) -luser32 -lgdi32 -lole32 -luuid
119 if HAVE_DIRECTX
120 vout_LTLIBRARIES += libdirectdraw_plugin.la
121 endif
122
123 libglwin32_plugin_la_SOURCES = msw/glwin32.c opengl.c opengl.h \
124         msw/common.c msw/common.h msw/events.c msw/events.h
125 libglwin32_plugin_la_CFLAGS = $(AM_CFLAGS)
126 libglwin32_plugin_la_LIBADD = $(AM_LIBADD) -lopengl32 -lgdi32 -lole32 -luuid
127 libglwin32_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
128 vout_LTLIBRARIES += $(LTLIBglwin32)
129 EXTRA_LTLIBRARIES += libglwin32_plugin.la
130
131 libwingdi_plugin_la_SOURCES = msw/wingdi.c \
132         msw/common.c msw/common.h msw/events.c msw/events.h
133 libwingdi_plugin_la_CFLAGS = $(AM_CFLAGS)
134 libwingdi_plugin_la_LIBADD = $(AM_LIBADD) -lgdi32 -lole32 -luuid
135 if HAVE_WIN32
136 vout_LTLIBRARIES += libwingdi_plugin.la
137 libwingdi_plugin_la_DEPENDENCIES = libwingdi_plugin.rc.o
138 endif
139
140 libdrawable_plugin_la_SOURCES = drawable.c
141 libdrawable_plugin_la_CFLAGS = $(AM_CFLAGS)
142 libdrawable_plugin_la_LIBADD = $(AM_LIBADD)
143 if HAVE_WIN32
144 vout_LTLIBRARIES += libdrawable_plugin.la
145 libdrawable_plugin_la_DEPENDENCIES = libdrawable_plugin.rc.o
146 endif
147
148 ### OS/2 ###
149 if HAVE_OS2
150 vout_LTLIBRARIES += libdrawable_plugin.la
151 endif
152
153 libkva_plugin_la_SOURCES = kva.c
154 libkva_plugin_la_CFLAGS = $(AM_CFLAGS)
155 libkva_plugin_la_LIBADD = $(AM_LIBADD) $(KVA_LIBS)
156 if HAVE_KVA
157 vout_LTLIBRARIES += libkva_plugin.la
158 endif
159
160 ### EGL ###
161 libegl_plugin_la_SOURCES = egl.c
162 libegl_plugin_la_CFLAGS = $(AM_CFLAGS) $(EGL_CFLAGS)
163 libegl_plugin_la_LIBADD = $(AM_LIBADD) $(EGL_LIBS)
164 if !HAVE_WIN32
165 if !HAVE_DARWIN
166 libegl_plugin_la_LIBADD += $(X_LIBS) $(X_PRE_LIBS) -lX11
167 endif
168 endif
169 libegl_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
170 EXTRA_LTLIBRARIES += libegl_plugin.la
171 vout_LTLIBRARIES += $(LTLIBegl)
172
173 ### GLX ###
174 libglx_plugin_la_SOURCES = glx.c
175 libglx_plugin_la_CFLAGS = $(AM_CFLAGS) $(GL_CFLAGS)
176 libglx_plugin_la_LIBADD = $(AM_LIBADD) $(GL_LIBS) $(X_LIBS) $(X_PRE_LIBS) -lX11
177 if HAVE_WIN32
178 libglx_plugin_la_DEPENDENCIES = libglx_plugin.rc.o
179 endif
180 libglx_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
181 EXTRA_LTLIBRARIES += libglx_plugin.la
182 vout_LTLIBRARIES += $(LTLIBglx)
183
184 ### Coloured ASCII art ###
185 libcaca_plugin_la_SOURCES = caca.c
186 libcaca_plugin_la_CFLAGS = $(AM_CFLAGS) $(CACA_CFLAGS)
187 libcaca_plugin_la_LIBADD = $(AM_LIBADD) $(CACA_LIBS)
188 if !HAVE_WIN32
189 if !HAVE_DARWIN
190 libcaca_plugin_la_LIBADD += $(X_LIBS) $(X_PRE_LIBS) -lX11
191 endif
192 endif
193 libcaca_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(voutdir)'
194 EXTRA_LTLIBRARIES += libcaca_plugin.la
195 vout_LTLIBRARIES += $(LTLIBcaca)
196
197 ### Common ###
198 libvdummy_plugin_la_SOURCES = vdummy.c
199 libvdummy_plugin_la_CFLAGS = $(AM_CFLAGS)
200 libvdummy_plugin_la_LIBADD = $(AM_LIBADD)
201 if HAVE_WIN32
202 libvdummy_plugin_la_DEPENDENCIES = libvdummy_plugin.rc.o
203 endif
204
205 vout_LTLIBRARIES += \
206         libvdummy_plugin.la \
207         libvmem_plugin.la \
208         libyuv_plugin.la