From 80b101443dad6b38d6ebdc96ea09740f17a9a834 Mon Sep 17 00:00:00 2001 From: Tristan Partin Date: Sun, 2 Oct 2022 19:18:21 -0500 Subject: Add BSD support to the JNISystemDependency Supports all BSDs that Meson currently supports. Fixes #10883 --- docs/markdown/snippets/jni_system_dependency_bsd_support.md | 4 ++++ mesonbuild/dependencies/dev.py | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100644 docs/markdown/snippets/jni_system_dependency_bsd_support.md 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 -- cgit v1.1