diff options
author | Tristan Partin <tristan@partin.io> | 2022-10-02 19:18:21 -0500 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2022-10-09 16:47:47 +0300 |
commit | 80b101443dad6b38d6ebdc96ea09740f17a9a834 (patch) | |
tree | 276197c30b5c9dff562f92a51e0463986a4da9eb | |
parent | 2cb7350d1679fb61826bf4aebfb0f75a9b9103e3 (diff) | |
download | meson-80b101443dad6b38d6ebdc96ea09740f17a9a834.zip meson-80b101443dad6b38d6ebdc96ea09740f17a9a834.tar.gz meson-80b101443dad6b38d6ebdc96ea09740f17a9a834.tar.bz2 |
Add BSD support to the JNISystemDependency
Supports all BSDs that Meson currently supports.
Fixes #10883
-rw-r--r-- | docs/markdown/snippets/jni_system_dependency_bsd_support.md | 4 | ||||
-rw-r--r-- | mesonbuild/dependencies/dev.py | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/docs/markdown/snippets/jni_system_dependency_bsd_support.md b/docs/markdown/snippets/jni_system_dependency_bsd_support.md new file mode 100644 index 0000000..bf1a299 --- /dev/null +++ b/docs/markdown/snippets/jni_system_dependency_bsd_support.md @@ -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. diff --git a/mesonbuild/dependencies/dev.py b/mesonbuild/dependencies/dev.py index e3774c1..d8eaa52 100644 --- a/mesonbuild/dependencies/dev.py +++ b/mesonbuild/dependencies/dev.py @@ -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 |