[API] Automatic Module Names (#105)

* Initial implementation of Automatic Module Names

* Fix using java 17 for publishing

* Roll build back to jdk 1.8

* Fix package name for imgui.lwjgl3 module

* Reworking package change to prevent breaking backwards compatability
This commit is contained in:
Trevor Flynn authored and GitHub committed 2022-01-21 09:34:38 +02:00
1 parent 6f48a70564
commit 8c1ef209ad
9 files changed
+52 -11

No files matched your search

+6
View File
@@ -22,3 +22,9 @@ tasks.register('generateLibs', GenerateLibs) {
apply from: "$rootDir/publish.gradle"
configurePublishing('imgui-java-binding', 'JNI based binding for Dear ImGui')
jar {
manifest {
attributes 'Automatic-Module-Name': 'imgui.binding'
}
}
@@ -1,6 +1,6 @@
package imgui.glfw;
package imgui.lwjgl3.glfw;
final class ImGuiImplGlfwNative {
public final class ImGuiImplGlfwNative {
private ImGuiImplGlfwNative() {
}
@@ -10,9 +10,15 @@ final class ImGuiImplGlfwNative {
#endif
*/
// GLFW hack: Hide icon from task bar
// Applied only for windows
static native void win32hideFromTaskBar(long hwndPtr); /*
/**
* GLFW hack: Hide icon from task bar
* Applied only for windows
*
* Internal Use Only.
* FIXME: Once Java Module System has been implemented, this function should only be exported
* to the imgui.lwjgl module.
*/
public static native void win32hideFromTaskBar(long hwndPtr); /*
#if defined(_WIN32)
HWND hwnd = (HWND)hwndPtr;
LONG ex_style = ::GetWindowLong(hwnd, GWL_EXSTYLE);