For Java >= 8 use javac with option -h instead of javah

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/1/head
Slávek Banko 7 years ago
parent ac567aa120
commit 9dc323e987

@ -1 +1 @@
Subproject commit 04c35f89e0b556b38fa0ba19a8af6db426e59686 Subproject commit 0e86934fc8d6ffab9867f67859c33ef33e83478f

@ -12,7 +12,9 @@ client.lo: org_trinitydesktop_DCOP_Client.h
org_trinitydesktop_DCOP_Client.h: org_trinitydesktop_DCOP_Client.h:
$(MAKE) -C org $(MAKE) -C org
$(JAVAH) -classpath .:$(srcdir) -jni org.trinitydesktop.DCOP.Client if ! $(JAVA8); then \
$(JAVAH) -classpath .:$(srcdir) -jni org.trinitydesktop.DCOP.Client; \
fi
SUBDIRS = org SUBDIRS = org

@ -4,6 +4,10 @@ classdir = $(kde_libraries)/java/org/trinitydesktop/DCOP
SUFFIXES = .java .class SUFFIXES = .java .class
.java.class: .java.class:
CLASSPATH=$(top_srcdir)/dcopjava/binding $(JAVAC) -d ../../../ -cp ../../../ $(top_srcdir)/dcopjava/binding/org/trinitydesktop/DCOP/$*.java if $(JAVA8); then \
CLASSPATH=$(top_srcdir)/dcopjava/binding $(JAVAC) -d ../../../ -cp ../../../ $(top_srcdir)/dcopjava/binding/org/trinitydesktop/DCOP/$*.java -h ../../..; \
else \
CLASSPATH=$(top_srcdir)/dcopjava/binding $(JAVAC) -d ../../../ -cp ../../../ $(top_srcdir)/dcopjava/binding/org/trinitydesktop/DCOP/$*.java; \
fi
CLEANFILES = $(class_DATA) CLEANFILES = $(class_DATA)

Loading…
Cancel
Save