3
Note that the instructions below assume that you have the Chromium
4
[depot tools](http://dev.chromium.org/developers/how-tos/depottools)
5
installed and configured.
6
If you don't, you do not pass go, and you cannot collect your $200.
10
Best is to use git to hack on anything, you can set up a git clone of GYP
14
git clone https://chromium.googlesource.com/external/gyp.git
18
## Testing your change
20
GYP has a suite of tests which you can run with the provided test driver
21
to make sure your changes aren't breaking anything important.
23
You run the test driver with e.g.
27
python gyptest.py test/win # Only run Windows-related tests.
28
python gyptest.py -a -f ninja # Only run ninja-related tests.
31
See [Testing](Testing) for more details on the test framework.
33
Note that it can be handy to look at the project files output by the tests
34
to diagnose problems. The easiest way to do that is by kindly asking the
35
test driver to leave the temporary directories it creates in-place.
36
This is done by setting the enviroment variable "PRESERVE", e.g.
39
set PRESERVE=all # On Windows
40
export PRESERVE=all # On saner platforms.
43
## Reviewing your change
45
All changes to GYP must be code reviewed before submission, GYP uses rietveld.
47
Upload your change with:
55
Once you're ready to submit, you can use the GYP try bots to test your change
62
Once the change has been approved (LGTMed) and passes trybots, you can submit
69
To be allowed to submit, you will need committer rights in the project. You
70
need to do the new password dance at
71
https://chromium.googlesource.com/new-password .
73
## Migrating from an old with-svn checkout
75
Remove the [svn] entry from .git/config, and the .git/svn subdirs to avoid
76
having `git cl land` complain that it looks like the repo is a SVN one. It might
77
be easier to just repull instead.