Modules.am 5.28 KB
Newer Older
1
AM_LIBTOOLFLAGS=--tag=CC
Pierre d'Herbemont's avatar
Pierre d'Herbemont committed
2

3
SOURCES_aa = aa.c
Sam Hocevar's avatar
Sam Hocevar committed
4
SOURCES_fb = fb.c
5
SOURCES_vout_sdl = sdl.c
6
SOURCES_directfb = directfb.c
7
SOURCES_vmem = vmem.c
8
SOURCES_yuv = yuv.c
9 10
SOURCES_vout_macosx = macosx.m opengl.h opengl.c
SOURCES_vout_ios = ios.m opengl.h opengl.c
11
SOURCES_android_surface = androidsurface.c
12

13 14
### OpenGL ###
# TODO: merge all three source files (?)
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
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)

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)

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)

EXTRA_LTLIBRARIES += \
	libgles2_plugin.la \
	libgles1_plugin.la \
	libgl_plugin.la
libvlc_LTLIBRARIES += \
	$(LTLIBgl)

34

Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
35
### XCB ###
36
libxcb_x11_plugin_la_SOURCES = \
37
	xcb/xcb_vlc.h \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
38
	xcb/x11.c \
39
	xcb/common.c \
40
	xcb/events.c
41
libxcb_x11_plugin_la_CFLAGS = $(AM_CFLAGS) \
42
	$(XCB_CFLAGS) $(XCB_SHM_CFLAGS)
43
libxcb_x11_plugin_la_LIBADD = $(AM_LIBADD) \
44
	$(XCB_LIBS) $(XCB_SHM_LIBS)
45

46 47 48 49 50 51
libxcb_xv_plugin_la_SOURCES = \
	xcb/xcb_vlc.h \
	xcb/xvideo.c \
	xcb/common.c \
	xcb/events.c
libxcb_xv_plugin_la_CFLAGS = $(AM_CFLAGS) \
52
	$(XCB_CFLAGS) $(XCB_SHM_CFLAGS) $(XCB_XV_CFLAGS)
53
libxcb_xv_plugin_la_LIBADD = $(AM_LIBADD) \
54
	$(XCB_LIBS) $(XCB_SHM_LIBS) $(XCB_XV_LIBS)
55

56 57 58
libxcb_glx_plugin_la_SOURCES = \
	xcb/xcb_vlc.h \
	xcb/glx.c \
59 60
	opengl.h \
	opengl.c \
61 62
	xcb/events.c
libxcb_glx_plugin_la_CFLAGS = $(AM_CFLAGS) \
63
	$(XCB_CFLAGS) $(GL_CFLAGS)
64
libxcb_glx_plugin_la_LIBADD = $(AM_LIBADD) \
65
	$(XCB_LIBS) $(GL_LIBS) $(X_LIBS) $(X_PRE_LIBS) -lX11
66

67
libxcb_window_plugin_la_SOURCES = xcb/window.c xcb/keys.c xcb/keysym.h xcb/xcb_keysym.h
68
libxcb_window_plugin_la_CFLAGS = $(AM_CFLAGS) \
69
	$(CFLAGS_xcb_window) \
70
	$(XPROTO_CFLAGS) \
71
	$(XCB_CFLAGS) \
72
	$(XCB_KEYSYMS_CFLAGS)
73
libxcb_window_plugin_la_LIBADD = $(AM_LIBADD) \
74
	$(XPROTO_LIBS) \
75
	$(XCB_LIBS) \
76
	$(XCB_KEYSYMS_LIBS)
77

78 79
if HAVE_XCB
libvlc_LTLIBRARIES += \
80
	libxcb_x11_plugin.la \
81
	libxcb_window_plugin.la
82 83 84 85
endif
EXTRA_LTLIBRARIES += \
	libxcb_xv_plugin.la \
	libxcb_glx_plugin.la
86 87
libvlc_LTLIBRARIES += \
	$(LTLIBxcb_xv) \
88
	$(LTLIBxcb_glx)
89

Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
90
### Win32 ###
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
libdirect2d_plugin_la_SOURCES = msw/direct2d.c \
	msw/common.c msw/common.h msw/events.c msw/events.h
libdirect2d_plugin_la_CFLAGS = $(AM_CFLAGS)
libdirect2d_plugin_la_LIBADD = $(AM_LIBADD) -lgdi32 -lole32 -luuid
libvlc_LTLIBRARIES += $(LTLIBdirect2d)
EXTRA_LTLIBRARIES += libdirect2d_plugin.la

libdirect3d_plugin_la_SOURCES = msw/direct3d.c \
	msw/common.c msw/common.h msw/events.c msw/events.h
libdirect3d_plugin_la_CFLAGS = $(AM_CFLAGS)
libdirect3d_plugin_la_LIBADD = $(AM_LIBADD) -lgdi32 -lole32 -luuid
libvlc_LTLIBRARIES += $(LTLIBdirect3d)
EXTRA_LTLIBRARIES += libdirect3d_plugin.la

libdirectdraw_plugin_la_SOURCES = msw/directx.c \
	msw/common.c msw/common.h msw/events.c msw/events.h
libdirectdraw_plugin_la_CFLAGS = $(AM_CFLAGS)
libdirectdraw_plugin_la_LIBADD = $(AM_LIBADD) -luser32 -lgdi32 -lole32 -luuid

if HAVE_DIRECTX
libvlc_LTLIBRARIES += libdirectdraw_plugin.la
endif

libglwin32_plugin_la_SOURCES = msw/glwin32.c opengl.c opengl.h \
	msw/common.c msw/common.h msw/events.c msw/events.h
libglwin32_plugin_la_CFLAGS = $(AM_CFLAGS)
libglwin32_plugin_la_LIBADD = $(AM_LIBADD) -lopengl32 -lgdi32 -lole32 -luuid
libvlc_LTLIBRARIES += $(LTLIBglwin32)
EXTRA_LTLIBRARIES += libglwin32_plugin.la

libwingdi_plugin_la_SOURCES = msw/wingdi.c \
	msw/common.c msw/common.h msw/events.c msw/events.h
libwingdi_plugin_la_CFLAGS = $(AM_CFLAGS)
libwingdi_plugin_la_LIBADD = $(AM_LIBADD) -lgdi32 -lole32 -luuid
if HAVE_WIN32
libvlc_LTLIBRARIES += libwingdi_plugin.la
endif

129 130 131
libdrawable_plugin_la_SOURCES = drawable.c
libdrawable_plugin_la_CFLAGS = $(AM_CFLAGS)
libdrawable_plugin_la_LIBADD = $(AM_LIBADD)
132
if HAVE_WIN32
133
libvlc_LTLIBRARIES += libdrawable_plugin.la
134
endif
135

136 137 138 139 140
### OS/2 ###
if HAVE_OS2
libvlc_LTLIBRARIES += libdrawable_plugin.la
endif

141 142 143 144 145 146 147
libkva_plugin_la_SOURCES = kva.c
libkva_plugin_la_CFLAGS = $(AM_CFLAGS)
libkva_plugin_la_LIBADD = $(AM_LIBADD) $(KVA_LIBS)
if HAVE_KVA
libvlc_LTLIBRARIES += libkva_plugin.la
endif

148
### EGL ###
149 150 151
libegl_plugin_la_SOURCES = egl.c
libegl_plugin_la_CFLAGS = $(AM_CFLAGS) $(EGL_CFLAGS)
libegl_plugin_la_LIBADD = $(AM_LIBADD) $(EGL_LIBS)
152
if !HAVE_WIN32
153
libegl_plugin_la_LIBADD += $(X_LIBS) $(X_PRE_LIBS) -lX11
154
endif
155 156 157
EXTRA_LTLIBRARIES += libegl_plugin.la
libvlc_LTLIBRARIES += $(LTLIBegl)

158 159 160 161 162 163 164
### 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
EXTRA_LTLIBRARIES += libglx_plugin.la
libvlc_LTLIBRARIES += $(LTLIBglx)

165 166 167 168
### 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)
169
if !HAVE_WIN32
170
if !HAVE_DARWIN
171 172
libcaca_plugin_la_LIBADD += $(X_LIBS) $(X_PRE_LIBS) -lX11
endif
173
endif
174 175 176
EXTRA_LTLIBRARIES += libcaca_plugin.la
libvlc_LTLIBRARIES += $(LTLIBcaca)

177
### Common ###
178 179 180 181
libvdummy_plugin_la_SOURCES = vdummy.c
libvdummy_plugin_la_CFLAGS = $(AM_CFLAGS)
libvdummy_plugin_la_LIBADD = $(AM_LIBADD)

182
libvlc_LTLIBRARIES += \
183
	libvdummy_plugin.la \
184
	libvmem_plugin.la \
185
	libyuv_plugin.la