====== Getting the Source ====== ===== Prerequisites ===== * AllPeers is Mozilla extensions and it uses a lot of its libraries. In order to build it, you'll need Mozilla's sources first. * Please, see [[http://developer.mozilla.org/en/docs/Build_Documentation|Mozilla's build documentation]] to see how to configure build environment, get the mozilla's source and build it. On this page, you'll find AllPeers specific information. ==== System Specific Prerequisites ==== === Windows === * Follow [[http://developer.mozilla.org/en/docs/Windows_Build_Prerequisites]]. This note adds some hints how to execute the steps described there. * When installing cygwin, check that modules listed in '''complete cygwin package list for building Mozilla''' are selected including autoconf 2.13. Install to the default location c:\cygwin. Rename c:\cygwin\bin\link.exe to c:\cygwin\bin\glink.exe. * Use make version not higher then **[[http://cygwin.paracoda.com/release/make/make-3.80-1.tar.bz2|3.80-1]]**. * Take [[http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/moztools-static.zip|moztools-static.zip]] version '''AND''' your specific version (for MS VS.NET 2003 aka MSVC71 it is [[ftp://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/historic/vc71/vc71-glib-1.2.10-bin.zip|vc71-glib-1.2.10-bin.zip]] and [[ftp://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/historic/vc71/vc71-libIDL-0.6.8-bin.zip|vc71-libIDL-0.6.8-bin.zip]]. Install to a directory outside of c:\cygwin (for instance c:\usr\lib\moztools) ! mkdir /cygdrive/c/usr /cygdrive/c/usr/lib/moztools * Prepare directory for Mozilla source code mkdir /cygdrive/c/usr/src cd /cygdrive/c/usr/src * Download [[src:batch_file_for_building_mozilla_with_msvc71]] to your desktop and use to start your shell for building Mozilla. Change path to moztools if necessary. ===== Getting the Source Code ===== ==== Firefox 2.0 - Mozilla 1.8 Branch ==== * Use **MOZILLA_1_8_BRANCH** revision from CVS for compilation and developement (see [[http://developer.mozilla.org/en/docs/Download_Mozilla_Source_Code|Mozilla Guide]] for getting the source code). Firefox 1.5 uses MOZILLA_1_8_0_BRANCH. # Use password: anonymous cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot login cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co -r MOZILLA_1_8_BRANCH mozilla/client.mk cd mozilla make -f client.mk checkout MOZ_CO_PROJECT=browser * In order to update branch use cvs up -r MOZILLA_1_8_BRANCH client.mk make -f client.mk ==== AllPeers ==== * Check out 'allpeers' module to the extensions directory: CVSROOT=:pserver:cvsanon@krtek.allpeers.com:/opt/cvs-mirror cvs -d $CVSROOT login cd extensions cvs -d $CVSROOT co allpeers Now, you can continue with [[src:building|building]].