diff options
author | Sven Gothel <[email protected]> | 2020-02-02 05:36:38 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-02-02 05:36:38 +0100 |
commit | 77ae1b75f3c6feab97a4fffea44aadbd6e1d0b15 (patch) | |
tree | c4276d6c5fb21dede947c2829e4960874ec3ef2e /make/build-jogl.xml | |
parent | 8e5dae78bb99a0fbcd5593e91c2b08e84dd639e4 (diff) |
When explicitly generating native header, avoid implicit referenced classes.
Thanks to Phil Jordan, who is debating certain build issues of JOGL with me,
we figured that certain generated header files ended up in the wrong build folder.
E.g. on GNU/Linux, jogamp_nativewindow_windows_GDI.h ended up in build-x86_64/nativewindow/gensrc/native/drm/
This happens due to the new java11 way of generating header files using javac.
Per default, all referenced files are being compiled and header files were generated
in this case for all of them using the given '-h location' argument.
Since nativewindow generates headers for the new drm functionality first (where available),
all headers of all included referenced classes ended up in this drm build location.
Subsequent javac was skipped 'thanks' to the already existing class files ;-)
This patch disables implicit class file creation when explicitly generating headers only
using the javac argument '-implicit:none'.
This is done for the whole JOGL project (nativewindow, jogl and newt).
Other JogAmp modules should not be concerned due to the lack of overspecific
platform parts ..
Diffstat (limited to 'make/build-jogl.xml')
-rw-r--r-- | make/build-jogl.xml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/make/build-jogl.xml b/make/build-jogl.xml index c2b0623bc..d792831fd 100644 --- a/make/build-jogl.xml +++ b/make/build-jogl.xml @@ -1094,6 +1094,7 @@ <classpath refid="nativewindow_gluegen.classpath"/> <include name="jogamp/opengl/GLDebugMessageHandler.java" /> <include name="jogamp/opengl/GLContextImpl.java" /> + <compilerarg value="-implicit:none" /> </javac> <!-- generate libav native headers --> @@ -1114,6 +1115,7 @@ <include name="jogamp/opengl/util/av/impl/FFMPEGv09Natives.java" /> <include name="jogamp/opengl/util/av/impl/FFMPEGv10Natives.java" /> <include name="jogamp/opengl/util/av/impl/FFMPEGv11Natives.java" /> + <compilerarg value="-implicit:none" /> </javac> <!-- generate openmax native headers --> @@ -1130,6 +1132,7 @@ debug="${javacdebug}" debuglevel="${javacdebuglevel}"> <classpath refid="nativewindow_gluegen.classpath"/> <include name="jogamp/opengl/util/av/impl/OMXGLMediaPlayer.java" /> + <compilerarg value="-implicit:none" /> </javac> <!-- Perform the first pass Java compile. --> |