-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d1dc63a
commit ce9a556
Showing
4 changed files
with
76 additions
and
11 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
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
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#/usr/bin/env bash | ||
|
||
. buildenv.sh | ||
|
||
cd TMessagesProj/jni | ||
./build_libvpx_clang.sh | ||
./build_ffmpeg_clang.sh | ||
./patch_ffmpeg.sh | ||
./patch_boringssl.sh | ||
./build_boringssl.sh | ||
|
||
cd $PROJECT/v2ray | ||
if [ $(command -v go) ]; then | ||
export PATH=$PATH:$(go env GOPATH)/bin | ||
else | ||
echo "Error: go is not installed." | ||
echo "To build libv2ray install latest stable go version first." | ||
exit 1 | ||
fi | ||
make all | ||
make downloadGoMobile | ||
make BuildMobile | ||
mv libv2ray.aar ../TMessagesProj/libs | ||
|
||
./gradlew assembleFullRelease |
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
|
||
if [ -z "$NDK_VER" ]; then export NDK_VER="21.4.7075529"; fi | ||
|
||
if [ -z "$ANDROID_HOME" ]; then | ||
if [ -d "$HOME/Android/Sdk" ]; then | ||
export ANDROID_HOME="$HOME/Android/Sdk" | ||
elif [ -d "$HOME/.local/lib/android/sdk" ]; then | ||
export ANDROID_HOME="$HOME/.local/lib/android/sdk" | ||
fi | ||
fi | ||
|
||
|
||
_NDK="$ANDROID_HOME/ndk/$NDK_VER" | ||
[ -f "$_NDK/source.properties" ] || _NDK="$ANDROID_NDK_HOME" | ||
[ -f "$_NDK/source.properties" ] || _NDK="$NDK" | ||
[ -f "$_NDK/source.properties" ] || _NDK="$ANDROID_HOME/ndk-bundle" | ||
|
||
if [ ! -f "$_NDK/source.properties" ]; then | ||
echo "Error: NDK not found." | ||
exit 1 | ||
fi | ||
|
||
export ANDROID_NDK_HOME=$_NDK | ||
export NDK=$_NDK | ||
export PROJECT=$(realpath .) | ||
|
||
if [ $(command -v go) ]; then | ||
export PATH=$PATH:$(go env GOPATH)/bin | ||
else | ||
echo "Warning: go is not installed." | ||
echo "To build libv2ray install latest stable go version first." | ||
fi |