Currently, I have a Makefile whose targets drive SCons commands. Although I am slowly converting to Gradle, I can’t just get rid of SCons because Gradle currently does not handle parallel builds for native code. So, is there a recommended way and/or best practice way and/or example showing how I can use Gradle to call SCons?
Exmaple:
fileserver:
scons --jobs=8 -f SConstruct_FileServer --deploydir=$(PKGDESTDIR) $(FILESERVER_ARGS);
hoststats: fileclient
scons --jobs=8 -f SConstruct_Hoststats --hadoopdir=$(HADOOP_DIR) --deploydir=$(PKGDESTDIR) $(FILESERVER_ARGS);
hoststats-only:
scons --jobs=8 -f SConstruct_Hoststats --hadoopdir=$(HADOOP_DIR) --deploydir=$(PKGDESTDIR) $(FILESERVER_ARGS) ;
oozieexecute-cc = cd fs/.. &&\
scons --jobs=8 -f SConstruct_OozieExecute --hadoopdir=$(HADOOP_DIR) --deploydir=$(PKGDESTDIR) $(FILECLIENT_ARGS) ;
Yes, I know it’s a mess. Yes, I’m trying to fix it.