NSSpeechSynthesizer: Add missing $(AM_LDFLAGS)
[vlc.git] / modules / text_renderer / Makefile.am
1 textdir = $(pluginsdir)/text_renderer
2
3 libtdummy_plugin_la_SOURCES = text_renderer/tdummy.c
4 text_LTLIBRARIES = libtdummy_plugin.la
5
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
10
11 libfreetype_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(FREETYPE_CFLAGS)
12 libfreetype_plugin_la_LIBADD = $(LIBM) $(FREETYPE_LIBS)
13 libfreetype_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(FREETYPE_LDFLAGS) -rpath '$(textdir)'
14
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 -lgdi32 -lusp10 -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 if HAVE_FREETYPE
48 text_LTLIBRARIES += libfreetype_plugin.la
49 endif
50
51 # SVG plugin
52 libsvg_plugin_la_SOURCES = text_renderer/svg.c
53 libsvg_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(SVG_CFLAGS)
54 libsvg_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(textdir)'
55 libsvg_plugin_la_LIBADD = $(SVG_LIBS)
56 EXTRA_LTLIBRARIES += libsvg_plugin.la
57 text_LTLIBRARIES += $(LTLIBsvg)
58
59 # OS X TTS
60 libnsspeechsynthesizer_plugin_la_SOURCES = text_renderer/nsspeechsynthesizer.m
61 libnsspeechsynthesizer_plugin_la_LDFLAGS = $(AM_LDFLAGS) -Wl,-framework,Cocoa
62 if HAVE_OSX
63 text_LTLIBRARIES += libnsspeechsynthesizer_plugin.la
64 endif
65
66 # SAPI TTS (win32)
67 libsapi_plugin_la_SOURCES = text_renderer/sapi.cpp
68 libsapi_plugin_la_LIBADD = $(LIBCOM)
69 if HAVE_SAPI
70 text_LTLIBRARIES += libsapi_plugin.la
71 endif