Skip to content

Commit 0e245e0

Browse files
Update build_android.sh and fix call to upx. Add a comment
1 parent 65444fa commit 0e245e0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build_android.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ if [ ! -d "$LIB" ]; then
4949
echo '</manifest>' >> $LIB/lib/src/main/AndroidManifest.xml
5050
fi
5151

52+
# Build 3rdparty libraries
5253
cd $LIB
5354
./gradlew assemble
5455
for build_type in $THIRD_PARTY_DIR/built/cmake/*; do
@@ -58,6 +59,7 @@ for build_type in $THIRD_PARTY_DIR/built/cmake/*; do
5859
done
5960
done
6061

62+
# Build pdf2htmlEX
6163
cd $APP
6264
./gradlew assemble
6365
for build_type in $APP/app/.externalNativeBuild/cmake/*; do
@@ -77,14 +79,13 @@ echo ""
7779
echo ""
7880

7981
# Pack pdf2htmlEX binaries with UPX
80-
8182
for build_type in $APP/app/.externalNativeBuild/cmake/*; do
8283
build_type_string=$(basename ${build_type})
8384
for build_type_and_abi in $build_type/*; do
8485
abi_string=$(basename ${build_type_and_abi})
8586

8687
FINAL_BINARY=$build_type_and_abi/built/bin/pdf2htmlEX
87-
upx --ultra-brute --8mib-ram -o $FINAL_BINARY
88+
upx --ultra-brute --8mib-ram $FINAL_BINARY
8889
upx -t $FINAL_BINARY
8990

9091
FINAL_TAR=$build_type_and_abi/${build_type_string}-${abi_string}-pdf2htmlEX.tar

0 commit comments

Comments
 (0)