Changes

Jump to: navigation, search

User:RichardChu/Assignment 01: Building Firefox

113 bytes added, 18:04, 19 September 2006
The Build
bash --login -i
A command prompt was opened (Start -> Run... -> cmd) and the present working directory was changed to ''C:\proj''. The batch script was executed to ensure that there were no errors in it. If there were no errors, you should see the Cygwin shell prompt.using this command:
The file ''link.exe'' located in '' cd C:\cygwin\bin'' was renamed to ''_link.exe'' based on the recommendation that if you don't, you may get a configure error regarding the linker version being different.proj
After executing the ''ConfigEnvThe batch script was executed to ensure that there were no errors in it.bat'' scriptIf there were no errors, we you should be in see the cygwin Cygwin shellprompt. Once there, the present working directory was changed to ''C:\proj'' using this command:
cd Next, the file ''link.exe'' located in ''C:\projcygwin\bin'' was renamed to ''_link.exe'' based on the recommendation that if you don't, you may get a configure error regarding the linker version being different.
Going back to the cygwin shell prompt, the present working directory was changed to ''C:\proj'' using the same command as above. Once we are in the correct directory, it is time to checkout the makefile that will be used to checkout the rest of the source files in the tree. To do this, the following command was executed:
cvs -d :pserver:anonymous:anonymous@cvs-mirror.mozilla.org:/cvsroot co mozilla/client.mk
Next, a ''.mozconfig'' configuration file was created based on the information located at the [http://developer.mozilla.org/en/docs/Configuring_Build_Options Configuring Build Options] page. The resulting ''.mozconfig'' configuration file contained contains the following configuration options:
# Include default Firefox configuration file
. $topsrcdir/browser/config/mozconfig
# Build with Objdir
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@
# OptimizationOptimizations
ac_add_options --disable-optimize
ac_add_options --enable-debug
# Static Build
ac_add_options --disable-static --enable-shared
# Disable Installer
ac_add_options --disable-installer
The file was saved as ''.mozconfig'' to the ''C:\proj\mozilla'' directory. Then, from the ''C:\proj'' directory, the following command was executed to checkout Firefox's default .mozconfig file:
1
edit

Navigation menu