forked from crosswalk-project/crosswalk
-
Notifications
You must be signed in to change notification settings - Fork 0
Build Crosswalk
ricardotk edited this page Jul 16, 2013
·
42 revisions
Please setup the build environment:
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.
We recommend to use ninja as build tool.
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