Skip to content

Commit

Permalink
fix: generate_static_library.sh on 3.x Godot
Browse files Browse the repository at this point in the history
  • Loading branch information
gumaciel committed Mar 6, 2023
1 parent 37f50de commit 5a44b32
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions scripts/generate_static_library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,16 @@ scons target=$2 arch=x86_64 simulator=yes plugin=$1 version=$3

# Creating a fat libraries for device and simulator
# lib<plugin>.<arch>-<simulator|ios>.<release|debug|release_debug>.a
lipo -create "./bin/lib$1.x86_64-simulator.$2.a" \
"./bin/lib$1.armv7-ios.$2.a" \
"./bin/lib$1.arm64-ios.$2.a" \
-output "./bin/$1.$2.a"

if [[ "$3" == "3.x" ]];
then
lipo -create "./bin/lib$1.x86_64-simulator.$2.a" \
"./bin/lib$1.armv7-iphone.$2.a" \
"./bin/lib$1.arm64-iphone.$2.a" \
-output "./bin/$1.$2.a"
else
lipo -create "./bin/lib$1.x86_64-simulator.$2.a" \
"./bin/lib$1.armv7-ios.$2.a" \
"./bin/lib$1.arm64-ios.$2.a" \
-output "./bin/$1.$2.a"
fi

0 comments on commit 5a44b32

Please sign in to comment.