diff options
-rw-r--r-- | git_api.gdnlib | 16 | ||||
-rw-r--r-- | git_api.gdns | 9 | ||||
-rw-r--r-- | project.godot | 10 |
3 files changed, 35 insertions, 0 deletions
diff --git a/git_api.gdnlib b/git_api.gdnlib new file mode 100644 index 0000000..42f2fb6 --- /dev/null +++ b/git_api.gdnlib @@ -0,0 +1,16 @@ +[general] + +singleton=true +load_once=true +symbol_prefix="godot_" +reloadable=false + +[entry] + +Windows.64="res://bin/win64/release/libgitapi.dll" +X11.64="res://bin/x11/release/libgitapi.so" + +[dependencies] + +Windows.64=[ ] +X11.64=[ ] diff --git a/git_api.gdns b/git_api.gdns new file mode 100644 index 0000000..adab80a --- /dev/null +++ b/git_api.gdns @@ -0,0 +1,9 @@ +[gd_resource type="NativeScript" load_steps=2 format=2] + +[ext_resource path="res://git_api.gdnlib" type="GDNativeLibrary" id=1] + +[resource] +resource_name = "GitAPI" +class_name = "GitAPI" +library = ExtResource( 1 ) +script_class_name = "GitAPI" diff --git a/project.godot b/project.godot index 82b37c7..54a8fe2 100644 --- a/project.godot +++ b/project.godot @@ -14,6 +14,11 @@ _global_script_classes=[ { "language": "GDScript", "path": "res://components/button.gd" }, { +"base": "", +"class": "GitAPI", +"language": "NativeScript", +"path": "res://git_api.gdns" +}, { "base": "Label", "class": "TextReveal", "language": "GDScript", @@ -21,6 +26,7 @@ _global_script_classes=[ { } ] _global_script_class_icons={ "ButtonTest": "", +"GitAPI": "", "TextReveal": "" } @@ -37,6 +43,10 @@ window/size/height=720 window/stretch/mode="2d" window/stretch/aspect="keep" +[gdnative] + +singletons=[ "res://git_api.gdnlib" ] + [input] mv_up={ |