Dan Ballard pushed to branch tor-browser-128.8.0esr-14.5-1 at The Tor Project / 
Applications / Tor Browser


Commits:
d2b56be1 by clairehurst at 2025-03-10T19:25:21+00:00
fixup! TB 41089: Add tor-browser build scripts + Makefile to tor-browser

Update android-env-macos-template.sh

- - - - -


1 changed file:

- tools/geckoview/android-env-macos-template.sh


Changes:

=====================================
tools/geckoview/android-env-macos-template.sh
=====================================
@@ -1,6 +1,8 @@
-export 
JAVA_HOME=/opt/homebrew/opt/openjdk@11/libexec/openjdk.jdk/Contents/Home/ # for 
arm64. Or 
JAVA_HOME=/usr/local/opt/openjdk@11/libexec/openjdk.jdk/Contents/Home/ for 
x86_64.
+export 
JAVA_HOME=/opt/homebrew/opt/openjdk@17/libexec/openjdk.jdk/Contents/Home/ # for 
arm64. Or 
JAVA_HOME=/usr/local/opt/openjdk@17/libexec/openjdk.jdk/Contents/Home/ for 
x86_64.
 export ANDROID_HOME=$HOME/Library/Android/sdk # or 
$HOME/.mozbuild/android-sdk-macosx/
-export ANDROID_NDK_HOME=$ANDROID_HOME/ndk/23.2.8568313 # will need to download 
NDK 23.2.8568313 via android studio
-export GRADLE_HOME=/opt/homebrew/Cellar/gradle@7/7.6.4 # for arm64 or 
/usr/local/Cellar/gradle@7/7.6.4 for x86_64. Make sure the version is up to date
+export ANDROID_NDK_HOME=$ANDROID_HOME/ndk/26.2.11394342 # will need to 
download the relevant NDK via android studio (e.g. 26.2.11394342)
+GRADLE_DIR=/opt/homebrew/Cellar/gradle # for arm64, or 
/usr/local/Cellar/gradle for x86_64. Download via homebrew.
+GRADLE_VERSION=`ls -1 "$GRADLE_DIR" | sort -hr | head -n 1` # Finds the latest 
gradle version in the specified GRADLE_DIR
+export GRADLE_HOME=$GRADLE_DIR/$GRADLE_VERSION
 export LOCAL_DEV_BUILD=1
-export 
PATH=$ANDROID_HOME/ndk/25.2.9519653/toolchains/llvm/prebuilt/darwin-x86_64/bin/:$PATH
 # prepend android studios latest ndk to the path so it's clang gets used to 
build geckoview. NDK 25.2.9519653 uses clang 14.0.7, ideally we'd use clang 16 
(to be the same as Linux) but that's not an option yet for android studio. NDK 
26.1.10909125 uses clang 17.0.2, which we should evaluate with the esr128 
migration
+export 
PATH=$ANDROID_HOME/ndk/26.2.11394342/toolchains/llvm/prebuilt/darwin-x86_64/bin/:$PATH
 # prepend android studios latest ndk to the path so it's clang gets used to 
build geckoview. Note that it doesn't need to be the same version as above



View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/d2b56be1c3bf03e721697ea5607b0de246e3a7e9

-- 
View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/d2b56be1c3bf03e721697ea5607b0de246e3a7e9
You're receiving this email because of your account on gitlab.torproject.org.


_______________________________________________
tbb-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to