The Mozilla
Organization
Our Mission
Who We Are
Getting Involved
Community
Editorials
What's New
Newsbot
Development
Roadmap
Module Owners
Blue Sky
Projects
Status
Tools
Products
Source Code
Binaries
Documentation
License Terms
Bug Reports
Quality
Search
Feedback


Building Fizzilla

by Mike Pinkerton
last modified on 5/11/1999

Setting up the environment

These are the steps I used to get an environment that can build Mozilla under CarbonLib. I started with the Pro4 distribution off the CD (with our modifications and updates), and the CarbonSDK 1.5 from the CD seeded to us by Apple. Since we are building a CFM app (not Mach-o), we don't need all the mach-o compilers, linkers, and pref panels (thank god).

  1. Copy the "Carbon Support" folder from the CarbonSDK into the "Metrowerks Code Warrior" (henceforth called "MCW") folder, and rename it to "zzzCarbon Support" so it doesn't interfere with the access paths.
  2. Replace the "MSL C" folder in the original MSL folder, with the new one in the "Carbonated MSL" folder from the CarbonSDK.
  3. Rename "MacOS Support/Headers/Universal Headers" to "zzzUniversal Headers"
  4. Rename "MacOS Support/Headers/Rez Headers" to "zzzRez Headers"
  5. Copy "Carbon Support/Universal Interfaces/CIncludes" to "MacOS Support/Headers" and name it "Universal Interfaces"
  6. Copy "Carbon Support/Universal Interfaces/RIncludes" to "MacOS Support/Headers" and name it "Rez Headers"
  7. Copy the stub "CarbonSupport/CarbonLib/Stub/CarbonLib" from the SDK's CarbonSupport folder to the "MacOS Support/Libraries" folder. Doesn't really matter where you put it inside there.

How to build

  1. Start by turning on TARGET_CARBON in mozilla/config/mac/DefinesMac.h
  2. Turn on the $CARBON variable in mozilla/builds/mac/BuildNGLayout.pl (or BuildNGLayoutDebug.pl)
  3. Build as normal


written by Mike Pinkerton (pinkerton@netscape.com)



Copyright © 1998 The Mozilla Organization.