Join the Mozilla’s Test Days event from Dec 2–8 to test the new Firefox address bar on Firefox Beta 134 and get a chance to win Mozilla swag vouchers! 🎁

Pretraži podršku

Izbjegni prevare podrške. Nikad te nećemo tražiti da nas nazoveš, da nam pošalješ telefonski broj ili da podijeliš osobne podatke. Prijavi sumnjive radnje pomoću opcije „Prijavi zlouporabu”.

Saznaj više

I don't understand the documentation for .mozconfig. Can anyone help me define a local build to build as a release?

  • 1 odgovor
  • 1 ima ovaj problem
  • 3 prikaza
  • Posljednji odgovor od philipp

more options

I haven't been able to find much/any documentation on the official build process, and looking at the choices listed from ./configure --help, I would have expected some of those options to work, but I continue to not have crash reporter enabled, strict mode is turned on, and ultimately, I have no idea how to mimic the baseline of what mozilla does for their release builds, so that I can work from there to determine what I want to change, and how it impacts the rest of the source.

Thanks.



  1. mozilla config
  2. use:
  3. ./configure --help
  4. to get the full list
  1. Build Firefox for Android:

ac_add_options --enable-application=mobile/android ac_add_options --target=arm-linux-androideabi

  1. With the following Android SDK and NDK:

ac_add_options --with-android-sdk="/Users/anthonybarone/.mozbuild/android-sdk-macosx" ac_add_options --with-android-ndk="/Users/anthonybarone/.mozbuild/android-ndk-r10e"

  1. Write build artifacts to:

mk_add_options MOZ_OBJDIR=./build-dir

  1. use ccache for faster builds

ac_add_options --with-ccache=/usr/local/bin/ccache

  1. enable release, official branding, and performance optimizations

ac_add_options --enable-release ac_add_options --disable-debug ac_add_options --enable-optimize

  1. Disable crash reporter (--disable-crashreporter doesn't seem to work)

export MOZ_CRASHREPORTER_DISABLE=1

I haven't been able to find much/any documentation on the official build process, and looking at the choices listed from ./configure --help, I would have expected some of those options to work, but I continue to not have crash reporter enabled, strict mode is turned on, and ultimately, I have no idea how to mimic the baseline of what mozilla does for their release builds, so that I can work from there to determine what I want to change, and how it impacts the rest of the source. Thanks. --------------------------------------------------------------------------------------------------------------------------------------------------------- # mozilla config # use: # ./configure --help # to get the full list # Build Firefox for Android: ac_add_options --enable-application=mobile/android ac_add_options --target=arm-linux-androideabi # With the following Android SDK and NDK: ac_add_options --with-android-sdk="/Users/anthonybarone/.mozbuild/android-sdk-macosx" ac_add_options --with-android-ndk="/Users/anthonybarone/.mozbuild/android-ndk-r10e" # Write build artifacts to: mk_add_options MOZ_OBJDIR=./build-dir # use ccache for faster builds ac_add_options --with-ccache=/usr/local/bin/ccache # enable release, official branding, and performance optimizations ac_add_options --enable-release ac_add_options --disable-debug ac_add_options --enable-optimize # Disable crash reporter (--disable-crashreporter doesn't seem to work) export MOZ_CRASHREPORTER_DISABLE=1

Svi odgovori (1)

more options

hi, you could type about:buildconfig into the addressbar of firefox for android (or firefox) to get some information about the configuration of the official builds.