Mozbuildtools is a project mainly written in SHELL and C, based on the BSD-3-Clause license.
mozbuildtools 是一項計畫,實現使用 MinGW 在 Windows 編譯 Mozilla。 目前測試 Firefox 可以成功的被編譯。
警告:目前 Mozilla 官方 Windows 版並非使用 MinGW 編譯, 且使用 MinGW 編譯的版本有一些問題待解決。
* 版本說明:
* Patch 檔版本需求: 0.3 以上
* 特點:
* 待解決目標:
* 安裝步驟:
* 注意事項:
* 如何編譯:
* 安裝好後空間清理:
* 如需下載 Firefox 3.6 最新的原始碼,請輸入指令 hg clone http://hg.mozilla.org/mozilla-central firefox-src
* 如需下載最新 Patch ,請至 http://sites.google.com/site/usemingwtobuildfirefox/Home/patch-dang-an-gui
* 授權協議參閱,請至 http://sites.google.com/site/usemingwtobuildfirefox/Home/shou-quan-xie-yi 本程式除了第三方程式以外,其餘以 BSD 許可證 為授權協議
ac_add_options --enable-application=browser mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../mozilla-mingw
mk_add_options PROFILE_GEN_SCRIPT='$(PYTHON) $(MOZ_OBJDIR)/_profile/pgo/profileserver.py'
ac_add_options --disable-debug
ac_add_options --disable-optimize ac_add_options --disable-tests ac_add_options --disable-installer ac_add_options --disable-accessibility ac_add_options --disable-vista-sdk-requirements ac_add_options --disable-updater ac_add_options --enable-shared ac_add_options --disable-static ac_add_options --with-branding=browser/branding/unofficial ac_add_options --enable-strip ac_add_options --disable-necko-wifi
export CFLAGS="-w" export CXXFLAGS="-w" export CPPFLAGS="-w"
export CC="gcc -D_WIN32_IE=0x0800 -D_WIN32_WINNT=0x0601" export CXX="g++ -D_WIN32_IE=0x0800 -D_WIN32_WINNT=0x0601" export CPP="cpp -D_WIN32_IE=0x0800 -D_WIN32_WINNT=0x0601" export CXXCPP="cpp -D_WIN32_IE=0x0800 -D_WIN32_WINNT=0x0601" export AS=as export LD=ld export AR=ar export STRIP=strip export WINDRES=windres