From 38226dfe81c949470f0b9038d8f866ee9b9387b4 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 22 Dec 2023 16:45:36 +0100 Subject: [PATCH] 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. --- android/include/meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/android/include/meson.build b/android/include/meson.build index 2fd13c33c..6dfdba473 100644 --- a/android/include/meson.build +++ b/android/include/meson.build @@ -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@', ],