Building Crosswalk For Windows

原文访问太慢,转载到这里方便访问。

Building Crosswalk For Windows

  • Download and install Microsoft Visual Studio 2013. We do not support Visual Studio 2015 at the moment.

  • Install Git For Windows from http://git-scm.com/download/win and make sure it’s added to your PATH. Edit environment variables for your account. In the Windows Start menu, search for “Environment variables”. Alternatively, click on the System icon in the Control Panel; then go to Advanced system settings and click the Environment Variables button. You should see this dialog box:
    这里写图片描述

  • Clone depot_tools from Google by running:

> git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git

Make sure you add the depot_tools directory in your PATH using the documented procedure above.

  • In the Environment Variables dialog create new variables (using the “New…” button) and add:

  • GYP_GENERATORS set to ninja,msvs-ninja (this will create Visual Studio solutions if you want to run Crosswalk for Windows inside the IDE)

  • DEPOT_TOOLS_WIN_TOOLCHAIN set to 0 (which will tell Crosswalk for Windows to use your installation of Visual Studio 2013)

  • Navigate where you want to checkout Crosswalk for Windows, create a directory, navigate into it, and pull the source:

    > mkdir crosswalk-src
    > cd crosswalk-src
    > gclient config --name=src/xwalk git://github.com/crosswalk-project/crosswalk.git
    > gclient sync

It may take a while. Download size is >3GB.

Build Crosswalk

At this point you have two alternatives :

  • Building from the command line
  • Building from Visual Studio

Command line build

To build from the command line, navigate into crosswalk-src/src and invoke:

> ninja -C out/Release xwalk or ninja -C out/Debug xwalk

Visual Studio build

To generate solution and project files, navigate into crosswalk-src/src and invoke:

> python xwalk\gyp_xwalk

To build in Visual Studio, open xwalk.sln from crosswalk-src/src/xwalk and you’re ready to go. Select a target and click Build (for example xwalk, or xwalk_builder). Please note that xwalk.sln actually has all the Chromium code as a dependency therefore xwalk.sln has something like 600 subprojects which requires a pretty powerful machine with a lot of RAM to be able to handle that correctly. We suggest using the Funnel extension which allows you to select which subproject you want to load.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值