NGLayout Windows Build Instructions
This document explains how to build NGLayout for the Windows platform.
Required Tools:
-
Microsoft Visual C++ version 4.2 or later
-
The same set of tools for building Mozilla
Setting up:
Building:
-
You need to be running a vanilla command prompt. Other shells may work,
but you might have to tweak makefiles.
-
Build the tools: This generates several tools that handle things
like dependency generation
-
cd mozilla\config
-
nmake /f makefile.win
-
Build the NGLayout: This will do a complete build of the source
tree. You will end up with a viewer.exe at the end. The viewer.exe will
be in your dist\win32_[OD].obj\bin directory (O will be used when you don't
set MOZ_DEBUG; D will be used when you set MOZ_DEBUG).
-
cd mozilla
-
nmake /f nglayout.mak
Running:
-
Once you have built the system, do this to run the viewer program (the
viewer program is a simple test program that uses the nsIWebWidget API
to embed a web widget object). The viewer program has a few basic menu
items, include "Samples" which load sample tests.
-
cd mozilla\dist\win32_[OD].obj\bin
-
.\viewer.exe
Notes:
-
This build process does not use Visual C++ generated project files for
several reasons having to do with (among other things) size, maintainability,
and the long term desire to start using more of tools like gmake, or plug
and play developer tools. This does not preclude you from using the Visual
C++ IDE, or it's debugger. Once you have built a viewer.exe do this to
run it under the debugger:
-
cd mozilla\dist\win32_[OD].obj\bin
-
msdev viewer.exe
Copyright © 1998 Netscape
Communications Corporation