SeaMonkey:hg-based build: Difference between revisions

building SeaMonkey - now with the test repository
(rewriting the head segment, other parts will be rewritten in smaller steps)
(building SeaMonkey - now with the test repository)
Line 5: Line 5:
=== building SeaMonkey ===
=== building SeaMonkey ===


* pull mozilla-central into mozilla/
* pull the [http://hg.mozilla.org/users/kairo_kairo.at/index.cgi/calemaisu-test/ test repository]
* pull from CVS: suite/
  hg clone http://hg.mozilla.org/users/kairo_kairo.at/calemaisu-test/
* pull from CVS: mailnews/
* update/pull all other needed source via client.py
* pull from CVS: mozilla/extensions/[irc|typeaheadfind|venkman|wallet] (those get checked out directly into mozilla/extensions/ as those that survive will end up in separate repositories and not mailsuite!)
  python client.py checkout
* create directory: directory/ - symlink into mozilla/
* check if the patch for {{bug|442484}} has landed, else apply it manually (note that with hg, all patches need to applied with at least -p1 level in patch!)
* pull from CVS: directory/c-sdk and directory/xpcom
* make sure you have autoconfig 2.13 installed, see [http://developer.mozilla.org/en/docs/Mozilla_Source_Code_%28Mercurial%29#Autoconf_2.13 the comment about this on devmo]
* mozconfig: --enable-application=../suite
* build using client.mk:
* mozconfig: mk_add_options MOZ_OBJDIR=/path/to/objdir/mozilla  (note the "mozilla" at the end!)
  gmake -f client.mk build
* suite/confvars.sh: remove xml-rpc from MOZ_EXTENSIONS_DEFAULT in line 50 ({{bug|438676}})
* suite/build.mk: prefix mailnews/ and suite/ with ..
* suite/makefiles.sh: prefix all suite/ directories in add_makefiles with "../"
* mailnews/makefiles.sh: prefix all mailnews/ directories in add_makefiles with "../"
* suite/confvars.sh: add the following line before MOZ_APP_VERSION (line 47) (without indentation):
    SEAMONKEY_VERSION=`cat $topsrcdir/../suite/config/version.txt`
* suite/app-config.mk: create this file, containing the following lines (without indentation):
    MOZ_SUITE = 1
    SEAMONKEY_VERSION = $(MOZ_APP_VERSION)
    DEFINES += -DMOZ_SUITE=1
* mozilla/toolkit/toolkit-makefiles.sh: move mailnews block at line 913 to suite/makefiles.sh line 38
* cd mailnews/; sed -i 's/^DEPTH.*\.\.$/&\/mozilla/g' `find . -name Makefile.in`
* cd suite/; sed -i 's/^DEPTH.*\.\.$/&\/mozilla/g' `find . -name Makefile.in`
* suite/debugQA/locales/Makefile.in: prefix relativesrcdir in line 44 with ../
* suite/locales/Makefile.in: prefix relativesrcdir in line 41 with ../
* suite/build/Makefile.in: in the LOCAL_INCLUDES starting in line 74, add a ../ between $(topsrcdir)/ and suite/
 
build using
export MOZCONFIG=/path/to/mozconfig
cd mozilla
gmake -f client.mk build


=== for unit tests ===
=== for unit tests ===
Account confirmers, Anti-spam team, canmove, Confirmed users, Bureaucrats and Sysops emeriti
4,083

edits