Fixes for building on macOS

main
Aaron Franke 3 years ago
parent ebf94e6c63
commit 8976deb9b3
No known key found for this signature in database
GPG Key ID: 40A1750B977E56BF

5
.gitignore vendored

@ -1,6 +1,3 @@
# Binaries.
*.so
# Objects.
.scons-cache/
*.os
@ -11,7 +8,7 @@
*.pyc
# MacOS
.DS_Store/
.DS_Store
# Editors
.vscode/

@ -27,9 +27,9 @@ extension_name = Path(extension_path).stem
# print("Scons cache enabled... (path: '" + scons_cache_path + "')")
# Create the library target (e.g. libexample.linux.debug.x86_64.so).
if env["platform"] == "osx":
if env["platform"] == "macos":
library = env.SharedLibrary(
"{}/bin/lib{}.{}.{}.framework/{1}.{2}.{3}".format(
"{0}/bin/lib{1}.{2}.{3}.framework/{1}.{2}.{3}".format(
addon_path,
extension_name,
env["platform"],

@ -0,0 +1,2 @@
*
!.gitignore

@ -4,8 +4,8 @@ entry_symbol = "gdextension_init"
[libraries]
macos.debug = "bin/libexample.osx.debug.framework"
macos.release = "bin/libexample.osx.release.framework"
macos.debug = "bin/libexample.macos.debug.framework"
macos.release = "bin/libexample.macos.release.framework"
windows.debug.x86_64 = "bin/libexample.windows.debug.x86_64.dll"
windows.release.x86_64 = "bin/libexample.windows.release.x86_64.dll"
linux.debug.x86_64 = "bin/libexample.linux.debug.x86_64.so"

Loading…
Cancel
Save