Mobile/Build/Fennec: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 40: | Line 40: | ||
make -f client.mk build | make -f client.mk build | ||
</pre> | |||
==Building Fennec with the Gecko SDK== | |||
First download the appropriate Gecko SDK from [ftp://ftp.mozilla.org/pub/xulrunner/nightly/latest-trunk/] | |||
Then pull Fennec from hg | |||
<pre> | |||
hg clone http://hg.mozilla.org/mobile-browser mobile | |||
</pre> | |||
Your mozconfig should look like this: | |||
<pre> | |||
# Options for client.mk. | |||
mk_add_options MOZ_BUILD_PROJECTS="xulrunner mobile" | |||
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../mobilebase | |||
# Global options | |||
#ac_add_options --enable-debug | |||
#ac_add_options --disable-optimize | |||
#ac_add_options --enable-logging | |||
#ac_cv_visibility_pragma=no | |||
#ac_add_options --enable-timeline | |||
ac_add_options --disable-dbus | |||
# mobile options | |||
ac_add_options --enable-application=mobile | |||
ac_add_options --with-libxul-sdk=<path to the SDK you downloaded and extracted>/dist | |||
</pre> | |||
And finally, build | |||
<pre> | |||
make -f client.mk build | |||
</pre> | </pre> |
Revision as of 21:44, 13 May 2008
Building Fennec and Xulrunner
pull the code from hg
hg clone http://hg.mozilla.org/mozilla-central cd mozilla-central hg clone http://hg.mozilla.org/mobile-browser mobile
Your mozconfig should look like this:
# Options for client.mk. mk_add_options MOZ_BUILD_PROJECTS="xulrunner mobile" mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../mobilebase # Global options #ac_add_options --enable-debug #ac_add_options --disable-optimize #ac_add_options --enable-logging #ac_cv_visibility_pragma=no #ac_add_options --enable-timeline ac_add_options --disable-dbus # XULRunner options ac_add_app_options xulrunner --enable-application=xulrunner ac_add_app_options xulrunner --disable-javaxpcom ac_add_app_options xulrunner --with-arm-kuser # mobile options ac_add_app_options mobile --enable-application=mobile ac_add_app_options mobile --with-libxul-sdk=../xulrunner/dist
then pull nss and nspr, and build:
python2.5 client.py checkout make -f client.mk build
Building Fennec with the Gecko SDK
First download the appropriate Gecko SDK from [1]
Then pull Fennec from hg
hg clone http://hg.mozilla.org/mobile-browser mobile
Your mozconfig should look like this:
# Options for client.mk. mk_add_options MOZ_BUILD_PROJECTS="xulrunner mobile" mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../mobilebase # Global options #ac_add_options --enable-debug #ac_add_options --disable-optimize #ac_add_options --enable-logging #ac_cv_visibility_pragma=no #ac_add_options --enable-timeline ac_add_options --disable-dbus # mobile options ac_add_options --enable-application=mobile ac_add_options --with-libxul-sdk=<path to the SDK you downloaded and extracted>/dist
And finally, build
make -f client.mk build