blob: 16c38d33c0ca9c8c0bde2cb20771470c31d64f76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
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
129
130
131
132
133
134
135
|
# SVOX Pico TTS Engine
# This makefile builds both an activity and a shared library.
ifneq ($(TARGET_SIMULATOR),true) # not 64 bit clean
TOP_LOCAL_PATH:= $(call my-dir)
# Build Pico activity
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(call all-java-files-under, src) \
$(call all-java-files-under, compat)
LOCAL_PACKAGE_NAME := PicoTts
LOCAL_REQUIRED_MODULES := libttscompat
LOCAL_PROGUARD_FLAG_FILES := proguard.flags
include $(BUILD_PACKAGE)
# Build static library containing all PICO code
# excluding the compatibility code. This is identical
# to the rule below / except that it builds a shared
# library.
LOCAL_PATH:= $(TOP_LOCAL_PATH)/tts
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES:= com_svox_picottsengine.cpp svox_ssml_parser.cpp
LOCAL_C_INCLUDES += \
external/svox/pico/lib \
external/svox/pico/compat/include
LOCAL_STATIC_LIBRARIES:= libsvoxpico
LOCAL_SHARED_LIBRARIES:= libcutils libexpat libutils
LOCAL_MODULE:= libttspico_engine
LOCAL_ARM_MODE:= arm
include $(BUILD_STATIC_LIBRARY)
# Build Pico Shared Library. This rule is used by the
# compatibility code, which opens this shared library
# using dlsym. This is essentially the same as the rule
# above, except that it packages things a shared library.
LOCAL_PATH:= $(TOP_LOCAL_PATH)/tts
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= com_svox_picottsengine.cpp svox_ssml_parser.cpp
LOCAL_C_INCLUDES += \
external/svox/pico/lib \
external/svox/pico/compat/include
LOCAL_STATIC_LIBRARIES:= libsvoxpico
LOCAL_SHARED_LIBRARIES:= libcutils libexpat libutils
LOCAL_MODULE:= libttspico
include $(BUILD_SHARED_LIBRARY)
# Build Base Generic SVOX Pico Library
LOCAL_PATH:= $(TOP_LOCAL_PATH)/lib
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= \
picoacph.c \
picoapi.c \
picobase.c \
picocep.c \
picoctrl.c \
picodata.c \
picodbg.c \
picoextapi.c \
picofftsg.c \
picokdbg.c \
picokdt.c \
picokfst.c \
picoklex.c \
picoknow.c \
picokpdf.c \
picokpr.c \
picoktab.c \
picoos.c \
picopal.c \
picopam.c \
picopr.c \
picorsrc.c \
picosa.c \
picosig.c \
picosig2.c \
picospho.c \
picotok.c \
picotrns.c \
picowa.c
LOCAL_MODULE:= libsvoxpico
LOCAL_CFLAGS+= $(TOOL_CFLAGS)
LOCAL_LDFLAGS+= $(TOOL_LDFLAGS)
include $(BUILD_STATIC_LIBRARY)
# Build compatibility library
LOCAL_PATH:= $(TOP_LOCAL_PATH)/compat/jni
include $(CLEAR_VARS)
LOCAL_MODULE:= libttscompat
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES:= \
com_android_tts_compat_SynthProxy.cpp
LOCAL_SHARED_LIBRARIES := \
libandroid_runtime \
libnativehelper \
libmedia \
libutils \
libcutils \
libdl
include $(BUILD_SHARED_LIBRARY)
endif # TARGET_SIMULATOR
|