CONTRIBUTING.md 1.5 KB
Newer Older
A
Adam Barth 已提交
1 2 3 4 5 6 7 8
Contributing to Sky Engine
==========================

Getting the code
----------------

To get the code:

9 10 11 12
 * Fork https://github.com/domokit/sky_engine into your own GitHub account.
 * [Download depot_tools](http://www.chromium.org/developers/how-tos/install-depot-tools)
   and make sure it is in your path.
 * Create a `.gclient` file in an empty directory with the following contents:
A
Adam Barth 已提交
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27

```
solutions = [
  {
    "managed": False,
    "name": "src",
    "url": "git@github.com:<your_name_here>/sky_engine.git",
    "custom_deps": {},
    "deps_file": "DEPS",
    "safesync_url": "",
  },
]
target_os = ["android"]
```

28 29 30 31
 * `svn ls https://dart.googlecode.com/` and accept the certificate permanently.
 * `gclient sync`
 * `cd src`
 * `git remote add upstream git@github.com:domokit/sky_engine.git`
A
Adam Barth 已提交
32 33 34 35

Building the code
-----------------

36 37 38 39 40 41
Currently we support building for an Android target and for a headless Linux
target.

### Android

* (Only the first time) `./build/install-build-deps-android.sh`
42
* `./sky/tools/gn --android`
43 44 45 46 47
* `ninja -C out/android_Debug`

### Linux

* (Only the first time) `./build/install-build-deps.sh`
48
* `./sky/tools/gn`
49
* `ninja -C out/Debug`
A
Adam Barth 已提交
50 51 52 53

Contributing code
-----------------

54 55 56 57 58 59 60 61 62
The Sky engine repository gladly accepts contributions via GitHub pull requests:

 * `git fetch upstream`
 * `git checkout upstream/master -b name_of_your_branch`
 * Hack away
 * `git commit -a`
 * `git push origin name_of_your_branch`
 * Go to `https://github.com/<your_name_here>/sky_engine` and click the
   "Compare & pull request" button