From 2c7f71064ca4918c6c37d7ab1de31f8a93d8c99e Mon Sep 17 00:00:00 2001 From: Gregor Lohaus Date: Fri, 29 May 2026 09:48:28 +0200 Subject: [PATCH] metadata --- build.gradle | 6 +- .../jlibghostty/reachability-metadata.json | 236 ++++++++++++++++++ 2 files changed, 241 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/META-INF/native-image/dev.jlibghostty/jlibghostty/reachability-metadata.json diff --git a/build.gradle b/build.gradle index 16cffe6..8f3c176 100644 --- a/build.gradle +++ b/build.gradle @@ -25,7 +25,11 @@ javafx { } gluonfx { - compilerArgs += ['-H:+ForeignAPISupport', '--enable-native-access=ALL-UNNAMED'] + compilerArgs += [ + '-H:+ForeignAPISupport', + '--enable-native-access=ALL-UNNAMED', + "-H:ConfigurationFileDirectories=${file('src/main/resources/META-INF/native-image/dev.jlibghostty/jlibghostty').absolutePath}" + ] } application { diff --git a/src/main/resources/META-INF/native-image/dev.jlibghostty/jlibghostty/reachability-metadata.json b/src/main/resources/META-INF/native-image/dev.jlibghostty/jlibghostty/reachability-metadata.json new file mode 100644 index 0000000..94f8c6b --- /dev/null +++ b/src/main/resources/META-INF/native-image/dev.jlibghostty/jlibghostty/reachability-metadata.json @@ -0,0 +1,236 @@ +{ + "resources": [ + { + "glob": "dev/jlibghostty/native/**" + } + ], + "foreign": { + "upcalls": [ + { + "returnType": "void", + "parameterTypes": [ + "void*", + "void*", + "void*", + "size_t" + ] + }, + { + "returnType": "bool", + "parameterTypes": [ + "void*", + "void*", + "void*" + ] + } + ], + "downcalls": [ + { + "returnType": "int", + "parameterTypes": [ + "void*", + "void*", + "struct(short, short, padding(4), size_t)" + ] + }, + { + "returnType": "void", + "parameterTypes": [ + "void*" + ] + }, + { + "returnType": "int", + "parameterTypes": [ + "void*", + "short", + "short", + "int", + "int" + ] + }, + { + "returnType": "void", + "parameterTypes": [ + "void*", + "void*", + "size_t" + ] + }, + { + "returnType": "void", + "parameterTypes": [ + "void*", + "struct(int, padding(4), struct(long long, long long))" + ] + }, + { + "returnType": "int", + "parameterTypes": [ + "void*", + "int", + "void*" + ] + }, + { + "returnType": "int", + "parameterTypes": [ + "void*", + "int", + "void*" + ] + }, + { + "returnType": "bool", + "parameterTypes": [ + "void*", + "size_t" + ] + }, + { + "returnType": "int", + "parameterTypes": [ + "void*", + "size_t", + "bool", + "void*", + "size_t", + "void*" + ] + }, + { + "returnType": "int", + "parameterTypes": [ + "int", + "void*" + ] + }, + { + "returnType": "void*", + "parameterTypes": [] + }, + { + "returnType": "int", + "parameterTypes": [ + "int", + "void*", + "size_t", + "void*" + ] + }, + { + "returnType": "int", + "parameterTypes": [ + "int", + "int", + "void*", + "size_t", + "void*" + ] + }, + { + "returnType": "int", + "parameterTypes": [ + "int", + "struct(short, short, int, int)", + "void*", + "size_t", + "void*" + ] + }, + { + "returnType": "int", + "parameterTypes": [ + "void*", + "void*", + "void*", + "struct(size_t, int, bool, bool, padding(2), struct(size_t, bool, bool, bool, bool, bool, bool, padding(2), struct(size_t, bool, bool, bool, bool, bool, bool, padding(2))), void*)" + ] + }, + { + "returnType": "int", + "parameterTypes": [ + "void*", + "void*", + "size_t", + "void*" + ] + }, + { + "returnType": "void*", + "parameterTypes": [ + "void*", + "int" + ] + }, + { + "returnType": "int", + "parameterTypes": [ + "void*", + "void*" + ] + }, + { + "returnType": "bool", + "parameterTypes": [ + "void*" + ] + }, + { + "returnType": "int", + "parameterTypes": [ + "void*", + "void*", + "void*", + "void*" + ] + }, + { + "returnType": "void", + "parameterTypes": [ + "void*", + "int" + ] + }, + { + "returnType": "void", + "parameterTypes": [ + "void*", + "short" + ] + }, + { + "returnType": "void", + "parameterTypes": [ + "void*", + "struct(float, float)" + ] + }, + { + "returnType": "void", + "parameterTypes": [ + "void*", + "int", + "void*" + ] + }, + { + "returnType": "void", + "parameterTypes": [ + "void*", + "void*" + ] + }, + { + "returnType": "int", + "parameterTypes": [ + "void*", + "void*", + "void*", + "size_t", + "void*" + ] + } + ] + } +}