diff --git a/android/include/meson.build b/android/include/meson.build index edcdc8283..2fd13c33c 100644 --- a/android/include/meson.build +++ b/android/include/meson.build @@ -9,10 +9,11 @@ bridge_header = custom_target( '../app/src/main/java/org/musicpd/Bridge.java', ], command: [ - join_paths(meson.current_source_dir(), 'run-javac.sh'), javac, - join_paths(android_sdk_platform_dir, 'android.jar'), - '@OUTDIR@', + '-source', '1.8', '-target', '1.8', + '-Xlint:-options', + '-cp', join_paths(android_sdk_platform_dir, 'android.jar'), + '-h', '@OUTDIR@', '@INPUT@', ], ) diff --git a/android/include/run-javac.sh b/android/include/run-javac.sh deleted file mode 100755 index 22daf0c9d..000000000 --- a/android/include/run-javac.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -e - -JAVAC=$1 -CLASSPATH=$2 -GENINCLUDE=$3 - -"$JAVAC" -source 1.8 -target 1.8 -Xlint:-options \ - -cp "$CLASSPATH" \ - -h "$GENINCLUDE" \ - "$4" -