summaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2022-12-16 20:30:53 +0200
committerGitHub <noreply@github.com>2022-12-16 20:30:53 +0200
commit6c26cb96b8a34a583fca023effd31a397c7f106e (patch)
treec555d30bdac5e3e05296413e0d933b26db070280 /test cases
parent2ef94a71f8072567e39f22bfed7bcae0ca2038c2 (diff)
parent71cddebf2c6093fe52de01329847926801f87f35 (diff)
downloadmeson-6c26cb96b8a34a583fca023effd31a397c7f106e.tar.gz
Merge pull request #11181 from tristan957/backends
JNISystemDependency fixes
Diffstat (limited to 'test cases')
-rw-r--r--test cases/java/9 jni/meson.build6
1 files changed, 6 insertions, 0 deletions
diff --git a/test cases/java/9 jni/meson.build b/test cases/java/9 jni/meson.build
index 90a8485e5..7a6816591 100644
--- a/test cases/java/9 jni/meson.build
+++ b/test cases/java/9 jni/meson.build
@@ -11,10 +11,16 @@ endif
fs = import('fs')
javamod = import('java')
+cc = meson.get_compiler('c')
java = find_program('java')
jni_dep = dependency('jni', version : '>=1.8', modules: ['jvm', 'awt'])
+# Assert that the header can actually be found with the dependency.
+cc.has_header('jni.h', dependencies: [jni_dep])
+# Assert that the platform-specific include directory is included in the compiler arguments.
+cc.has_header('jni_md.h', dependencies: [jni_dep])
+
# generate native headers
subdir('src')
subdir('lib')