From 5af2632d4f1f560e9020a2063c84eab12579458f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 19 Aug 2018 23:27:12 +0200 Subject: [PATCH] Makefile.am: use javac instead of javah to generate JNI header javah is deprecated. --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index c1cda5605..de091bdd5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -333,11 +333,11 @@ android/build/classes.dex: $(JAVA_SOURCE_PATHS) android/build/gen/org/musicpd/R. @$(MKDIR_P) $(JAVA_CLASSFILES_DIR) $(JAVAC) -source 1.6 -target 1.6 -Xlint:-options \ -cp $(ANDROID_SDK_PLATFORM_DIR)/android.jar:$(JAVA_CLASSFILES_DIR) \ + -h android/build/include \ -d $(JAVA_CLASSFILES_DIR) $^ $(DX) --dex --output $@ $(JAVA_CLASSFILES_DIR) android/build/include/org_musicpd_Bridge.h: android/build/classes.dex - javah -classpath $(ANDROID_SDK_PLATFORM_DIR)/android.jar:$(JAVA_CLASSFILES_DIR) -d $(@D) org.musicpd.Bridge BUILT_SOURCES = android/build/include/org_musicpd_Bridge.h