Build Patterns - ninja-build/ninja GitHub Wiki
Build Patterns
Here's a collection of notes on ways to express various build problems in Ninja format.
TODO: flesh this out more (e.g., summarize the mailing list discussion with a best practice declaration here).
Precompiled Headers
https://groups.google.com/d/topic/ninja-build/DkNRElbw0Zo/discussion
Including SCM (Git/SVN/etc) version info in build output
https://groups.google.com/d/topic/ninja-build/txeosqGMc6k/discussion
Rebuilding dependents of shared objects only when API changes
http://neugierig.org/software/blog/2012/07/gyp-toc.html
https://groups.google.com/d/msg/ninja-build/5wiHeCgFs58/USPwhlRM_04J
Windows .lib files
https://groups.google.com/d/topic/ninja-build/L5jyWJFOAuM/discussion
Dependencies on generated header files
https://groups.google.com/d/topic/ninja-build/2C1PISyR1Yk/discussion
Java
https://groups.google.com/d/topic/ninja-build/AS-gvHMtU30/discussion
Vala
https://groups.google.com/d/topic/ninja-build/Wtg-TLSDVKc/discussion