Makefile.am 2.47 KB
Newer Older
1
textdir = $(pluginsdir)/text_renderer
2 3 4 5 6

libtdummy_plugin_la_SOURCES = text_renderer/tdummy.c
text_LTLIBRARIES = libtdummy_plugin.la

libfreetype_plugin_la_SOURCES = \
7 8 9
	text_renderer/freetype/platform_fonts.c text_renderer/freetype/platform_fonts.h \
	text_renderer/freetype/freetype.c text_renderer/freetype/freetype.h \
	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)
13 14
libfreetype_plugin_la_LDFLAGS = $(AM_LDFLAGS) $(FREETYPE_LDFLAGS) -rpath '$(textdir)'

15 16
if HAVE_WIN32
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 25
else
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 39 40 41 42
endif
if HAVE_FRIBIDI
libfreetype_plugin_la_CPPFLAGS += $(FRIBIDI_CFLAGS) -DHAVE_FRIBIDI
libfreetype_plugin_la_LIBADD += $(FRIBIDI_LIBS)
endif
43 44 45 46
if HAVE_HARFBUZZ
libfreetype_plugin_la_CPPFLAGS += $(HARFBUZZ_CFLAGS) -DHAVE_HARFBUZZ
libfreetype_plugin_la_LIBADD += $(HARFBUZZ_LIBS)
endif
47
libfreetype_plugin_la_LIBADD += $(FREETYPE_LIBS)
48 49
if HAVE_FREETYPE
text_LTLIBRARIES += libfreetype_plugin.la
50
endif
51

52 53 54 55 56 57 58 59 60
# SVG plugin
libsvg_plugin_la_SOURCES = text_renderer/svg.c
libsvg_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(SVG_CFLAGS)
libsvg_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(textdir)'
libsvg_plugin_la_LIBADD = $(SVG_LIBS)
EXTRA_LTLIBRARIES += libsvg_plugin.la
text_LTLIBRARIES += $(LTLIBsvg)

# 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 65 66
text_LTLIBRARIES += libnsspeechsynthesizer_plugin.la
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 72
text_LTLIBRARIES += libsapi_plugin.la
endif