Open main menu

CDOT Wiki β

Changes

Real World Mozilla Incremental Build Lab

99 bytes added, 11:15, 28 February 2007
no edit summary
This lab is designed to give you first-hand experience creating and applying patches, and doing incremental builds of your source tree. The concepts introduced in this lab will help you understand how to make small changes to your tree, share those with others, or use other people's changes.
'''NOTE: portions of this lab are applicable to the tree as at the time of writing (i.e., February 27, 2007), specifically the example patches discussed below. '''
== Instructions ==
Because the source tree is so large, developers use patches as the basic unit of work for passing code back and forth. A patch is a text file that contains information necessary to add or remove lines from a source tree. Patches are created using the '''cvs diff''' command.
 
'''NOTE: replace all uses of ''objdir'' with your object directory path.'''
=== Making a change and doing incremental builds ===
$ make -f client.mk build
or, go to the parallel location in your ''objdir '' and run make there
$ cd mozilla/''objdir''/netwerk/protocol/http
$ make
* Rebuild the necessary parts of your tree:
$ cd mozilla/''objdir''
$ cd modules/libimg
$ make
or, if you prefer one long command:
cd mozilla/''objdir''/modules/libimg && make && cd ../libpr0n && make && cd ../../browser/app && make clean && make
* Run your browser and load the APNG images at: http://littlesvr.ca/apng/