diff options
author | Narayan Kamath <narayan@google.com> | 2011-05-19 14:10:27 +0100 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2011-05-19 15:44:37 +0100 |
commit | ea2af8319ea840e4feb2e3733bee1ba7c52a7dc7 (patch) | |
tree | e5462b61f0d5767b48627aeeded367c7c8014546 | |
parent | 7ffd31ba2584359996e04cd3d4d92f810d651066 (diff) | |
download | external_svox-ea2af8319ea840e4feb2e3733bee1ba7c52a7dc7.zip external_svox-ea2af8319ea840e4feb2e3733bee1ba7c52a7dc7.tar.gz external_svox-ea2af8319ea840e4feb2e3733bee1ba7c52a7dc7.tar.bz2 |
Minor makefile refactoring.
This allows folks to depend on libttspico_static and just
call getTtsEngine() directly instead of all the dlopen()
dlsym() business.
Change-Id: I7b5b6c94d08b95ade9ba9c995e4bd2a862acdfb6
-rwxr-xr-x | pico/Android.mk | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/pico/Android.mk b/pico/Android.mk index c6b0e8a..4521b70 100755 --- a/pico/Android.mk +++ b/pico/Android.mk @@ -22,12 +22,15 @@ LOCAL_PROGUARD_FLAG_FILES := proguard.flags include $(BUILD_PACKAGE) - -# Build Pico Shared Library - +# 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 += \ @@ -38,10 +41,29 @@ LOCAL_STATIC_LIBRARIES:= libsvoxpico LOCAL_SHARED_LIBRARIES:= libcutils libexpat libutils -LOCAL_MODULE:= libttspico +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_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 + include $(BUILD_SHARED_LIBRARY) |