Add BSD support to the JNISystemDependency

Supports all BSDs that Meson currently supports.

Fixes #10883
This commit is contained in:
Tristan Partin 2022-10-02 19:18:21 -05:00 committed by Jussi Pakkanen
parent 2cb7350d16
commit 80b101443d
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,4 @@
## BSD support for the `jni` dependency
This system dependency now supports all BSD systems that Meson currently
supports, including FreeBSD, NetBSD, OpenBSD, and DragonflyBSD.

View File

@ -618,6 +618,14 @@ class JNISystemDependency(SystemDependency):
return 'darwin'
elif m.is_sunos():
return 'solaris'
elif m.is_freebsd():
return 'freebsd'
elif m.is_netbsd():
return 'netbsd'
elif m.is_openbsd():
return 'openbsd'
elif m.is_dragonflybsd():
return 'dragonfly'
return None