aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/markdown/snippets/jni_system_dependency_bsd_support.md4
-rw-r--r--mesonbuild/dependencies/dev.py8
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