diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2022-03-21 23:24:01 +0200 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2022-03-21 23:24:01 +0200 |
| commit | fb67adf3e6b57d44dad6c943a6081277860350c5 (patch) | |
| tree | f48a88cb58e4f77e8ababd2c3e2045e42622ce09 /docs/markdown/snippets/java_generate_native_headers.md | |
| parent | 42af1f7092c9cfdcffd2b7ba021dc8e5d392aa8c (diff) | |
| download | meson-fb67adf3e6b57d44dad6c943a6081277860350c5.tar.gz | |
Prepare the 0.62.0 release.
Diffstat (limited to 'docs/markdown/snippets/java_generate_native_headers.md')
| -rw-r--r-- | docs/markdown/snippets/java_generate_native_headers.md | 34 |
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'] -) -``` |
