130
edits
| Line 42: | Line 42: | ||
These directions assume you have a '''c:\mozilla-build''' directory, | These directions assume you have a '''c:\mozilla-build''' directory, | ||
created by downloading the | created by downloading the | ||
[[http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/MozillaBuildSetup-1.3.exe Windows Mozilla Build Setup version 1.3]]: | [[http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/MozillaBuildSetup-1.3.exe Windows Mozilla Build Setup version 1.3]]. | ||
===Mercurial Version In Mozilla-Build version 1.3=== | |||
NOTE: As of 20-Nov-2008, Mozilla Build Setup version 1.3 includes a slightly stale version | |||
of Mercurial (version 1.0.1+20080525). The latest Mercurial has a version number of | |||
1.0.2+20080813. | |||
The latest Mercurial is downloadable directly from [[http://www.selenic.com/mercurial/wiki/index.cgi/Download Selenic's Web Site]]. | |||
In order to use the latest Mercurial, you have two basic choices: | |||
(1) Remove the c:/mozilla-build/hg directory, and replace it with the contents of | |||
C:/Program Files/Mercurial after you have installed the latest download from Selenic. | |||
(2) Go into c:/mozilla-build/msys/etc/profiles.d/profile-extrapaths.sh and modify | |||
the /c/mozilla-build/hg directory to say /c/Program Files/Mercurial | |||
You can try updating to the latest version of Mercurial if you have troubles with hg.exe | |||
===Downloading The Sources And Patch Queue=== | |||
Run the batch file '''C:\mozilla-build\start-msvc8.bat''' (or '''C:\mozilla-build\start-msvc9.bat''') | Run the batch file '''C:\mozilla-build\start-msvc8.bat''' (or '''C:\mozilla-build\start-msvc9.bat''') | ||
| Line 48: | Line 68: | ||
All further commands are to be run inside MingW32. | All further commands are to be run inside MingW32. | ||
$ '''cd /c/ | $ '''cd /c/hg # assuming you've created /c/hg/ for your mozilla source tree''' | ||
$ '''hg clone http://hg.mozilla.org/mozilla-central''' | $ '''hg clone http://hg.mozilla.org/mozilla-central''' | ||
| Line 67: | Line 87: | ||
$ '''cd ..''' | $ '''cd ..''' | ||
$ '''export PATH="$PATH:$topsrcdir/build/wince/tools/bin"''' | $ '''export PATH="$PATH:$topsrcdir/build/wince/tools/bin"''' | ||
===Setting Up Your MOZCONFIG File=== | |||
Building options are controlled by mozconfig, a master file within your top source directory (in our case, /c/hg/mozilla-central/mozconfig). '''Here is our current mozconfig for building WinMobile:''' | |||
''' | ''# Options for client.mk.'' | ||
''mk_add_options MOZ_BUILD_PROJECTS="xulrunner"'' | |||
''mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/objdir-wm6'' | |||
''# Disabling tests due to bug 454881'' | |||
''ac_add_options --disable-tests'' | |||
''#WINCE specific options'' | |||
''ac_add_options --disable-javaxpcom'' | |||
''ac_add_options --disable-plugins'' | |||
''ac_add_options --disable-accessibility'' | |||
''ac_add_options --disable-printing'' | ''ac_add_options --disable-printing'' | ||
''ac_add_options --disable-oji'' | ''ac_add_options --disable-oji'' | ||
''ac_add_options --disable-vista-sdk-requirements'' | |||
''ac_add_options --disable-updater'' | |||
''ac_add_options --disable-installer'' | |||
''ac_add_options --disable-xpinstall'' | |||
''ac_add_options --enable-image-decoders="png gif jpeg"'' | |||
''CROSS_COMPILE=1'' | |||
''CC=$topsrcdir/build/wince/tools/bin/arm-wince-gcc'' | |||
''CXX=$topsrcdir/build/wince/tools/bin/arm-wince-gcc '' | |||
''CPP=$topsrcdir/build/wince/tools/bin/arm-wince-gcc'' | |||
''LD=$topsrcdir/build/wince/tools/bin/arm-wince-link'' | |||
''AR=$topsrcdir/build/wince/tools/bin/arm-wince-lib'' | |||
''AS=$topsrcdir/build/wince/tools/bin/arm-wince-as'' | |||
''MIDL=/c/Program\ Files/Microsoft\ Visual\ Studio\ 9/VC/ce/bin/x86_arm/midl.exe'' | |||
''RC=$topsrcdir/build/wince/tools/bin/arm-wince-res'' | |||
''mk_add_options AR=@TOPSRCDIR@/build/wince/tools/bin/arm-wince-lib'' | |||
''ac_add_options --target=arm-wince'' | |||
''ac_add_options --enable-win32-target=WINCE'' | |||
''ac_add_options --enable-default-toolkit=cairo-windows'' | |||
''ac_add_options --with-wince-sdk="c:/program files/windows mobile 6 sdk/pocketpc/include/armv4i"'' | |||
===Building XULRunner and Mobile Fennec Code=== | |||
'''Now you can build xulrunner and the mobile fennec code using these commands:''' | |||
$ '''hg qpush -a''' | |||
$ '''make -f client.mk build''' | |||
==Notes After Building== | ==Notes After Building== | ||
edits