Rename windows libraries to drop the lib prefix, as this is not customary on Windows.
Drop `universal.` suffix on macOS, as this is implied if there is no distinction between arches. Add more targets for the .gdextension file, including web, more linux targets, and separate single and double builds.
This commit is contained in:
1 parent
96a28e560d
commit
a009ff69f2
2 files changed
+56
-22
No files matched your search
+7
-4
@@ -53,15 +53,18 @@ if env["target"] in ["editor", "template_debug"]:
|
|||||||
except AttributeError:
|
except AttributeError:
|
||||||
print("Not including class reference as we're targeting a pre-4.3 baseline.")
|
print("Not including class reference as we're targeting a pre-4.3 baseline.")
|
||||||
|
|
||||||
file = "{}{}{}".format(libname, env["suffix"], env["SHLIBSUFFIX"])
|
# .dev doesn't inhibit compatibility, so we don't need to key it.
|
||||||
|
# .universal just means "compatible with all relevant arches" so we don't need to key it.
|
||||||
|
suffix = env['suffix'].replace(".dev", "").replace(".universal", "")
|
||||||
|
|
||||||
|
lib_filename = "{}{}{}{}".format(env.subst('$SHLIBPREFIX'), libname, suffix, env.subst('$SHLIBSUFFIX'))
|
||||||
|
|
||||||
libraryfile = "bin/{}/{}".format(env["platform"], file)
|
|
||||||
library = env.SharedLibrary(
|
library = env.SharedLibrary(
|
||||||
libraryfile,
|
"bin/{}/{}".format(env['platform'], lib_filename),
|
||||||
source=sources,
|
source=sources,
|
||||||
)
|
)
|
||||||
|
|
||||||
copy = env.InstallAs("{}/bin/{}/lib{}".format(projectdir, env["platform"], file), library)
|
copy = env.Install("{}/bin/{}/".format(projectdir, env["platform"]), library)
|
||||||
|
|
||||||
default_args = [library, copy]
|
default_args = [library, copy]
|
||||||
Default(*default_args)
|
Default(*default_args)
|
||||||
@@ -5,21 +5,52 @@ compatibility_minimum = "4.1"
|
|||||||
|
|
||||||
[libraries]
|
[libraries]
|
||||||
; Relative paths ensure that our GDExtension can be placed anywhere in the project directory.
|
; Relative paths ensure that our GDExtension can be placed anywhere in the project directory.
|
||||||
macos.debug = "./macos/libEXTENSION-NAME.macos.template_debug.universal.dylib"
|
macos.single.debug = "./macos/libEXTENSION-NAME.macos.template_debug.dylib"
|
||||||
macos.release = "./macos/libEXTENSION-NAME.macos.template_release.universal.dylib"
|
macos.double.debug = "./macos/libEXTENSION-NAME.macos.template_debug.double.dylib"
|
||||||
ios.debug = "./ios/libEXTENSION-NAME.ios.template_debug.arm64.dylib"
|
macos.single.release = "./macos/libEXTENSION-NAME.macos.template_release.dylib"
|
||||||
ios.release = "./ios/libEXTENSION-NAME.ios.template_release.arm64.dylib"
|
macos.double.release = "./macos/libEXTENSION-NAME.macos.template_debug.double.dylib"
|
||||||
windows.debug.x86_32 = "./windows/libEXTENSION-NAME.windows.template_debug.x86_32.dll"
|
|
||||||
windows.release.x86_32 = "./windows/libEXTENSION-NAME.windows.template_release.x86_32.dll"
|
ios.arm64.single.debug = "./ios/libEXTENSION-NAME.ios.template_debug.arm64.dylib"
|
||||||
windows.debug.x86_64 = "./windows/libEXTENSION-NAME.windows.template_debug.x86_64.dll"
|
ios.arm64.double.debug = "./ios/libEXTENSION-NAME.ios.template_debug.arm64.double.dylib"
|
||||||
windows.release.x86_64 = "./windows/libEXTENSION-NAME.windows.template_release.x86_64.dll"
|
ios.arm64.single.release = "./ios/libEXTENSION-NAME.ios.template_release.arm64.dylib"
|
||||||
linux.debug.x86_64 = "./linux/libEXTENSION-NAME.linux.template_debug.x86_64.so"
|
ios.arm64.double.release = "./ios/libEXTENSION-NAME.ios.template_release.arm64.double.dylib"
|
||||||
linux.release.x86_64 = "./linux/libEXTENSION-NAME.linux.template_release.x86_64.so"
|
|
||||||
linux.debug.arm64 = "./linux/libEXTENSION-NAME.linux.template_debug.arm64.so"
|
windows.x86_32.single.debug = "./windows/EXTENSION-NAME.windows.template_debug.x86_32.dll"
|
||||||
linux.release.arm64 = "./linux/libEXTENSION-NAME.linux.template_release.arm64.so"
|
windows.x86_32.double.debug = "./windows/EXTENSION-NAME.windows.template_debug.x86_32.double.dll"
|
||||||
linux.debug.rv64 = "./linux/libEXTENSION-NAME.linux.template_debug.rv64.so"
|
windows.x86_32.single.release = "./windows/EXTENSION-NAME.windows.template_release.x86_32.dll"
|
||||||
linux.release.rv64 = "./linux/libEXTENSION-NAME.linux.template_release.rv64.so"
|
windows.x86_32.double.release = "./windows/EXTENSION-NAME.windows.template_release.x86_32.double.dll"
|
||||||
android.debug.x86_64 = "./android/libEXTENSION-NAME.android.template_debug.x86_64.so"
|
|
||||||
android.release.x86_64 = "./android/libEXTENSION-NAME.android.template_release.x86_64.so"
|
windows.x86_64.single.debug = "./windows/EXTENSION-NAME.windows.template_debug.x86_64.dll"
|
||||||
android.debug.arm64 = "./android/libEXTENSION-NAME.android.template_debug.arm64.so"
|
windows.x86_64.double.debug = "./windows/EXTENSION-NAME.windows.template_debug.x86_64.double.dll"
|
||||||
android.release.arm64 = "./android/libEXTENSION-NAME.android.template_release.arm64.so"
|
windows.x86_64.single.release = "./windows/EXTENSION-NAME.windows.template_release.x86_64.dll"
|
||||||
|
windows.x86_64.double.release = "./windows/EXTENSION-NAME.windows.template_release.x86_64.double.dll"
|
||||||
|
|
||||||
|
linux.x86_64.single.debug = "./linux/libEXTENSION-NAME.linux.template_debug.x86_64.so"
|
||||||
|
linux.x86_64.double.debug = "./linux/libEXTENSION-NAME.linux.template_debug.x86_64.double.so"
|
||||||
|
linux.x86_64.single.release = "./linux/libEXTENSION-NAME.linux.template_release.x86_64.so"
|
||||||
|
linux.x86_64.double.release = "./linux/libEXTENSION-NAME.linux.template_release.x86_64.double.so"
|
||||||
|
|
||||||
|
linux.arm64.single.debug = "./linux/libEXTENSION-NAME.linux.template_debug.arm64.so"
|
||||||
|
linux.arm64.double.debug = "./linux/libEXTENSION-NAME.linux.template_debug.arm64.double.so"
|
||||||
|
linux.arm64.single.release = "./linux/libEXTENSION-NAME.linux.template_release.arm64.so"
|
||||||
|
linux.arm64.double.release = "./linux/libEXTENSION-NAME.linux.template_release.arm64.double.so"
|
||||||
|
|
||||||
|
linux.rv64.single.debug = "./linux/libEXTENSION-NAME.linux.template_debug.rv64.so"
|
||||||
|
linux.rv64.double.debug = "./linux/libEXTENSION-NAME.linux.template_debug.rv64.double.so"
|
||||||
|
linux.rv64.single.release = "./linux/libEXTENSION-NAME.linux.template_release.rv64.so"
|
||||||
|
linux.rv64.double.release = "./linux/libEXTENSION-NAME.linux.template_release.rv64.double.so"
|
||||||
|
|
||||||
|
android.x86_64.single.debug = "./android/libEXTENSION-NAME.android.template_debug.x86_64.so"
|
||||||
|
android.x86_64.double.debug = "./android/libEXTENSION-NAME.android.template_debug.x86_64.double.so"
|
||||||
|
android.x86_64.single.release = "./android/libEXTENSION-NAME.android.template_release.x86_64.so"
|
||||||
|
android.x86_64.double.release = "./android/libEXTENSION-NAME.android.template_release.x86_64.double.so"
|
||||||
|
|
||||||
|
android.arm64.single.debug = "./android/libEXTENSION-NAME.android.template_debug.arm64.so"
|
||||||
|
android.arm64.double.debug = "./android/libEXTENSION-NAME.android.template_debug.arm64.double.so"
|
||||||
|
android.arm64.single.release = "./android/libEXTENSION-NAME.android.template_release.arm64.so"
|
||||||
|
android.arm64.double.release = "./android/libEXTENSION-NAME.android.template_release.arm64.double.so"
|
||||||
|
|
||||||
|
web.wasm32.single.debug = "./web/libEXTENSION-NAME.web.template_debug.wasm32.nothreads.wasm"
|
||||||
|
web.wasm32.double.debug = "./web/libEXTENSION-NAME.web.template_release.wasm32.double.nothreads.wasm"
|
||||||
|
web.wasm32.single.release = "./web/libEXTENSION-NAME.web.template_release.wasm32.nothreads.wasm"
|
||||||
|
web.wasm32.double.release = "./web/libEXTENSION-NAME.web.template_release.wasm32.double.nothreads.wasm"
|
||||||
Reference in new issue
Block a user