Skip to content

Commit

Permalink
fix ios build
Browse files Browse the repository at this point in the history
  • Loading branch information
Ughuuu committed Mar 28, 2024
1 parent c2781a4 commit e2baf16
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ if env["platform"] == "macos":
),
source=sources,
)
elif env["platform"] == "ios":
library = env.SharedLibrary(
"bin/addons/godot-rapier2d/bin/libphysics_server_rapier2d.{}.{}.framework/libphysics_server_rapier2d.{}.{}".format(
env["platform"], env["target"], env["platform"], env["target"]
),
source=sources,
)
else:
library = env.SharedLibrary(
"bin/addons/godot-rapier2d/bin/libphysics_server_rapier2d{}{}".format(env["suffix"], env["SHLIBSUFFIX"]),
Expand Down
4 changes: 2 additions & 2 deletions bin/addons/godot-rapier2d/godot-rapier2d.gdextension
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ android.debug.x86_64 = "res://addons/godot-rapier2d/bin/libphysics_server_rapier
android.release.x86_64 = "res://addons/godot-rapier2d/bin/libphysics_server_rapier2d.android.template_release.x86_64.so"
android.debug.arm64 = "res://addons/godot-rapier2d/bin/libphysics_server_rapier2d.android.template_debug.arm64.so"
android.release.arm64 = "res://addons/godot-rapier2d/bin/libphysics_server_rapier2d.android.template_release.arm64.so"
ios.debug = "res://addons/godot-rapier2d/bin/libphysics_server_rapier2d.ios.template_debug.arm64.dylib"
ios.release = "res://addons/godot-rapier2d/bin/libphysics_server_rapier2d.ios.template_release.arm64.dylib"
ios.debug = "res://addons/godot-rapier2d/bin/libphysics_server_rapier2d.ios.template_debug.arm64.framework"
ios.release = "res://addons/godot-rapier2d/bin/libphysics_server_rapier2d.ios.template_release.arm64.framework"
web.debug.wasm32 = "res://addons/godot-rapier2d/bin/libphysics_server_rapier2d.web.template_debug.wasm32.wasm"
web.release.wasm32 = "res://addons/godot-rapier2d/bin/libphysics_server_rapier2d.web.template_release.wasm32.wasm"

0 comments on commit e2baf16

Please sign in to comment.