[scripts] do not build fat frameworks for ios
authorPaul Brossier <piem@piem.org>
Thu, 28 Dec 2023 10:53:28 +0000 (11:53 +0100)
committerPaul Brossier <piem@piem.org>
Thu, 28 Dec 2023 11:30:20 +0000 (12:30 +0100)
scripts/build_apple_frameworks

index d884c3b..da9418a 100755 (executable)
@@ -45,19 +45,6 @@ function create_framework() {
   popd
 }
 
-function create_framework_fat() {
-  rm -rf $AUBIO_TMPDIR/framework-$3
-  mkdir -p $AUBIO_TMPDIR/framework-$3/$1-$2.$3_framework/$1.framework
-  cp -pr COPYING README.md $AUBIO_TMPDIR/framework-$3/$1-$2.$3_framework
-  pushd $AUBIO_TMPDIR/framework-$3
-  cp -pr $AUBIO_TMPDIR/framework-ios/$1-$2.ios_framework/$1.framework/Headers $1-$2.$3_framework/$1.framework
-  cp -pr $AUBIO_TMPDIR/framework-ios/$1-$2.ios_framework/$1.framework/Modules $1-$2.$3_framework/$1.framework
-  lipo $AUBIO_TMPDIR/framework-ios/$1-$2.ios_framework/$1.framework/$1 \
-       $AUBIO_TMPDIR/framework-iosimulator/$1-$2.iosimulator_framework/$1.framework/$1 \
-       -output $1-$2.$3_framework/$1.framework/$1 -create
-  popd
-}
-
 function create_framework_zip() {
   # create zip
   pushd $AUBIO_TMPDIR/framework-$3
@@ -84,19 +71,18 @@ do
   create_framework $PACKAGE $VERSION $PLATFORM
   if [ $PLATFORM == 'darwin' ]
   then
-    # on darwin, build a .tar.bz2 of /usr and a .zip of aubio.framework
+    # on darwin, build a .tar.bz2 of /usr
     create_tarballs $PACKAGE $VERSION $PLATFORM
-    create_framework_zip $PACKAGE $VERSION $PLATFORM
   fi
+
+  # build a .zip of aubio.framework
+  create_framework_zip $PACKAGE $VERSION $PLATFORM
+
+  # clean up
   ./waf uninstall $WAF_OPTIONS
 
 done
 
-# after both ios and iosimulator have been built
-PLATFORM=iosuniversal
-create_framework_fat $PACKAGE $VERSION $PLATFORM
-create_framework_zip $PACKAGE $VERSION $PLATFORM
-
 ./waf clean
 ./waf distclean