... | ... | @@ -50,16 +50,16 @@ export PATH=/FULL/PATH/TO/tor-browser-build/out/clang/clang-16.x.y-arm/bin/:$PAT |
|
|
|
|
|
For Mac: (default is arm64, note the different paths for x86_64). Make sure to download the appropriate NDK's via Android Studio's SDK manager (you can select the specific version by checking the box in the bottom right that says "Show Package Details")
|
|
|
|
|
|
![Screenshot 2024-08-08 at 16.40.53.png](uploads/3f4559656592bd601ad5ae4e6bb9e64d/Screenshot_2024-08-08_at_16.40.53.png){width=990 height=721}
|
|
|
![AndroidStudioNdkVersionsScreenshot](uploads/35d6ebb0f7396f3243c6a1b0b572e418/AndroidStudioNdkVersionsScreenshot.png)
|
|
|
|
|
|
```
|
|
|
export MOZ_BUILD_DATE=20230710165010
|
|
|
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/26.2.11394342 # will need to download NDK 26.2.11394342 via android studio
|
|
|
export GRADLE_HOME=/opt/homebrew/Cellar/gradle/8.9 # for arm64 or /usr/local/Cellar/gradle/8.9 for x86_64
|
|
|
export LOCAL_DEV_BUILD=1
|
|
|
export PATH=$ANDROID_HOME/ndk/27.0.12077973/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
|
|
|
export JAVA_HOME="/Applications/AndroidStudio.app/Contents/jbr/Contents/Home" # Make sure to Delete the space (' ') in /Applications/Android Studio -> /Applications/AndroidStudio so that it can be propery read by scripts
|
|
|
export ANDROID_HOME=$HOME/Library/Android/sdk # or $HOME/.mozbuild/android-sdk-macosx/
|
|
|
export ANDROID_NDK_HOME=$ANDROID_HOME/ndk/26.2.11394342 # will need to download via android studio
|
|
|
export GRADLE_HOME=/opt/homebrew/Cellar/gradle/8.10 # or whatever version we currently use for arm64. /usr/local/Cellar/gradle/8.10 for x86_64
|
|
|
export LOCAL_DEV_BUILD=1
|
|
|
export PATH=$ANDROID_HOME/ndk/26.3.11579264/toolchains/llvm/prebuilt/darwin-x86_64/bin/:$PATH # prepend android studios latest ndk that supports at most clang 17 (or whatever version we currently use) to the path so it's clang gets used to build geckoview
|
|
|
```
|
|
|
|
|
|
Make sure that the variables defined are all valid for your setup, and that PATH is now using our newly built clang.
|
... | ... | |