CloudServices/Sync/FxSync/Archived/Building:Older Versions

From MozillaWiki
< CloudServices‎ | Sync‎ | FxSync‎ | Archived
Revision as of 23:27, 13 May 2008 by Varmaa (talk | contribs) (Added manual breadcrumb.)
Jump to navigation Jump to search

Back to Labs/Weave.

Building Weave

Prerequisites

Before you can build Weave, you'll need a few tools:

1. A C compiler.

2. If you're on Windows, you'll need cygwin.

3. If you want to commit changes to Weave's source code, you'll need a Mercurial client, available here.

4. The Gecko SDK, available here.

Retrieving the Source

Retrieve the Weave source code from the Mozilla Mercurial source repository using the following command:

 hg clone http://hg.mozilla.org/labs/weave

Alternatively, you can also retrieve the latest tarball of the source from:

 http://hg.mozilla.org/labs/weave/index.cgi/archive/tip.tar.gz

Running the Build Script

1. Set the MOZSDKDIR environment variable to the location of your Gecko SDK, e.g.:

 export MOZSDKDIR=/path/to/gecko/sdk

2. Run the build.sh script in the root directory of the Weave checkout, e.g.:

 ./build.sh

This should build Weave and run its unit tests.