667
edits
Changes
→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 instructions below assume the use of an objdir. Replace all uses of ''objdir'' with your object directory path.'''
=== Making a change and doing incremental builds ===
* Make a small change to a file in your tree, for example, a .cpp file in '''mozilla/netwerk/protocol/http/src'''. Here is a possible change:
#include <stdio.h>
#endif
...''inside a function somewhere''...
...
* Make sure your change compiles. You need to rebuild your tree in order to test using one of the following methods:
$ make -f client.mk build
or, to make things go faster, move to the parallel location in your ''objdir'' and run make there
$ cd mozilla/''objdir''/netwerk/protocol/http/src
* One of the projects a Seneca student (Andrew Smith) has been working on is support for animated PNGs ([[APNG]]). The work is nearing completion and being reviewed. Start by reading the bug: https://bugzilla.mozilla.org/show_bug.cgi?id=257197.
* Download Andrew's latest patch ([https://bugzilla.mozilla.org/attachment.cgi?id=254449 attachment 254449] at the time of writing). '''Save the file ''' (do not copy-paste it) to your '''mozilla /''' directory.
* Apply the patch, using what you learned above. Remember the '''--dry-run''' option and to examine the paths of files in the patch.