From edf907d8213d731d35e4752623645290c03c7f7b Mon Sep 17 00:00:00 2001 From: "Rodrigo B. de Oliveira" Date: Mon, 18 Nov 2024 11:30:52 -0300 Subject: [PATCH] Rename library --- SConstruct | 26 +++++++++++++------------- demo/bin/example.gdextension | 25 ------------------------- demo/bin/godot-s7-scheme.gdextension | 25 +++++++++++++++++++++++++ src/register_types.cpp | 4 ++-- 4 files changed, 40 insertions(+), 40 deletions(-) delete mode 100644 demo/bin/example.gdextension create mode 100644 demo/bin/godot-s7-scheme.gdextension diff --git a/SConstruct b/SConstruct index 72cd39e..8c3ff74 100644 --- a/SConstruct +++ b/SConstruct @@ -5,7 +5,7 @@ import sys from methods import print_error -libname = "EXTENSION-NAME" +libname = "godot-s7-scheme" projectdir = "demo" localEnv = Environment(tools=["default"], PLATFORM="") @@ -36,19 +36,19 @@ Run the following command to download godot-cpp: env = SConscript("godot-cpp/SConstruct", {"env": env, "customs": customs}) env.Append( - CPPPATH=["src/", "s7/"], - CPPDEFINES={ - "DISABLE_DEPRECATED": "1", - "DISABLE_AUTOLOAD": "1", - "WITH_C_LOADER": "0", - "WITH_MULTITHREAD_CHECKS": "0", - "WITH_SYSTEM_EXTRAS": "0" - } - ) + CPPPATH=["src/", "s7/"], + CPPDEFINES={ + "DISABLE_DEPRECATED": "1", + "DISABLE_AUTOLOAD": "1", + "WITH_C_LOADER": "0", + "WITH_MULTITHREAD_CHECKS": "0", + "WITH_SYSTEM_EXTRAS": "0" + } +) sources = [ - Glob("src/*.cpp"), - Glob("s7/s7.c") - ] + Glob("src/*.cpp"), + Glob("s7/s7.c") +] if env["target"] in ["editor", "template_debug"]: try: diff --git a/demo/bin/example.gdextension b/demo/bin/example.gdextension deleted file mode 100644 index f3b7df0..0000000 --- a/demo/bin/example.gdextension +++ /dev/null @@ -1,25 +0,0 @@ -[configuration] - -entry_symbol = "example_library_init" -compatibility_minimum = "4.1" - -[libraries] - -macos.debug = "res://bin/macos/macos.framework/libEXTENSION-NAME.macos.template_debug" -macos.release = "res://bin/macos/macos.framework/libEXTENSION-NAME.macos.template_release" -ios.debug = "res://bin/ios/ios.framework/libEXTENSION-NAME.ios.template_debug" -ios.release = "res://bin/ios/ios.framework/libEXTENSION-NAME.ios.template_release" -windows.debug.x86_32 = "res://bin/windows/libEXTENSION-NAME.windows.template_debug.x86_32.dll" -windows.release.x86_32 = "res://bin/windows/libEXTENSION-NAME.windows.template_release.x86_32.dll" -windows.debug.x86_64 = "res://bin/windows/libEXTENSION-NAME.windows.template_debug.x86_64.dll" -windows.release.x86_64 = "res://bin/windows/libEXTENSION-NAME.windows.template_release.x86_64.dll" -linux.debug.x86_64 = "res://bin/linux/libEXTENSION-NAME.linux.template_debug.x86_64.so" -linux.release.x86_64 = "res://bin/linux/libEXTENSION-NAME.linux.template_release.x86_64.so" -linux.debug.arm64 = "res://bin/linux/libEXTENSION-NAME.linux.template_debug.arm64.so" -linux.release.arm64 = "res://bin/linux/libEXTENSION-NAME.linux.template_release.arm64.so" -linux.debug.rv64 = "res://bin/linux/libEXTENSION-NAME.linux.template_debug.rv64.so" -linux.release.rv64 = "res://bin/linux/libEXTENSION-NAME.linux.template_release.rv64.so" -android.debug.x86_64 = "res://bin/android/libEXTENSION-NAME.android.template_debug.x86_64.so" -android.release.x86_64 = "res://bin/android/libEXTENSION-NAME.android.template_release.x86_64.so" -android.debug.arm64 = "res://bin/android/libEXTENSION-NAME.android.template_debug.arm64.so" -android.release.arm64 = "res://bin/android/libEXTENSION-NAME.android.template_release.arm64.so" diff --git a/demo/bin/godot-s7-scheme.gdextension b/demo/bin/godot-s7-scheme.gdextension new file mode 100644 index 0000000..5f62a7d --- /dev/null +++ b/demo/bin/godot-s7-scheme.gdextension @@ -0,0 +1,25 @@ +[configuration] + +entry_symbol = "godot_s7_scheme_library_init" +compatibility_minimum = "4.2" + +[libraries] + +macos.debug = "res://bin/macos/macos.framework/libgodot-s7-scheme.macos.template_debug" +macos.release = "res://bin/macos/macos.framework/libgodot-s7-scheme.macos.template_release" +ios.debug = "res://bin/ios/ios.framework/libgodot-s7-scheme.ios.template_debug" +ios.release = "res://bin/ios/ios.framework/libgodot-s7-scheme.ios.template_release" +windows.debug.x86_32 = "res://bin/windows/libgodot-s7-scheme.windows.template_debug.x86_32.dll" +windows.release.x86_32 = "res://bin/windows/libgodot-s7-scheme.windows.template_release.x86_32.dll" +windows.debug.x86_64 = "res://bin/windows/libgodot-s7-scheme.windows.template_debug.x86_64.dll" +windows.release.x86_64 = "res://bin/windows/libgodot-s7-scheme.windows.template_release.x86_64.dll" +linux.debug.x86_64 = "res://bin/linux/libgodot-s7-scheme.linux.template_debug.x86_64.so" +linux.release.x86_64 = "res://bin/linux/libgodot-s7-scheme.linux.template_release.x86_64.so" +linux.debug.arm64 = "res://bin/linux/libgodot-s7-scheme.linux.template_debug.arm64.so" +linux.release.arm64 = "res://bin/linux/libgodot-s7-scheme.linux.template_release.arm64.so" +linux.debug.rv64 = "res://bin/linux/libgodot-s7-scheme.linux.template_debug.rv64.so" +linux.release.rv64 = "res://bin/linux/libgodot-s7-scheme.linux.template_release.rv64.so" +android.debug.x86_64 = "res://bin/android/libgodot-s7-scheme.android.template_debug.x86_64.so" +android.release.x86_64 = "res://bin/android/libgodot-s7-scheme.android.template_release.x86_64.so" +android.debug.arm64 = "res://bin/android/libgodot-s7-scheme.android.template_debug.arm64.so" +android.release.arm64 = "res://bin/android/libgodot-s7-scheme.android.template_release.arm64.so" diff --git a/src/register_types.cpp b/src/register_types.cpp index 9f43623..e9ece5c 100644 --- a/src/register_types.cpp +++ b/src/register_types.cpp @@ -23,7 +23,7 @@ void uninitialize_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 godot_s7_scheme_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); @@ -32,4 +32,4 @@ extern "C" return init_obj.init(); } -} \ No newline at end of file +}