Skip to content

Commit

Permalink
Add iOS and other Android libraries to .gdextension file
Browse files Browse the repository at this point in the history
  • Loading branch information
gilzoide committed Sep 26, 2023
1 parent 10fbfdc commit cdf58dc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ else: # build library
Glob("{}/{}/*.cpp".format(build_dir, directory))
for directory in source_directories
]
if env["platform"] == "macos":
if env["platform"] in ["macos", "ios"]:
library = env.SharedLibrary(
"addons/lua-gdextension/build/libluagdextension.{}.{}.framework/libluagdextension.{}.{}".format(
env["platform"], env["target"], env["platform"], env["target"]
Expand Down
6 changes: 6 additions & 0 deletions addons/lua-gdextension/luagdextension.gdextension
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ compatibility_minimum = "4.1"

macos.debug = "build/libluagdextension.macos.template_debug.framework"
macos.release = "build/libluagdextension.macos.template_release.framework"
ios.debug = "build/libluagdextension.ios.template_debug.framework"
ios.release = "build/libluagdextension.ios.template_release.framework"
windows.debug.x86_32 = "build/libluagdextension.windows.template_debug.x86_32.dll"
windows.release.x86_32 = "build/libluagdextension.windows.template_release.x86_32.dll"
windows.debug.x86_64 = "build/libluagdextension.windows.template_debug.x86_64.dll"
Expand All @@ -19,7 +21,11 @@ linux.debug.arm64 = "build/libluagdextension.linux.template_debug.arm64.so"
linux.release.arm64 = "build/libluagdextension.linux.template_release.arm64.so"
linux.debug.rv64 = "build/libluagdextension.linux.template_debug.rv64.so"
linux.release.rv64 = "build/libluagdextension.linux.template_release.rv64.so"
android.debug.x86_32 = "build/libluagdextension.android.template_debug.x86_32.so"
android.release.x86_32 = "build/libluagdextension.android.template_release.x86_32.so"
android.debug.x86_64 = "build/libluagdextension.android.template_debug.x86_64.so"
android.release.x86_64 = "build/libluagdextension.android.template_release.x86_64.so"
android.debug.arm32 = "build/libluagdextension.android.template_debug.arm32.so"
android.release.arm32 = "build/libluagdextension.android.template_release.arm32.so"
android.debug.arm64 = "build/libluagdextension.android.template_debug.arm64.so"
android.release.arm64 = "build/libluagdextension.android.template_release.arm64.so"

0 comments on commit cdf58dc

Please sign in to comment.