|
|
Line 100: |
Line 100: |
| tar xvf MyDocs/fennec-*.tar | | tar xvf MyDocs/fennec-*.tar |
| ./fennec/fennec | | ./fennec/fennec |
|
| |
| == Building Fennec with XULRunner ==
| |
|
| |
| Fennec is normally built as a standalone app, but it can also run under [[XULRunner]]. Note that this is not fully supported, and some things may work differently in XULRunner builds.
| |
|
| |
| ===Get the source===
| |
|
| |
| Follow the steps from [[#Pulling the code from hg]]
| |
|
| |
| ===Creating a mozconfig===
| |
| <pre>
| |
| # Options for client.mk.
| |
| mk_add_options MOZ_BUILD_PROJECTS="xulrunner mobile"
| |
| mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../objdir
| |
|
| |
| # XULRunner options
| |
| ac_add_app_options xulrunner --enable-application=xulrunner
| |
| ac_add_app_options xulrunner --disable-javaxpcom
| |
| export MOZ_SERVICES_SYNC=1 # Enable Firefox Sync for XULRunner (Bug 581010)
| |
|
| |
| # mobile options
| |
| ac_add_app_options mobile --enable-application=mobile
| |
| ac_add_app_options mobile --with-libxul-sdk=../xulrunner/dist
| |
|
| |
| # For improved compile speeds, all optional.
| |
| #mk_add_options MOZ_MAKE_FLAGS=-j4
| |
| #mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../fennec-e10s
| |
| #export CCACHE_HARDLINK=1
| |
| #ac_add_options --with-ccache=ccache
| |
|
| |
| # Make a debug build, optional.
| |
| #export MOZ_DEBUG_SYMBOLS=1
| |
| #ac_add_options --enable-debug
| |
| #ac_add_options --disable-optimize
| |
| </pre>
| |
|
| |
| Note: if you are building for x86 ubuntu, you might want to add "ac_add_options --disable-dbus" to your mozconfig, or obtain the necessary dbus libraries.
| |
|
| |
| === Build ===
| |
|
| |
| make -f client.mk build
| |
|
| |
| === Run ===
| |
|
| |
| cd ../objdir/mobile/dist/bin
| |
| ./fennec
| |
|
| |
| === Using the Gecko SDK===
| |
|
| |
| Rather than build XULRunner yourself, you can use the Gecko SDK. First download and extract the SDK from http://ftp.mozilla.org/pub/xulrunner/nightly/latest-trunk/
| |
|
| |
| Use the following mozconfig file, using the correct path to the SDK you downloaded and extracted:
| |
|
| |
| # Options for client.mk.
| |
| mk_add_options MOZ_BUILD_PROJECTS="xulrunner mobile"
| |
| mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../objdir
| |
|
| |
| ac_add_options --enable-application=mobile
| |
| ac_add_options --with-libxul-sdk=/PATH/TO/SDK
| |
| ac_add_options --with-system-libxul
| |
|
| |
|
| == Building Win32 == | | == Building Win32 == |