Mozilla World - 在windows下编译XULRunner

来源:互联网 发布:赵本山 知乎 编辑:程序博客网 时间:2024/06/03 21:02

你可以在下面链接看到官方的一些信息:Build in window


1. Install build prerequisites

  1. Install vs2010
  2. Download Mozilla-source and decompress.
  3. Download and Install MozillaBuild,a package of additional build tools.
  4. Into MozillaBuild, run "start-msvc10.bat",then MSYS command will prompt properly configured. All further commands should be executed in this command prompt window.
  5. 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

  1. Run command "make -f client.mk build",start build.
  2. Wait 1 hours,then build OK.
 
原创粉丝点击