codec: dav1d: don't send null data for drain
[vlc.git] / modules / text_renderer / Makefile.am
blob948fb9cbf0808d4db3b363ae947d44d8f49cc404
1 textdir = $(pluginsdir)/text_renderer
3 libtdummy_plugin_la_SOURCES = text_renderer/tdummy.c
4 text_LTLIBRARIES = libtdummy_plugin.la
6 libfreetype_plugin_la_SOURCES = \
7         text_renderer/freetype/platform_fonts.c text_renderer/freetype/platform_fonts.h \
8         text_renderer/freetype/freetype.c text_renderer/freetype/freetype.h \
9         text_renderer/freetype/text_layout.c text_renderer/freetype/text_layout.h
11 libfreetype_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(FREETYPE_CFLAGS)
12 libfreetype_plugin_la_LIBADD = $(LIBM)
13 libfreetype_plugin_la_LDFLAGS = $(FREETYPE_LDFLAGS) -rpath '$(textdir)'
15 if HAVE_WIN32
16 libfreetype_plugin_la_SOURCES += text_renderer/freetype/fonts/dwrite.cpp
17 libfreetype_plugin_la_LINK = $(CXXLINK)
18 if HAVE_WIN32_DESKTOP
19 libfreetype_plugin_la_SOURCES += text_renderer/freetype/fonts/win32.c
20 libfreetype_plugin_la_LIBADD += -liconv -lz -lusp10 -lgdi32 -luuid
21 else
22 libfreetype_plugin_la_LIBADD += -ldwrite
23 endif
24 else
25 libfreetype_plugin_la_LINK = $(LINK)
26 endif
27 if HAVE_FONTCONFIG
28 libfreetype_plugin_la_SOURCES += text_renderer/freetype/fonts/fontconfig.c
29 libfreetype_plugin_la_CPPFLAGS += -DHAVE_FONTCONFIG
30 libfreetype_plugin_la_LIBADD += $(FONTCONFIG_LIBS)
31 endif
32 if HAVE_ANDROID
33 libfreetype_plugin_la_SOURCES += text_renderer/freetype/fonts/android.c
34 endif
35 if HAVE_DARWIN
36 libfreetype_plugin_la_SOURCES += text_renderer/freetype/fonts/darwin.c
37 libfreetype_plugin_la_LDFLAGS += -Wl,-framework,CoreFoundation -Wl,-framework,CoreText
38 endif
39 if HAVE_FRIBIDI
40 libfreetype_plugin_la_CPPFLAGS += $(FRIBIDI_CFLAGS) -DHAVE_FRIBIDI
41 libfreetype_plugin_la_LIBADD += $(FRIBIDI_LIBS)
42 endif
43 if HAVE_HARFBUZZ
44 libfreetype_plugin_la_CPPFLAGS += $(HARFBUZZ_CFLAGS) -DHAVE_HARFBUZZ
45 libfreetype_plugin_la_LIBADD += $(HARFBUZZ_LIBS)
46 endif
47 libfreetype_plugin_la_LINK += $(libfreetype_plugin_la_LDFLAGS)
48 libfreetype_plugin_la_LIBADD += $(FREETYPE_LIBS)
49 if HAVE_FREETYPE
50 text_LTLIBRARIES += libfreetype_plugin.la
51 endif
53 # SVG plugin
54 libsvg_plugin_la_SOURCES = text_renderer/svg.c
55 libsvg_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(SVG_CFLAGS)
56 libsvg_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(textdir)'
57 libsvg_plugin_la_LIBADD = $(SVG_LIBS)
58 EXTRA_LTLIBRARIES += libsvg_plugin.la
59 text_LTLIBRARIES += $(LTLIBsvg)
61 # OS X TTS
62 libnsspeechsynthesizer_plugin_la_SOURCES = text_renderer/nsspeechsynthesizer.m
63 libnsspeechsynthesizer_plugin_la_LDFLAGS = $(AM_LDFLAGS) -Wl,-framework,Cocoa
64 if HAVE_OSX
65 text_LTLIBRARIES += libnsspeechsynthesizer_plugin.la
66 endif
68 # SAPI TTS (win32)
69 libsapi_plugin_la_SOURCES = text_renderer/sapi.cpp
70 libsapi_plugin_la_LIBADD = $(LIBCOM)
71 if HAVE_SAPI
72 text_LTLIBRARIES += libsapi_plugin.la
73 endif