macOS vout: fix forgotten ';'
[vlc.git] / modules / text_renderer / Makefile.am
bloba2519047625d86b2db7fa7509f6dfcb7fccf6f73
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 = $(AM_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 += -lfontconfig
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_LIBADD += $(FREETYPE_LIBS)
48 if HAVE_FREETYPE
49 text_LTLIBRARIES += libfreetype_plugin.la
50 endif
52 # SVG plugin
53 libsvg_plugin_la_SOURCES = text_renderer/svg.c
54 libsvg_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(SVG_CFLAGS)
55 libsvg_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(textdir)'
56 libsvg_plugin_la_LIBADD = $(SVG_LIBS)
57 EXTRA_LTLIBRARIES += libsvg_plugin.la
58 text_LTLIBRARIES += $(LTLIBsvg)
60 # OS X TTS
61 libnsspeechsynthesizer_plugin_la_SOURCES = text_renderer/nsspeechsynthesizer.m
62 libnsspeechsynthesizer_plugin_la_LDFLAGS = $(AM_LDFLAGS) -Wl,-framework,Cocoa
63 if HAVE_OSX
64 text_LTLIBRARIES += libnsspeechsynthesizer_plugin.la
65 endif
67 # SAPI TTS (win32)
68 libsapi_plugin_la_SOURCES = text_renderer/sapi.cpp
69 libsapi_plugin_la_LIBADD = $(LIBCOM)
70 if HAVE_SAPI
71 text_LTLIBRARIES += libsapi_plugin.la
72 endif