update makefile to copy into proper native lib location

This commit is contained in:
n8fr8 2018-05-09 12:53:26 -04:00
parent 1b1f64d376
commit 51c7a076a5
1 changed files with 5 additions and 7 deletions

12
external/Makefile vendored
View File

@ -280,18 +280,16 @@ tor-clean:
git reset HEAD --hard
#------------------------------------------------------------------------------#
#create and clean assets: FYI - tor is stored as a ZIP file with an mp3 extension
#in order to stop Android OS (older devices) from trying to compress/decompress it
#this is related to a bug in compression of assets and resources > 1MB
#create and clean assets: FYI - tor is stored as a ZIP file with an so extension
#in the libs directly, so it is handled like a shared library for local installation
assets: tor
install -d ../tor-android-binary/src/main/assets/$(APP_ABI)
install -d ../tor-android-binary/src/main/libs/$(APP_ABI)
-$(STRIP) bin/tor
-zip ../tor-android-binary/src/main/assets/$(APP_ABI)/tor.mp3 bin/tor
-zip ../tor-android-binary/src/main/libs/$(APP_ABI)/tor.so bin/tor
assets-clean:
-rm ../tor-android-binary/src/main/assets/$(APP_ABI)/tor.mp3
-rm ../tor-android-binary/src/main/libs/$(APP_ABI)/tor.so
#------------------------------------------------------------------------------#
# cleanup, cleanup, put the toys away