forked from scottyab/rootbeer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request scottyab#12 from biddster/master
Fix for issue scottyab#10, missing jni libs in aar
- Loading branch information
Showing
4 changed files
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
#!/bin/bash | ||
# build.sh uses the android ndk to compile and then copies the shared object into the correct place | ||
# written by Matthew Rollings 2015 | ||
ndk-build | ||
cp ../libs/armeabi/libtool-checker.so ../src/main/jniLibs/armeabi/libtool-checker.so | ||
cp ../libs/armeabi-v7a/libtool-checker.so ../src/main/jniLibs/armeabi-v7a/libtool-checker.so | ||
cp ../libs/mips/libtool-checker.so ../src/main/jniLibs/mips/libtool-checker.so | ||
cp ../libs/x86/libtool-checker.so ../src/main/jniLibs/x86/libtool-checker.so | ||
ndk-build | ||
|
||
pushd ../libs &> /dev/null | ||
for arch in `ls -d -- *`; do | ||
dest="../src/main/jniLibs/${arch}" | ||
mkdir -p "${dest}" | ||
cp "${arch}/libtool-checker.so" "${dest}/libtool-checker.so" | ||
echo "Copied ${arch} lib to ${dest}" | ||
done | ||
popd &> /dev/null | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.