Re:Ninja – A small build system with a focus on speed
by wonsler on Saturday March 28, 2015 @05:23PM
(#9282809)
I've used ninja and gyp for building Android apps. It is 1 to 2 orders of magnitude faster than Gradle.
[ Parent
| on HN ]
Re:Ninja – A small build system with a focus on speed
by moonbug on Saturday March 28, 2015 @05:30PM
(#9282828)
About all that can be said for Gradle is that it makes Maven seem tolerable.
Re:Ninja – A small build system with a focus on speed
by pjmlp on Sunday March 29, 2015 @11:42AM
(#9285205)
I don't really get the hype about Gradle.
For those of us without XML phobia, it doesn't offer any benefit and is slow as molasses.
Re:Ninja – A small build system with a focus on speed
by rquirk on Sunday March 29, 2015 @12:21PM
(#9285381)
You can speed it up somewhat by tweaking ~/.gradle/gradle.properties and adding org.gradle.daemon=true
and org.gradle.parallel=true. That way at least it doesn't have to re-read all the build files each time and will run some parts in parallel.
The benefit wrt the old Ant-based build is the way it lets you specify 3rd party dependencies. Being able to just add in say Timber, ButterKnife and Guava with a few lines of config, rather than downloading the jars, faffing with paths, making sure the pre-processing bits are in place, etc, is really a big benefit. Maybe Maven would have been a more sensible choice, since Gradle/Groovy seems pretty niche and not really used that much outside Android.
Re:Ninja – A small build system with a focus on speed
by pjmlp on Sunday March 29, 2015 @01:11PM
(#9285576)
> ... since Gradle/Groovy seems pretty niche and not really used that much outside Android.
This is the only reason I am now forced to deal with it.
On our enterprise Java projects it is all about Ant and Maven.
Re:Ninja – A small build system with a focus on speed
by jre on Sunday March 29, 2015 @05:02AM
(#9284272)
Do you have an example gyp file for Android that you could share ?
Re:Ninja – A small build system with a focus on speed
by mlvljr on Sunday March 29, 2015 @05:23AM
(#9284299)
Decimal magnitude?
Re:Ninja – A small build system with a focus on speed
by oscargrouch on Sunday March 29, 2015 @12:51AM
(#9283931)
in Chromium now, there´s GN to auto-generate only ninja files.. unlike GYP that can generate for several backends like CMake