[Development] Notes on "Qt Build Systems" @ QtCon 2016

Kevin Kofler kevin.kofler at chello.at
Fri Sep 9 13:39:31 CEST 2016

Jake Petroules wrote:
> Another thing that's very hard to do in other build systems is building
> Java code. The class files emitted by a Java compiler actually vary
> depending on the contents of the Java files themselves.
> Imagine you've built a JAR file, and then you add a new anonymous inner
> class within one of your Java source files. The command line invocation to
> build the JAR file needs to be updated to contain the new class file that
> will result. Impossible with qmake/CMake/Makefiles/etc.

Well, what you can do if you have a lot of Java stuff to build is to just 
shell out to Ant. That's how Qt Jambi does it, for example. Use the right 
tool for the job.

CMake has some support for building Java, but indeed, it does not 
automatically figure out the outputs of each .java file for you. Dedicated 
Java build systems are much better at that.

        Kevin Kofler

More information about the Development mailing list