android: use gradle to build data archive

this fixes #1161 separates the android application build system from automake
and simplifies building an application on windows.
This commit is contained in:
Alexander Epaneshnikov
2022-04-15 19:07:16 +03:00
parent 95678616f7
commit 042ac06b9e
2 changed files with 45 additions and 14 deletions
+1 -14
View File
@@ -388,20 +388,7 @@ apk-debug: espeakdata
apk-check: espeakdata
cd android && $(GRADLE) connectedCheck
android/res/raw/espeakdata.zip: espeak-ng-data/phontab dictionaries
mkdir -pv android/res/raw
rm -f $@
find espeak-ng-data/{intonations,phondata,phonindex,phontab} | zip -@ $@
find espeak-ng-data/*_dict | zip -@ $@
find espeak-ng-data/lang -type f | zip -@ $@
find espeak-ng-data/voices -type f | grep -vF "/mb/" | zip -@ $@
android/res/raw/espeakdata_version: android/res/raw/espeakdata.zip
sha1sum $< | awk '{ print $$1 }' > $@
espeakdata: \
android/res/raw/espeakdata.zip \
android/res/raw/espeakdata_version
espeakdata: espeak-ng-data/phontab dictionaries
##### dictionaries: