Changes

Jump to: navigation, search

McCoy:Building

970 bytes removed, 09:06, 21 April 2008
Update build docs
McCoy includes binary components required for working with cryptographic keys. This means that it is unfortunately necessary to build as part of a regular using the Mozilla build processsystem. The rest of this page assumes you have an understanding of how to build a Mozilla app, preferable XULRunner.
=Initial Requirements=
 
McCoy must be built against the Gecko 1.9 SDK, you can download this from http://ftp.mozilla.org/pub/mozilla.org/xulrunner/nightly/latest-trunk/. Extract it wherever you like. For OSX universal builds you need both SDKs, for normal OSX builds just the i386 SDK is needed. If you need to build McCoy on a powerpc Mac then you will need to create your own SDKs.
You must checkout a copy of the Mozilla trunk with XULRunner (MOZ_CO_PROJECTS=xulrunner), see [http://developer.mozilla.org/en/docs/Mozilla_Source_Code_(CVS) getting the source code by CVS] for further information.
For most platforms McCoy can be built using a single mozconfig:
ac_add_options --disable-tests ac_add_options --disable-debug ac_add_options --enable-optimize mk_add_options MOZ_BUILD_PROJECTS="xulrunner . $topsrcdir/mccoy"/config/mozconfig mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../mccoybasemccoyobj ac_add_app_options xulrunner --enable-application=xulrunner ac_add_app_options xulrunner --disable-installer ac_add_app_options mccoy --enable-application=mccoy ac_add_app_options mccoy ac_add_options --with-libxul-sdk=$topsrcdir/../xulrunner/dist-sdk
This will build in two passes. The first being a full build of XULRunner in mccoybase/xulrunner, Change the second building McCoy into mccoybase/mccoy. Note that despite the argument name, a full build of XULRunner is required, the libxul-sdk is not enough on its ownpaths as appropriate.
To package up McCoy change to mccoybase/mccoy mccoyobj and type <code>make package</code>
=OSX Universal Builds=
<div class="warning">This isn't actually working right yet, changes to the build system are necessary</div> If you wish to build an OSX universal build then the process is requires a slightly more complicated slightly. You need two mozconfig files, one to compile a universal XULRunner and the second requires both i386 and powerpc sdks to compile the universal McCoy: For XULRunner:  . $topsrcdir/build/macosx/universal/mozconfig ac_add_app_options ppc --enable-prebinding ac_add_options --disable-tests ac_add_options --disable-debug ac_add_options --enable-optimize mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../mccoybase/xulrunner ac_add_options --enable-application=xulrunner ac_add_options --disable-installer For McCoybe available:
. $topsrcdir/mccoy/config/mozconfig
. $topsrcdir/build/macosx/universal/mozconfig
ac_add_app_options ppc --enable-prebinding
ac_add_options --disable-tests ac_add_options --disable-debug ac_add_options --enable-optimize mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../mccoybase/mccoy ac_add_options --enable-application=mccoymccoyobj ac_add_app_options ppc --with-libxul-sdk=..$topsrcdir/../xulrunner-sdk/ppc/distpowerpc ac_add_app_options i386 --with-libxul-sdk=..$topsrcdir/../xulrunner-sdk/i386/dist Packaging should be possible by running <code>make package</code> in mccoybase/mccoy/ppc
Canmove, confirm
1,567
edits

Navigation menu