Skip to content
Ningxin Hu edited this page May 17, 2013 · 6 revisions

Get the code

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

Create a .gclient file with following content.

Content of .gclient:

solutions = [
   { "name"        : "src",
	 "url"         : "ssh://[email protected]/otcshare/chromium-cameo.git@origin/lkgr",
	 "deps_file"   : ".DEPS.git",
	 "managed"     : True,
	 "custom_deps" : {
	   "src/cameo": "ssh://[email protected]/otcshare/cameo.git",
	   "src/third_party/WebKit/LayoutTests": None,
	   "src/chrome_frame/tools/test/reference_build/chrome": None,
	   "src/chrome_frame/tools/test/reference_build/chrome_win": None,
	   "src/chrome/tools/test/reference_build/chrome": None,
	   "src/chrome/tools/test/reference_build/chrome_linux": None,
	   "src/chrome/tools/test/reference_build/chrome_mac": None,
	   "src/chrome/tools/test/reference_build/chrome_win": None,
	 },
	 "safesync_url": "",
   },
]

At the same level of .gclient file, execute

gclient sync

to fetch all codes to src directory.

Build Instructions

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 cameo projects, go to src directory, execute

python cameo/gyp_cameo

to generate the projects.

To build the launcher, execute:

ninja -C out/Release cameo

To build the tests, execute:

ninja -C out/Release cameo_unittest
ninja -C out/Release cameo_browsertest

Introduction

Clone this wiki locally