Created
May 21, 2012 17:04
-
-
Save arcturus/2763303 to your computer and use it in GitHub Desktop.
Compiling B2G on your mac
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
# Before start, download and install the macosx build prerequisites (there are web pages for all OS) | |
# https://developer.mozilla.org/En/Developer_Guide/Build_Instructions/Mac_OS_X_Prerequisites | |
# Using brew ... | |
brew install yasm mercurial libidl | |
# Install autoconf 2.13 (this specific version) | |
brew install https://raw.github.com/Homebrew/homebrew-versions/master/autoconf213.rb | |
# Now we are ready for getting the mozilla code https://developer.mozilla.org/En/Developer_Guide/Source_Code/Mercurial | |
# Let's get the code via the the bundle option | |
wget http://ftp.mozilla.org/pub/mozilla.org/firefox/bundles/mozilla-central.hg | |
# Initialise a new mercurial repo | |
hg init src | |
cd src | |
hg unbundle /path/to/your/mozilla-centra.hg | |
# Update the repo | |
hg pull | |
# Get the changes | |
hg up | |
# Once we have the code up to date, create or edit the file .mozconfig within the src directory, it should look like this: | |
mk_add_options MOZ_OBJDIR=../obj-b2g | |
mk_add_options MOZ_MAKE_FLAGS="-j4 -s" | |
ac_add_options --enable-application=b2g | |
ac_add_options --disable-libjpeg-turbo | |
ac_add_options --disable-tests | |
ac_add_options --disable-b2g-ril | |
# MOZ_OBJDIR will be where our binaries will be created during compilation | |
# MOZ_MAKE depends on your machine (number of multiple tasks you are able to launch) | |
# --enable-application This is the app from the whole m-c that we want to build. (If you want to build firefox, change it) | |
# --disable-tests test disabled to make the compilation faster | |
# --disable-b2g-ril radio disabled to run in the emulator (you can forward the ril from the phone). | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment