feat: initialized project

This commit is contained in:
Sara 2024-03-07 20:59:55 +01:00
parent 8e0ba99e6d
commit 67944834d4
4 changed files with 25 additions and 25 deletions

View file

@ -11,7 +11,7 @@ def validate_parent_dir(key, val, env):
raise UserError("'%s' is not a directory: %s" % (key, os.path.dirname(val)))
libname = "EXAMPLE"
libname = "tunnels"
projectdir = "godot"
localEnv = Environment(tools=["default"], PLATFORM="")

View file

@ -1,23 +0,0 @@
[configuration]
entry_symbol = "EXAMPLE_library_init"
compatibility_minimum = "4.1"
[libraries]
macos.debug = "res://bin/macos/libEXAMPLE.macos.template_debug.framework"
macos.release = "res://bin/macos/libEXAMPLE.macos.template_release.framework"
windows.debug.x86_32 = "res://bin/windows/libEXAMPLE.windows.template_debug.x86_32.dll"
windows.release.x86_32 = "res://bin/windows/libEXAMPLE.windows.template_release.x86_32.dll"
windows.debug.x86_64 = "res://bin/windows/libEXAMPLE.windows.template_debug.x86_64.dll"
windows.release.x86_64 = "res://bin/windows/libEXAMPLE.windows.template_release.x86_64.dll"
linux.debug.x86_64 = "res://bin/linux/libEXAMPLE.linux.template_debug.x86_64.so"
linux.release.x86_64 = "res://bin/linux/libEXAMPLE.linux.template_release.x86_64.so"
linux.debug.arm64 = "res://bin/linux/libEXAMPLE.linux.template_debug.arm64.so"
linux.release.arm64 = "res://bin/linux/libEXAMPLE.linux.template_release.arm64.so"
linux.debug.rv64 = "res://bin/linux/libEXAMPLE.linux.template_debug.rv64.so"
linux.release.rv64 = "res://bin/linux/libEXAMPLE.linux.template_release.rv64.so"
android.debug.x86_64 = "res://bin/linux/libEXAMPLE.android.template_debug.x86_64.so"
android.release.x86_64 = "res://bin/linux/libEXAMPLE.android.template_release.x86_64.so"
android.debug.arm64 = "res://bin/linux/libEXAMPLE.android.template_debug.arm64.so"
android.release.arm64 = "res://bin/linux/libEXAMPLE.android.template_release.arm64.so"

View file

@ -0,0 +1,23 @@
[configuration]
entry_symbol = "tunnels_library_init"
compatibility_minimum = "4.1"
[libraries]
macos.debug = "res://bin/macos/libtunnels.macos.template_debug.framework"
macos.release = "res://bin/macos/libtunnels.macos.template_release.framework"
windows.debug.x86_32 = "res://bin/windows/libtunnels.windows.template_debug.x86_32.dll"
windows.release.x86_32 = "res://bin/windows/libtunnels.windows.template_release.x86_32.dll"
windows.debug.x86_64 = "res://bin/windows/libtunnels.windows.template_debug.x86_64.dll"
windows.release.x86_64 = "res://bin/windows/libtunnels.windows.template_release.x86_64.dll"
linux.debug.x86_64 = "res://bin/linux/libtunnels.linux.template_debug.x86_64.so"
linux.release.x86_64 = "res://bin/linux/libtunnels.linux.template_release.x86_64.so"
linux.debug.arm64 = "res://bin/linux/libtunnels.linux.template_debug.arm64.so"
linux.release.arm64 = "res://bin/linux/libtunnels.linux.template_release.arm64.so"
linux.debug.rv64 = "res://bin/linux/libtunnels.linux.template_debug.rv64.so"
linux.release.rv64 = "res://bin/linux/libtunnels.linux.template_release.rv64.so"
android.debug.x86_64 = "res://bin/linux/libtunnels.android.template_debug.x86_64.so"
android.release.x86_64 = "res://bin/linux/libtunnels.android.template_release.x86_64.so"
android.debug.arm64 = "res://bin/linux/libtunnels.android.template_debug.arm64.so"
android.release.arm64 = "res://bin/linux/libtunnels.android.template_release.arm64.so"

View file

@ -22,7 +22,7 @@ void initialize_gdextension_types(ModuleInitializationLevel p_level)
extern "C"
{
// Initialization
GDExtensionBool GDE_EXPORT EXAMPLE_library_init(GDExtensionInterfaceGetProcAddress p_get_proc_address, GDExtensionClassLibraryPtr p_library, GDExtensionInitialization *r_initialization)
GDExtensionBool GDE_EXPORT tunnels_library_init(GDExtensionInterfaceGetProcAddress p_get_proc_address, GDExtensionClassLibraryPtr p_library, GDExtensionInitialization *r_initialization)
{
GDExtensionBinding::InitObject init_obj(p_get_proc_address, p_library, r_initialization);
init_obj.register_initializer(initialize_gdextension_types);