分类: LINUX
2007-07-20 10:57:55
http://developer.mozilla.org/cn/docs/Firefox源代码下载
windosw版本:
tools
[vs.net2003+cygwin+moztools-static+vc71-glib-1.2.10+vc71-libIDL-0.6.8]
A.如果以前有装有低版本的VC,最好完全卸载,还有环境变量
B.cygwin如果是第一次玩的话,推荐把pack全部安上,必须的pack list:Coreutils,CVS,diffutils,findutils,gawk,grep,libiconv,make 3.80,patchutils,perl,sed,unzip,zip //bin/link.exe要弄一下,会和VC的link冲突
c.moztools就用static的 最好不要和cygmin装在一起
d.glib&libIDL用vc7.1的
e.make用3.80的
f.修改一下cygwin.bat
我把的我贴下面:
@echo off
e:
chdir e:\cygwin\bin set VCVARS=C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\vcvars32.bat
set MSSDK=C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK set MOZ_TOOLS=C:\moztools set CYGWINBASE=E:\cygwin set GLIB_PREFIX=C:\vc71-glib-1.2.10\vc71 set LIBIDL_PREFIX=C:\vc71-libIDL-0.6.8\vc71 set PATH=%CYGWINBASE%\bin;%PATH%
call "%VCVARS%" set PATH=%MSSDK%\bin;%PATH%
set INCLUDE=%MSSDK%\include;%INCLUDE% set LIB=%MSSDK%\lib;%LIB% set PATH=%PATH%;%GLIB_PREFIX%;%GLIB_PREFIX%\bin
set INCLUDE=%GLIB_PREFIX%\include;%INCLUDE% set LIB=%GLIB_PREFIX%\lib;%LIB% set PATH=%PATH%;%LIBIDL_PREFIX%;%LIBIDL_PREFIX%\bin set INCLUDE=%LIBIDL_PREFIX%\include;%INCLUDE%
set LIB=%LIBIDL_PREFIX%\lib;%LIB% set PATH=%PATH%;%MOZ_TOOLS%\bin bash --login -i
g.
在源码目录下写一个.mozconfig
# This file specifies the build flags for Firefox. You can use it by adding:
# . $topsrcdir/browser/config/mozconfig # to the top of your mozconfig file. mk_add_options MOZ_CO_PROJECT=browser
ac_add_options --enable-application=browser ac_add_options --disable-debug ac_add_options --disable-installer #ac_add_options --enable-extensions=default,pref h.
到cygwin下make -f client.mk build开始编绎,ok=== 生成的文件在digest
linux版本: |