diff --git a/scripts/generate_static_library.sh b/scripts/generate_static_library.sh index 972bc6c..9da68b0 100755 --- a/scripts/generate_static_library.sh +++ b/scripts/generate_static_library.sh @@ -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.-..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" \ No newline at end of file + +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 \ No newline at end of file