aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/jdk-system-dependency.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/markdown/snippets/jdk-system-dependency.md')
-rw-r--r--docs/markdown/snippets/jdk-system-dependency.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/markdown/snippets/jdk-system-dependency.md b/docs/markdown/snippets/jdk-system-dependency.md
new file mode 100644
index 0000000..bccd16e
--- /dev/null
+++ b/docs/markdown/snippets/jdk-system-dependency.md
@@ -0,0 +1,16 @@
+## JDK System Dependency
+
+When building projects such as those interacting with the JNI, you need access
+to a few header files located in a Java installation. This system dependency
+will add the correct include paths to your target. It assumes that either
+`JAVA_HOME` will be set to a valid Java installation, or the default `javac` on
+your system is a located in the `bin` directory of a Java installation. Note:
+symlinks are resolved.
+
+```meson
+jdk = dependency('jdk', version : '>=1.8')
+```
+
+Currently this system dependency only works on `linux`, `win32`, and `darwin`.
+This can easily be extended given the correct information about your compiler
+and platform in an issue.