Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/graal support #256

Merged
merged 29 commits into from
Aug 13, 2021
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
1320ac9
WIP: try graal vm
piiertho Apr 22, 2021
03a5a2b
Successfully acheive steps besfore bootstrap init using graal
piiertho Apr 28, 2021
ce92f06
Try to call entry file, graal native image generation error for now
piiertho Apr 30, 2021
cf15aa4
update graal jniconfig
piiertho Apr 30, 2021
2a76ddf
Move native image tests to tests project
piiertho Apr 30, 2021
1854644
Exclude non public members
chippmann Apr 30, 2021
95124f8
Register int
chippmann Apr 30, 2021
7a1d7e1
Remove non public registration
chippmann Apr 30, 2021
c64bb83
Fix build native sh script
piiertho May 1, 2021
6bb73b8
Add classes to jni config
piiertho May 1, 2021
9e4782c
Add some jni config, now graal works
piiertho Jul 4, 2021
ebb961b
Fix bunnymark project and add graalvm build
piiertho Jul 18, 2021
ab3cf39
WIP: move graal from preprocessor to command line argument
piiertho Jul 12, 2021
0f29e93
Add parameter to use graal vm or hotspot
piiertho Jul 18, 2021
402802b
Add Godot Kotlin configuration file
piiertho Jul 19, 2021
e925943
add graal to export plugin
piiertho Jul 20, 2021
d3be230
Add graal vm native-image configuration to gradle plugin
piiertho Jul 24, 2021
dbf72ab
Fix graalvm native-image generation on OSX
piiertho Jul 24, 2021
7895f54
Add few docs about graalvm native image
piiertho Jul 24, 2021
9394f8d
Remove unuseful GraalFakeMain
piiertho Jul 25, 2021
b4e136a
Remove usage of VCINSTALLDIR to VC_VARS_PATH
piiertho Jul 27, 2021
575bfe7
Add prints and reparse configuration when exporting
piiertho Jul 27, 2021
f5343c3
Fix logs in exports and wrong jar check in case of graal
piiertho Jul 28, 2021
d235df2
Update graalvm native image documentation and vm type parameters
piiertho Jul 29, 2021
76bd9a3
Remove android compilation branch in GdKotlinConfiguration
piiertho Jul 29, 2021
ab2938d
Add GraalNativeImageToolNotFountException exception in gradle plugin
piiertho Jul 30, 2021
2654e4e
Add deserialization of config by passing path
piiertho Jul 30, 2021
0093ba1
Add comments to GodotExtension about graal native image
piiertho Jul 31, 2021
d6548f0
rewrite doc and typo reflexion -> reflection
piiertho Aug 6, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add classes to jni config
  • Loading branch information
piiertho committed Aug 9, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 6bb73b8f43afe3fe9fc631052893b9bf1bce0d09
96 changes: 76 additions & 20 deletions harness/tests/graal/jniconfig.json
Original file line number Diff line number Diff line change
@@ -12,16 +12,11 @@
]
},
{
"name" : "java.lang.ClassLoader",
"allPublicConstructors" : true,
"allPublicMethods" : true,
"allPublicClasses" : true
},
{
"name" : "java.lang.Object",
"allPublicConstructors" : true,
"allPublicMethods" : true,
"allPublicClasses" : true
"name":"java.lang.ClassLoader",
"methods":[
{"name":"getPlatformClassLoader","parameterTypes":[] },
{"name":"loadClass","parameterTypes":["java.lang.String"] }
]
},
{
"name" : "java.lang.String",
@@ -37,10 +32,8 @@
]
},
{
"name" : "java.lang.Integer",
"allPublicConstructors" : true,
"allPublicMethods" : true,
"allPublicClasses" : true
"name":"java.lang.Integer",
"methods":[{"name":"intValue","parameterTypes":[] }]
},


@@ -70,12 +63,13 @@
]
},
{
"name" : "godot.core.GarbageCollector",
"fields" : [
{ "name" : "INSTANCE" }
],
"methods" : [
{ "name" : "start", "parameterTypes" : ["boolean"] }
"name":"godot.core.GarbageCollector",
"fields":[{"name":"INSTANCE"}],
"methods":[
{"name":"cleanUp","parameterTypes":[] },
{"name":"close","parameterTypes":[] },
{"name":"isClosed","parameterTypes":[] },
{"name":"start","parameterTypes":["boolean"] }
]
},
{
@@ -378,5 +372,67 @@
{ "name" : "registerUserTypesMembers", "parameterTypes" : [] },
{ "name" : "init", "parameterTypes": ["boolean", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.ClassLoader"]}
]
},
{
"name":"godot.core.KtClass",
"methods":[
{"name":"getBaseGodotClass","parameterTypes":[] },
{"name":"getConstructors","parameterTypes":[] },
{"name":"getFunctions","parameterTypes":[] },
{"name":"getName","parameterTypes":[] },
{"name":"getProperties","parameterTypes":[] },
{"name":"getRegisteredName","parameterTypes":[] },
{"name":"getSignalInfos","parameterTypes":[] },
{"name":"getSuperClass","parameterTypes":[] }
]
},
{
"name": "godot.core.KtConstructor",
"methods": [
{"name": "getParameterCount", "parameterTypes": []}
]
},
{
"name":"godot.core.KtFunction",
"methods":[
{"name":"getFunctionInfo","parameterTypes":[] },
{"name":"getParameterCount","parameterTypes":[] }
]
},
{
"name":"godot.core.KtFunctionInfo",
"methods":[
{"name":"getArguments","parameterTypes":[] },
{"name":"getName","parameterTypes":[] },
{"name":"getReturnVal","parameterTypes":[] },
{"name":"getRpcModeId","parameterTypes":[] }
]
},
{
"name":"godot.core.KtProperty",
"methods":[
{"name":"getDefaultValue","parameterTypes":[] },
{"name":"getKtPropertyInfo","parameterTypes":[] },
{"name":"isRef","parameterTypes":[] }
]
},
{
"name":"godot.core.KtPropertyInfo",
"methods":[
{"name":"getClassName","parameterTypes":[] },
{"name":"getHint","parameterTypes":[] },
{"name":"getHintString","parameterTypes":[] },
{"name":"getName","parameterTypes":[] },
{"name":"getRpcModeId","parameterTypes":[] },
{"name":"getType","parameterTypes":[] },
{"name":"getVisibleInEditor","parameterTypes":[] }
]
},
{
"name":"godot.core.KtSignalInfo",
"methods":[
{"name":"getArguments","parameterTypes":[] },
{"name":"getName","parameterTypes":[] }
]
}
]