commit | d15579edf090dfdcad350bcc4f50e94e1dd7e276 | [log] [tgz] |
---|---|---|
author | James Robinson <jamesr@chromium.org> | Mon Oct 27 11:04:06 2014 -0700 |
committer | James Robinson <jamesr@chromium.org> | Mon Oct 27 11:04:06 2014 -0700 |
tree | b0beb82fc758971e740ea0d9edd917750ead4082 | |
parent | 2e936f4a14e77cfd95ba9717438e3103bd68c04e [diff] |
Update socket_libevent.cc to build on android Android ships with crazy old system headers that don't include the SOCK_NONBLOCK define. Since this is easy to live without, update the domain socket code to set the socket to nonblocking using an fcntl when built without this define. Still use SOCK_NONBLOCK when available since it's cheaper to avoid the fcntl. R=cmasone@chromium.org Review URL: https://codereview.chromium.org/670773004
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 the tests:
mojo/tools/mojob.sh test