forked from crosswalk-project/crosswalk
-
Notifications
You must be signed in to change notification settings - Fork 1
Build Crosswalk
ricardotk edited this page Jul 15, 2013
·
17 revisions
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.
Before start, ssh key needs to be configured correctly to fetch code from github. Refering Github help.
Please setup the build environment as:
We recommend to use ninja
as build tool. Please refer to Ninja Build to setup the environment.
We use gyp
to generate projects. 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