android/include/meson.build: generate *.class in @PRIVATE_DIR@

We're not interested in the *.class files, we run javac only to
generate the JNI header.  By using @PRIVATE_DIR@, it gets stored to a
directory we can ignore, and not into the source tree.
This commit is contained in:
Max Kellermann 2023-12-22 16:45:36 +01:00
parent 94ef1e13e0
commit 38226dfe81
1 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,10 @@ bridge_header = custom_target(
'-source', '1.8', '-target', '1.8',
'-Xlint:-options',
'-cp', join_paths(android_sdk_platform_dir, 'android.jar'),
# not interested in *.class, we only want the JNI header
'-d', '@PRIVATE_DIR@',
'-h', '@OUTDIR@',
'@INPUT@',
],