tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

base-browser-android (1680B)


      1 # Changes on this file might need to be synchronized with mozconfig-android-all!
      2 # See also tor-browser#43151.
      3 
      4 export MOZILLA_OFFICIAL=1
      5 
      6 ac_add_options --enable-optimize
      7 ac_add_options --enable-rust-simd
      8 
      9 ac_add_options --enable-application=mobile/android
     10 
     11 CC="clang"
     12 CXX="clang++"
     13 ac_add_options --enable-linker=lld
     14 
     15 if test -n "$ANDROID_HOME"; then
     16     ac_add_options --with-android-sdk=$ANDROID_HOME
     17 fi
     18 
     19 if test -n "$ANDROID_NDK_HOME"; then
     20   ac_add_options --with-android-ndk=$ANDROID_NDK_HOME
     21 fi
     22 
     23 if test -n "$GRADLE_HOME"; then
     24     ac_add_options --with-gradle=$GRADLE_HOME/bin/gradle
     25 fi
     26 # Otherwise (as per /mobile/android/gradle.config) a version will be downloaded by the gradle wrapper when needed
     27 # so don't use this override, and let it do it's thing
     28 
     29 ac_add_options --enable-strip
     30 ac_add_options --enable-install-strip
     31 ac_add_options --disable-tests
     32 ac_add_options --disable-debug
     33 ac_add_options --disable-rust-debug
     34 
     35 ac_add_options --disable-updater
     36 ac_add_options --disable-crashreporter
     37 ac_add_options --disable-webrtc
     38 ac_add_options --disable-parental-controls
     39 
     40 ac_add_options --enable-proxy-bypass-protection
     41 ac_add_options --disable-system-policies
     42 
     43 # See tor-browser#41131
     44 ac_add_options --disable-backgroundtasks
     45 
     46 ac_add_options --enable-minify=properties,js
     47 
     48 # Disable telemetry
     49 ac_add_options MOZ_TELEMETRY_REPORTING=
     50 
     51 if test -n "$LOCAL_DEV_BUILD"; then
     52     # You must use the "default" bogus channel for dev builds
     53     ac_add_options --enable-update-channel=default
     54     ac_add_options --with-base-browser-version=dev-build
     55     ac_add_options --disable-minify
     56 fi
     57 
     58 if test -z "$WASI_SYSROOT"; then
     59     ac_add_options --without-wasm-sandboxed-libraries
     60 fi