commit | 20c2417c3420bccca021c61918f1e9f53444c3e4 | [log] [tgz] |
---|---|---|
author | James Robinson <jamesr@chromium.org> | Fri Nov 07 15:41:25 2014 -0800 |
committer | James Robinson <jamesr@chromium.org> | Fri Nov 07 15:41:25 2014 -0800 |
tree | b8fede21622d177902efac4b311b13cab5bc7cbc | |
parent | 9ec4eb1de8cf10b13c5b3711df19c1dea0652a5b [diff] |
Add mojo/tools/mopy with paths and version utilities This consolidates some common mojo python script utilities into mojo/tools/mopy and updates scripts under mojo/tools to use them. Currently this has some path manipulation, version querying and python test running utilities but I expect this to grow over time. A skypy could also resuse a lot of of this functionality as well. R=eseidel@chromium.org Review URL: https://codereview.chromium.org/707893005
This repo uses gclient to manage dependencies, so to build things from this repo you have to first download depot_tools and make sure it is in your path:
http://www.chromium.org/developers/how-tos/install-depot-tools
Then, create a directory somewhere for your checkout, cd into it, and run the following commands:
$ fetch mojo # use --target_os=android if you want an Android build. $ cd src $ ./build/install-build-deps.sh
This creates a directory called ‘src’ under your checkout directory, clones the repository and its dependencies, and installs any packages needed to build.
You can then build Mojo by running:
$ gn gen out/Debug $ ninja -C out/Debug root
If you're a Googler and want to use Goma:
$ gn args out/Debug
and add
use_goma = true
Assuming Goma is installed in the default location (~/goma).
Run a demo:
mojo/tools/mojo_demo.sh --browser
Run the tests:
mojo/tools/mojob.sh test
To land a patch:
$ git cl land
Don't break build! Waterfall is here: http://build.chromium.org/p/client.mojo/waterfall .