[java-atk-wrapper] Modular j-a-w.jar



commit 27a4d05fd5b9649a9e6ce4f9b54faba8f9d6fbf3
Author: Fridrich Štrba <fridrich strba bluewin ch>
Date:   Mon Nov 6 09:46:33 2017 +0100

    Modular j-a-w.jar

 wrapper/Makefile.am      | 9 ++++++---
 wrapper/module-info.java | 6 ++++++
 2 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/wrapper/Makefile.am b/wrapper/Makefile.am
index 182af4a..c08479e 100644
--- a/wrapper/Makefile.am
+++ b/wrapper/Makefile.am
@@ -9,10 +9,13 @@ propertiesdir = $(PROPERTIESDIR)
 java_atk_wrapper_DATA = $(JARFILES)
 properties_DATA = accessibility.properties
 EXTRA_DIST = $(properties_DATA) \
-            manifest.txt
+            manifest.txt module-info.java
 
-$(JARFILES) : $(DEP_CLASSES)
-       $(JAR) cfm $(JARFILES) $(srcdir)/manifest.txt org/GNOME/Accessibility/*.class -C $(srcdir) 
META-INF/services/javax.accessibility.AccessibilityProvider
+module-info.class : $(srcdir)/module-info.java
+       $(JAVAC) -cp $(top_builddir)/wrapper -sourcepath $(top_srcdir)/wrapper:$(top_builddir)/wrapper 
$(JAVACFLAGS) -d $(top_builddir)/wrapper $<
+
+$(JARFILES) : $(DEP_CLASSES) module-info.class
+       $(JAR) cfm $(JARFILES) $(srcdir)/manifest.txt org/GNOME/Accessibility/*.class module-info.class -C 
$(srcdir) META-INF/services/javax.accessibility.AccessibilityProvider
 
 install-data-local : all-local
        $(mkinstalldirs) $(DESTDIR)$(propertiesdir) $(DESTDIR)$(java_atk_wrapperdir)
diff --git a/wrapper/module-info.java b/wrapper/module-info.java
new file mode 100644
index 0000000..9e2d1e1
--- /dev/null
+++ b/wrapper/module-info.java
@@ -0,0 +1,6 @@
+module atk.wrapper {
+    exports org.GNOME.Accessibility;
+    requires java.desktop;
+    provides javax.accessibility.AccessibilityProvider
+        with org.GNOME.Accessibility.AtkProvider;
+}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]