commit | 3824d32aaf8928ffd27a940753f608fa24f83234 | [log] [tgz] |
---|---|---|
author | David 'Digit' Turner <digit@google.com> | Tue Mar 05 20:29:43 2024 +0100 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Mar 15 22:05:04 2024 +0000 |
tree | 29b23b6ffdb850c6897c1e2003a256848feea5c2 | |
parent | 0bf136aa41ea62cc27ef37e0c3a6f3ff68471a86 [diff] |
async_loop.h: AsyncHandle::StartConnectNamedPipe() Add a new Win32-specific AsyncHandle method to perform an asynchronous ConnectNamedPipe() operation. This will be used later to simplify subprocess-win32.cc to avoid using AsyncHandle::StartAccept(), which relies on IpcServiceHandle handle values, in that source file. The caller must have created the named pipe instance handle before passing it to the AsyncHandle constructor, see unit-test for details. There is no equivalent for Posix, since there is no need for it in Ninja at the moment. Fuchsia-Topic: advanced-ipc Change-Id: Id54ab85e02ab4e9c804fe65b2119af0fde0255f0 Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/github.com/ninja-build/ninja/+/1008194 Fuchsia-Auto-Submit: David Turner <digit@google.com> Reviewed-by: David Fang <fangism@google.com> Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com>
Ninja is a small build system with a focus on speed. https://ninja-build.org/
See the manual or doc/manual.asciidoc
included in the distribution for background and more details.
Binaries for Linux, Mac and Windows are available on GitHub. Run ./ninja -h
for Ninja help.
Installation is not necessary because the only required file is the resulting ninja binary. However, to enable features like Bash completion and Emacs and Vim editing modes, some files in misc/ must be copied to appropriate locations.
If you're interested in making changes to Ninja, read CONTRIBUTING.md first.
You can either build Ninja via the custom generator script written in Python or via CMake. For more details see the wiki.
./configure.py --bootstrap
This will generate the ninja
binary and a build.ninja
file you can now use to build Ninja with itself.
cmake -Bbuild-cmake cmake --build build-cmake
The ninja
binary will now be inside the build-cmake
directory (you can choose any other name you like).
To run the unit tests:
./build-cmake/ninja_test