Skip to content

Commit

Permalink
Rename library
Browse files Browse the repository at this point in the history
  • Loading branch information
bamboo committed Nov 18, 2024
1 parent 6046beb commit edf907d
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 40 deletions.
26 changes: 13 additions & 13 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -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="")
Expand Down Expand Up @@ -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:
Expand Down
25 changes: 0 additions & 25 deletions demo/bin/example.gdextension

This file was deleted.

25 changes: 25 additions & 0 deletions demo/bin/godot-s7-scheme.gdextension
Original file line number Diff line number Diff line change
@@ -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"
4 changes: 2 additions & 2 deletions src/register_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -32,4 +32,4 @@ extern "C"

return init_obj.init();
}
}
}

0 comments on commit edf907d

Please sign in to comment.