Skip to content

Commit

Permalink
adjust android build
Browse files Browse the repository at this point in the history
  • Loading branch information
neodix42 committed Nov 25, 2024
1 parent 4cbc67e commit d1746c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assembly/android/build-android-tonlib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ while getopts 'a' flag; do
esac
done

export CC=$(which clang-16)
export CXX=$(which clang++-16)
export CCACHE_DISABLE=1

if [ ! -d android-ndk-r25b ]; then
rm android-ndk-r25b-linux.zip
echo "Downloading https://dl.google.com/android/repository/android-ndk-r25b-linux.zip"
Expand Down
1 change: 1 addition & 0 deletions example/android/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ cmake .. -GNinja \
-DLZ4_FOUND=1 \
-DLZ4_INCLUDE_DIRS=${LZ4_INCLUDE_DIR} \
-DLZ4_LIBRARIES=${LZ4_LIBRARY} \
-DSODIUM_FOUND=1 \
-DSODIUM_INCLUDE_DIR=${SODIUM_INCLUDE_DIR} \
-DSODIUM_LIBRARY_RELEASE=${SODIUM_LIBRARY_RELEASE} \
-DSODIUM_USE_STATIC_LIBS=1 \
Expand Down

0 comments on commit d1746c1

Please sign in to comment.