Penelope Developer Page: Difference between revisions

Jump to navigation Jump to search
Added section on building universal binaries
(CVS commands updated to get the right branch of the code, and ensure the files are correct)
(Added section on building universal binaries)
Line 60: Line 60:
     ac_add_options --disable-tests
     ac_add_options --disable-tests
     ac_add_options --enable-extensions=default,penelope
     ac_add_options --enable-extensions=default,penelope
==== Making universal binary builds on OS X ====
[http://developer.apple.com/transition/ Universal binaries] are executables for Mac OSX that contain both PowerPC and Intel processor binaries.  That way you can distribute just one application and installer that will work on both types of processors.
Be sure that you can successfully build for just one processor using the steps above.  That way you won't be confused if a problem arises and not know whether the issue is with building in general, or with universal binaries in particular.
The Mozilla Developer center has some [http://developer.mozilla.org/en/docs/Mac_OS_X_Universal_Binaries documentation] that you will need to follow.  In particular there are a couple of things worth pointing out as they can cause problems if not set up correctly:
* Make sure you have at least version 2.4.1 of [http://developer.apple.com/tools/xcode Xcode] due to a [http://developer.mozilla.org/en/docs/Mac_OS_X_Build_Prerequisites#Troubleshooting bug] in Xcode 2.4.  You have to be a [http://developer.apple.com/membership Apple Developer Connection member], but that's free and only requires a valid email address.
* Install the 10.2.8 SDK from the Xcode disk image.  If you've already installed XCode, then you can easily add the 10.2.8 SDK by running the CrossDevelopment.mpkg package from the Packages folder of the Xcode disk image.  The 10.2.8 SDK doesn't get installed by default, so you'll have to do a "Customize" install and select the 10.2.8 SDK.
* You must use the <code>MOZ_OBJDIR</code> option in your <code>.mozconfig</code> file in order to place the generated files outside of your mozilla source tree.  This is because both PPC and Intel binaries need to be created and must be kept separate.  The build process will create two directories (<code>ppc</code> and <code>i386</code>) in your <code>MOZ_OBJDIR</code> directory, and the universal build will be placed in <code>ppc/dist/universal</code> with a symbolic link at <code>i386/dist/universal</code>.


=== Windows ===
=== Windows ===
145

edits

Navigation menu