Ninja – A small build system with a focus on speed
martine.github.io
Ninja – A small build system with a focus on speed
1–10 of 30 posts
Re: Ninja – A small build system with a focus on speed
#2Re: Ninja – A small build system with a focus on speed
#3Jeez, can't you kids just quit this square-wheel churn and just buckle down and learn to write makefiles? It's really not that hard.
Re: Ninja – A small build system with a focus on speed
#4Jeez, can't you kids just quit this square-wheel churn and just buckle down and learn to write makefiles? It's really not that hard.
Sigh. As far as I can tell ninja is primarily used as a cmake backend. Mostly because the people who wrote cmake never learned to write Makefiles and as a result using ninja with cmake is much faster.
Re: Ninja – A small build system with a focus on speed
#5Jeez, can't you kids just quit this square-wheel churn and just buckle down and learn to write makefiles? It's really not that hard.
Re: Ninja – A small build system with a focus on speed
#6Jeez, can't you kids just quit this square-wheel churn and just buckle down and learn to write makefiles? It's really not that hard.
Sigh. As far as I can tell ninja is primarily used as a cmake backend. Mostly because the people who wrote cmake never learned to write Makefiles and as a result using ninja with cmake is much faster.
e.g Make/CMake decides whether you're doing a debug or release build, and builds the appropriate ninja files. Ninja then doesn't have any decisions to make, other than purely what to build, which makes it fast.
It's used for Chrome/Chromium, and I believe the "no-op" build time is still under a second. If you then change a .cpp, it will only compile the absolute minimum, and calculation as to what to build is incredibly fast. make is considerably slower on the same set of files (so they say, not tested it personally, but the figures are around somewhere).
Probably only worth it for really big projects.
Re: Ninja – A small build system with a focus on speed
#7Jeez, can't you kids just quit this square-wheel churn and just buckle down and learn to write makefiles? It's really not that hard.
Re: Ninja – A small build system with a focus on speed
#8Re: Ninja – A small build system with a focus on speed
#9I've used ninja and gyp for building Android apps. It is 1 to 2 orders of magnitude faster than Gradle.