Skip to content

Commit 69266f9

Browse files
committed
Download Libs macos
1 parent e472e66 commit 69266f9

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

scripts/dev/download_libs.sh

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ cat << EOF
1414
Options:
1515
1616
-v, --version VERSION OF version to download the libraries for. Defaults to master
17-
-p, --platform PLATFORM Platorm among: android, emscritpen, ios, linux, linux64, linuxarmv6l, linuxarmv7l, msys2, osx, tvos, vs
17+
-p, --platform PLATFORM Platorm among: android, emscritpen, ios, linux, linux64, linuxarmv6l, linuxarmv7l, msys2, osx, tvos, vs, macos
1818
If not specified tries to autodetect the platform.
1919
-a, --arch ARCH Architecture:
2020
vs: 64
@@ -193,6 +193,12 @@ elif [ "$PLATFORM" == "vs" ]; then
193193
openFrameworksLibs_${VER}_${PLATFORM}_${ARCH}_3.zip \
194194
openFrameworksLibs_${VER}_${PLATFORM}_${ARCH}_4.zip"
195195
fi
196+
elif [[ "$PLATFORM" =~ ^(macos)$ ]]; then
197+
if [[ $BLEEDING_EDGE = 1 ]] ; then
198+
PKGS="openFrameworksLibs_${VER}_${PLATFORM}.tar.bz2"
199+
else
200+
PKGS="openFrameworksLibs_${VER}_${PLATFORM}.tar.bz2"
201+
fi
196202
elif [[ "$PLATFORM" =~ ^(osx|ios|tvos|xros|catos|watchos)$ ]]; then
197203
if [[ $BLEEDING_EDGE = 1 ]] ; then
198204
PKGS="openFrameworksLibs_${VER}_${PLATFORM}_1.tar.bz2 \
@@ -252,18 +258,21 @@ for PKG in $PKGS; do
252258
fi
253259
done
254260

255-
if [ "$PLATFORM" == "osx" ]; then
261+
if [ "$PLATFORM" == "macos" ]; then
262+
addonslibs=("opencv" "ippicv" "libusb" "assimp" "libxml2" "svgtiny" "poco" "openssl")
263+
addons=("ofxOpenCv" "ofxOpenCv" "ofxKinect" "ofxAssimpModelLoader" "ofxSvg" "ofxPoco" )
264+
elif [ "$PLATFORM" == "osx" ]; then
256265
addonslibs=("opencv" "ippicv" "libusb" "assimp" "libxml2" "svgtiny" "poco" "openssl")
257-
addons=("ofxOpenCv" "ofxOpenCv" "ofxKinect" "ofxAssimpModelLoader" "ofxSvg" "ofxSvg" "ofxPoco" "ofxPoco")
266+
addons=("ofxOpenCv" "ofxOpenCv" "ofxKinect" "ofxAssimpModelLoader" "ofxSvg" "ofxPoco" )
258267
elif [ "$PLATFORM" == "vs" ]; then
259268
addonslibs=("opencv" "ippicv" "libusb" "assimp" "libxml2" "svgtiny" "poco")
260-
addons=("ofxOpenCv" "ofxOpenCv" "ofxKinect" "ofxAssimpModelLoader" "ofxSvg" "ofxSvg" "ofxPoco")
269+
addons=("ofxOpenCv" "ofxOpenCv" "ofxKinect" "ofxAssimpModelLoader" "ofxSvg" "ofxPoco")
261270
elif [ "$PLATFORM" == "ios" ] || [ "$PLATFORM" == "tvos" ]; then
262271
addonslibs=("opencv" "ippicv" "assimp" "libxml2" "svgtiny" "poco" "openssl")
263-
addons=("ofxOpenCv" "ofxOpenCv" "ofxAssimpModelLoader" "ofxSvg" "ofxSvg" "ofxPoco" "ofxPoco")
272+
addons=("ofxOpenCv" "ofxOpenCv" "ofxAssimpModelLoader" "ofxSvg" "ofxPoco")
264273
else
265274
addonslibs=("opencv" "ippicv" "assimp" "libxml2" "svgtiny" "poco")
266-
addons=("ofxOpenCv" "ofxOpenCv" "ofxAssimpModelLoader" "ofxSvg" "ofxSvg" "ofxPoco")
275+
addons=("ofxOpenCv" "ofxOpenCv" "ofxAssimpModelLoader" "ofxSvg" "ofxPoco")
267276
fi
268277

269278
for ((i=0;i<${#addonslibs[@]};++i)); do

scripts/osx/xcode_project.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ code_sign() {
7777
FRAMEWORKS_DIR="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
7878
echo "$FRAMEWORKS_DIR"
7979
if [ -d "$FRAMEWORKS_DIR" ] ; then
80-
FRAMEWORKS=$(find "${FRAMEWORKS_DIR}" -depth -type d -name "*.framework" -or -name "*.dylib" -or -name "*.bundle" | sed -e "s/\(.*framework\)/\1\/Versions\/A\//")
80+
FRAMEWORKS=$(find "${FRAMEWORKS_DIR}" -depth -type d -name "*.framework" -or -name "*.xcframework" -or -name "*.dylib" -or -name "*.bundle" | sed -e "s/\(.*framework\)/\1\/Versions\/A\//")
8181
RESULT=$?
8282
if [[ $RESULT != 0 ]] ; then
8383
exit 1

0 commit comments

Comments
 (0)