BUILD.txt
author Jonathan Griffin <jgriffin@mozilla.com>
Thu, 29 Mar 2012 18:03:54 -0700
changeset 646 2e792d5f19f9
parent 617 365eacd42c33
permissions -rw-r--r--
Make building easier
There are a couple of different ways to build ProfileManager:

1 = using setup_build_env.sh

You can run setup_build_env.sh once, to setup the necessary files for
building ProfileManager.  This will download mozilla-release and the
xulrunner-sdk for you, in the necessary diretory structure.  After it 
finishes, you may build using:

  cd ${PROFILEMANAGER_DIR}/output/gecko/src
  make -f client.mk build

After the build is complete, you can package the build using:

  cd ../obj-profilemanager/profilemanager
  make package

2 = building a mac universal binary

This builds xulrunner as a universal binary for the Mac, and creates
a package for it as well.  To use it you must download both the i386
and the x86_64 Mac xulrunner SDK's from e.g., 
http://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/11.0/sdk/,
and update the two --with-libxul-sdk lines in the mozconfig as needed.

You also need to sync the profilemanager source into a mozilla-central
tree as shown above, and build using the same make command:

  hg clone http://hg.mozilla.org/mozilla-central src
  cd src
  hg clone http://hg.mozilla.org/automation/profilemanager
  cd ..
  export MOZCONFIG={$PROFILEMANAGER_DIR}/.mozconfig-mac-universal-binary
  make -f client.mk build

Once the build is complete, a DMG containing the universal binary will 
be found at:

  ../obj-profilemanager/i386/dist/universal/package