android/include/meson.build: call javac directly, eliminate run-javac.sh

This commit is contained in:
Max Kellermann 2023-12-22 16:37:13 +01:00
parent 35c7c005ba
commit 94ef1e13e0
2 changed files with 4 additions and 14 deletions

View File

@ -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@',
],
)

View File

@ -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"