summaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/java_generate_native_headers.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/markdown/snippets/java_generate_native_headers.md')
-rw-r--r--docs/markdown/snippets/java_generate_native_headers.md34
1 files changed, 0 insertions, 34 deletions
diff --git a/docs/markdown/snippets/java_generate_native_headers.md b/docs/markdown/snippets/java_generate_native_headers.md
deleted file mode 100644
index 2a2a89e3d..000000000
--- a/docs/markdown/snippets/java_generate_native_headers.md
+++ /dev/null
@@ -1,34 +0,0 @@
-## Deprecated `java.generate_native_header()` in favor of the new `java.generate_native_headers()`
-
-`java.generate_native_header()` was only useful for the most basic of
-situations. It didn't take into account that in order to generate native
-headers, you had to have all the referenced Java files. It also didn't take
-into account inner classes. Do not use this function from `0.62.0` onward.
-
-`java.generate_native_headers()` has been added as a replacement which should account for the previous function's shortcomings.
-
-```java
-// Outer.java
-
-package com.mesonbuild;
-
-public class Outer {
- private static native void outer();
-
- public static class Inner {
- private static native void inner();
- }
-}
-```
-
-With the above file, an invocation would look like the following:
-
-```meson
-java = import('java')
-
-native_headers = java.generate_native_headers(
- 'Outer.java',
- package: 'com.mesonbuild',
- classes: ['Outer', 'Outer.Inner']
-)
-```