2023-12-22 16:37:52 +01:00
|
|
|
javac = find_program('javac')
|
|
|
|
|
|
|
|
bridge_header = custom_target(
|
|
|
|
'org_musicpd_Bridge.h',
|
|
|
|
output: 'org_musicpd_Bridge.h',
|
|
|
|
input: [
|
|
|
|
'../app/src/main/java/org/musicpd/Bridge.java',
|
|
|
|
],
|
|
|
|
command: [
|
|
|
|
javac,
|
2023-12-22 16:37:13 +01:00
|
|
|
'-source', '1.8', '-target', '1.8',
|
|
|
|
'-Xlint:-options',
|
|
|
|
'-cp', join_paths(android_sdk_platform_dir, 'android.jar'),
|
2023-12-22 16:45:36 +01:00
|
|
|
|
|
|
|
# not interested in *.class, we only want the JNI header
|
|
|
|
'-d', '@PRIVATE_DIR@',
|
|
|
|
|
2023-12-22 16:37:13 +01:00
|
|
|
'-h', '@OUTDIR@',
|
2023-12-22 16:37:52 +01:00
|
|
|
'@INPUT@',
|
|
|
|
],
|
|
|
|
)
|