Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Build Crosswalk

Raphael Kubo da Costa edited this page Jul 30, 2013 · 42 revisions

Environment

Please setup the build environment by following the instructions in Chromium's wiki:

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://git@github.com/otcshare/crosswalk.git@origin/master

At the same level of .gclient file, execute

gclient sync

to fetch all codes.

* Get the code for Android

Enviroment variable XWALK_OS_ANDROID should be set before checking out the code.

export XWALK_OS_ANDROID=1

Check out code for Android build, execute

gclient config --name=src/xwalk ssh://git@github.com/otcshare/crosswalk.git@origin/master
gclient sync

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

NOTE: We also enable aura for Tizen 3.0 build, instead execute:

python xwalk/gyp_xwalk -Duse_aura=1 -Duse_gconf=0 -Duse_xi2_mt=2

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

* Build Instructions for Android

Setup enviroment for Android build

. xwalk/build/android/envsetup.sh --target-arch=x86

Generate Crosswalk projects, execute

 export GYP_GENERATORS='ninja'
 xwalk_android_gyp

To build xwalk shell, execute:

ninja -C out/Release xwalk_core_shell_apk
Clone this wiki locally