diff options
author | Justin R. Miller <incanus@codesorcery.net> | 2015-11-16 11:37:18 -0800 |
---|---|---|
committer | Justin R. Miller <incanus@codesorcery.net> | 2015-11-16 11:53:00 -0800 |
commit | 42a60a6661d58ebf784407bc5bc4c0ef35179ef8 (patch) | |
tree | ff9d5e67c1f0a89e46a694ed257030497d836a80 /scripts | |
parent | 212e7a1e081da35309730e6aa15a5fbe967bfeb4 (diff) | |
download | qtlocation-mapboxgl-42a60a6661d58ebf784407bc5bc4c0ef35179ef8.tar.gz |
static framework target for iOS
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/ios/framework.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/scripts/ios/framework.sh b/scripts/ios/framework.sh new file mode 100755 index 0000000000..700c8cf5ac --- /dev/null +++ b/scripts/ios/framework.sh @@ -0,0 +1,32 @@ +#!/usr/bin/env bash + +set -e +set -o pipefail +set -u + +cd build/ios/pkg +rm -rf framework +mkdir framework +cd framework + +mkdir Mapbox.framework + +# headers +cp -rv ../static/Headers Mapbox.framework/Headers +cat ../../../../ios/framework/umbrella >> Mapbox.framework/Headers/Mapbox.h + +# resources +cp -rv ../static/Mapbox.bundle Mapbox.framework/Mapbox.bundle + +# binary +cp -v ../static/libMapbox.a Mapbox.framework/Mapbox + +# module map +mkdir Mapbox.framework/Modules +cp -v ../../../../ios/framework/modulemap Mapbox.framework/Modules/module.modulemap + +# Info.plist +VERSION=$( git tag | grep ^ios | sed 's/^ios-//' | sort -r | grep -v '\-rc.' | grep -v '\-pre.' | sed -n '1p' | sed 's/^v//' ) +cp -v ../../../../ios/framework/Info.plist Mapbox.framework +perl -pi -e "s/#####/$VERSION/" Mapbox.framework/Info.plist +perl -pi -e "s/%%%%%/$VERSION/" Mapbox.framework/Info.plist |