diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2022-12-16 20:30:53 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-16 20:30:53 +0200 |
| commit | 6c26cb96b8a34a583fca023effd31a397c7f106e (patch) | |
| tree | c555d30bdac5e3e05296413e0d933b26db070280 /test cases | |
| parent | 2ef94a71f8072567e39f22bfed7bcae0ca2038c2 (diff) | |
| parent | 71cddebf2c6093fe52de01329847926801f87f35 (diff) | |
| download | meson-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.build | 6 |
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') |
