Skip to content
ricardotk edited this page Jul 16, 2013 · 17 revisions

Environment

Please setup the build environment:

Get the code

Before start, ssh key needs to be configured correctly to fetch code from github. Refering Github help.

Crosswalk uses gclient to manage the code and dependencies. To get gclient tool, you should install depot_tools.

Execute the following command to gclient auto-generate .gclient file.

gclient config --name=src/xwalk ssh://[email protected]/otcshare/crosswalk.git@origin/master

At the same level of .gclient file, execute

gclient sync

to fetch all codes.

Build Instructions

We recommend to use ninja as build tool. Please refer to Ninja Build to setup the environment.

We use gyp to generate Crosswalk projects, go to src directory, execute

export GYP_GENERATORS='ninja'
python xwalk/gyp_xwalk

to generate the projects.

To build the launcher, execute:

ninja -C out/Release xwalk

To build the tests, execute:

ninja -C out/Release xwalk_unittest
ninja -C out/Release xwalk_browsertest
Clone this wiki locally