-
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#27 Insert updated plugin version to work with "release_debug"
- Loading branch information
Showing
5 changed files
with
173 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ example/android | |
example/ios | ||
|
||
ios/admob/lib | ||
ios/extracted_headers | ||
ios/godot | ||
ios/lib | ||
ios/bin | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
rsync -a -m -R --include '*/' --include '*.h' --include '*.inc' --exclude '*' ./ extracted_headers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
# Compile static libraries | ||
|
||
# ARM64 Device | ||
scons target=$2 arch=arm64 plugin=$1 version=$3 | ||
# ARM7 Device | ||
scons target=$2 arch=armv7 plugin=$1 version=$3 | ||
# x86_64 Simulator | ||
scons target=$2 arch=x86_64 simulator=yes plugin=$1 version=$3 | ||
|
||
# Creating a fat libraries for device and simulator | ||
# lib<plugin>.<arch>-<simulator|iphone>.<release|debug|release_debug>.a | ||
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
# Compile static libraries | ||
|
||
# ARM64 Device | ||
scons target=$2 arch=arm64 plugin=$1 version=$3 | ||
# ARM7 Device | ||
scons target=$2 arch=armv7 plugin=$1 version=$3 | ||
# x86_64 Simulator | ||
scons target=$2 arch=x86_64 simulator=yes plugin=$1 version=$3 | ||
# ARM64 Simulator | ||
scons target=$2 arch=arm64 simulator=yes plugin=$1 version=$3 | ||
|
||
# Creating a fat libraries for device and simulator | ||
# lib<plugin>.<arch>-<simulator|iphone>.<release|debug|release_debug>.a | ||
lipo -create "./bin/lib$1.x86_64-simulator.$2.a" "./bin/lib$1.arm64-simulator.$2.a" -output "./bin/$1-simulator.$2.a" | ||
lipo -create "./bin/lib$1.armv7-iphone.$2.a" "./bin/lib$1.arm64-iphone.$2.a" -output "./bin/$1-device.$2.a" | ||
|
||
# Creating a xcframework | ||
xcodebuild -create-xcframework \ | ||
-library "./bin/$1-device.$2.a" \ | ||
-library "./bin/$1-simulator.$2.a" \ | ||
-output "./bin/$1.$2.xcframework" |