你可以在下面链接看到官方的一些信息:Build in window
1. Install build prerequisites
- Install vs2010
- Download Mozilla-source and decompress.
- Download and Install MozillaBuild,a package of additional build tools.
- Into MozillaBuild, run "start-msvc10.bat",then MSYS command will prompt properly configured. All further commands should be executed in this command prompt window.
- In MSYS command,into source directory, at root directory,Create a file: ".moconfig" in ,file content like below:
# My first mozilla config
mk_add_options MOZ_MAKE_FLAGS="-j4"
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../obj-xulrunner
mk_add_options MOZ_BUILD_PROJECTS="xulrunner"
#Global options
ac_add_options --enable-debug
ac_add_options --disable-optimize
#XULRunner options
ac_add_app_options xulrunner --enable-application=xulrunner
#ac_add_options --enable-debug-symbols[=DBG]
ac_add_options --disable-static
ac_add_options --enable-shared
ac_add_options --enable-extensions=default
ac_add_options --disable-tests
ac_add_options --disable-webgl
ac_add_options --disable-activex
ac_add_options --disable-activex-scripting
2. Build
- Run command "make -f client.mk build",start build.
- Wait 1 hours,then build OK.