Mobile/e10s: Difference between revisions

Jump to navigation Jump to search
1,452 bytes added ,  29 March 2010
No edit summary
Line 39: Line 39:


== How to build ==
== How to build ==
* pull e10s repo
 
** http://hg.mozilla.org/projects/electrolysis
=== Setting up scratchbox (for Maemo devices only) ===
* pull e10s patch queue and apply
 
** pull mq patch directory http://hg.mozilla.org/users/dougt_mozilla.com/e10s-patches/ into .hg/patches
 
** NOTE: if you push to the patches queue, please don't modify status
=== Getting the source ===
* pull e10s fennec repo
 
** http://hg.mozilla.org/users/pavlov_mozilla.com/mobile-e10s/
Get mozilla and mobile projects off mercurial:
* mozconfig:
<pre>
** http://people.mozilla.org/~dougt/random/e10s/mozconfig
hg clone http://hg.mozilla.org/projects/electrolysis
cd electrolysis
hg clone http://hg.mozilla.org/users/pavlov_mozilla.com/mobile-e10s mobile
</pre>
 
Right now, for Fennec we need additional platform patches on top of electrolysis branch.  You will need mq for this.
<pre>
cd .hg
hg clone http://hg.mozilla.org/users/dougt_mozilla.com/e10s-patches/ patches
</pre>
 
::<b>NOTE</b>: when getting a new patch queue, don't forget to <pre>hg qpop -a</pre> before you do so!
 
::<b>NOTE for contributors:</b> If you push to the patches queue, please don't modify the status file.
 
=== Building for Maemo devices ===
 
Create your .mozconfig in your electrolysis directory.  Your .mozconfig should look something like this:
 
<pre>
# For improved compile speeds, all optional.
export CCACHE_HARDLINK=1
export CC="ccache gcc"
export CXX="ccache g++"
mk_add_options MOZ_MAKE_FLAGS=-j3
 
# Make an optimized debug build.
export MOZ_DEBUG_SYMBOLS=1
ac_add_options --enable-optimize
ac_add_options --disable-debug
ac_add_options --enable-debugger-info-modules=yes
 
# important mobile options
mk_add_options MOZ_OBJDIR=mobilebase-qt-@CONFIG_GUESS@
ac_add_options --enable-application=mobile
ac_add_options --with-arm-kuser
 
# important qt options
ac_add_options --enable-default-toolkit=cairo-qt
ac_add_options --disable-crashreporter
ac_add_options --with-maemo-version=5
 
# e10s
ac_add_options --enable-ipc
</pre>
 
:: Pro tip: if you are building for desktop and device, take the environment variable MOZCONFIG to your advantage.  Put your device mozconfig in your scratchbox home directory.  Then, in your scratchbox session:
 
:: <pre>[scratchbox $] echo export MOZCONFIG=$HOME/.mozconfig >> .bash_profile</pre>
 
Finally, run: <pre>make -f client.mk</pre>


== How to run ==
== How to run ==
101

edits

Navigation menu