diff --git a/.gitignore b/.gitignore index c3c5f0f5..ef9aebcc 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,11 @@ *.o +# android build output: + +obj/ +libs/ + # libraries src/libespeak.a diff --git a/AndroidManifest.xml b/AndroidManifest.xml new file mode 100644 index 00000000..8ed62cb7 --- /dev/null +++ b/AndroidManifest.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/README b/README index 30ea38c2..417addf3 100644 --- a/README +++ b/README @@ -1,3 +1,4 @@ -Development snapshots of eSpeak. +Android Port of eSpeak -Taken from http://espeak.sourceforge.net/test/latest.html. +This branch contains the files needed to build espeak on the android platform. +It is derived from the eyes-free project. diff --git a/jni/Android.mk b/jni/Android.mk new file mode 100644 index 00000000..1e378838 --- /dev/null +++ b/jni/Android.mk @@ -0,0 +1,36 @@ +LOCAL_PATH:= $(call my-dir) +include $(CLEAR_VARS) + +# eSpeak (minus command line apps) + +BLACKLIST_SRC_FILES := \ + %/espeak.cpp \ + %/speak.cpp + +ESPEAK_SRC_PATH := espeak-source/src + +ESPEAK_SRC_FILES := \ + $(subst $(LOCAL_PATH)/$(ESPEAK_SRC_PATH),$(ESPEAK_SRC_PATH),$(wildcard $(LOCAL_PATH)/$(ESPEAK_SRC_PATH)/*.c*)) + +LOCAL_SRC_FILES += \ + $(filter-out $(BLACKLIST_SRC_FILES),$(ESPEAK_SRC_FILES)) + +# JNI + +LOCAL_SRC_FILES += \ + $(subst $(LOCAL_PATH)/jni,jni,$(wildcard $(LOCAL_PATH)/jni/*.c*)) + +LOCAL_C_INCLUDES += \ + $(LOCAL_PATH)/include \ + $(LOCAL_PATH)/$(ESPEAK_SRC_PATH) + +LOCAL_LDLIBS := \ + -llog + +# Common + +LOCAL_MODULE := libttsespeak +LOCAL_MODULE_TAGS := optional +LOCAL_PRELINK_MODULE := false + +include $(BUILD_SHARED_LIBRARY) diff --git a/project.properties b/project.properties new file mode 100644 index 00000000..730e911f --- /dev/null +++ b/project.properties @@ -0,0 +1,11 @@ +# This file is automatically generated by Android Tools. +# Do not modify this file -- YOUR CHANGES WILL BE ERASED! +# +# This file must be checked in Version Control Systems. +# +# To customize properties used by the Ant build system use, +# "ant.properties", and override values to adapt the script to your +# project structure. + +# Project target. +target=android-14