Changeset eed0199


Ignore:
Timestamp:
Dec 28, 2023, 12:30:20 PM (12 months ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
master
Children:
b16e592
Parents:
92ebdac
git-author:
Paul Brossier <piem@piem.org> (12/28/23 11:53:28)
git-committer:
Paul Brossier <piem@piem.org> (12/28/23 12:30:20)
Message:

[scripts] do not build fat frameworks for ios

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/build_apple_frameworks

    r92ebdac reed0199  
    4646}
    4747
    48 function create_framework_fat() {
    49   rm -rf $AUBIO_TMPDIR/framework-$3
    50   mkdir -p $AUBIO_TMPDIR/framework-$3/$1-$2.$3_framework/$1.framework
    51   cp -pr COPYING README.md $AUBIO_TMPDIR/framework-$3/$1-$2.$3_framework
    52   pushd $AUBIO_TMPDIR/framework-$3
    53   cp -pr $AUBIO_TMPDIR/framework-ios/$1-$2.ios_framework/$1.framework/Headers $1-$2.$3_framework/$1.framework
    54   cp -pr $AUBIO_TMPDIR/framework-ios/$1-$2.ios_framework/$1.framework/Modules $1-$2.$3_framework/$1.framework
    55   lipo $AUBIO_TMPDIR/framework-ios/$1-$2.ios_framework/$1.framework/$1 \
    56        $AUBIO_TMPDIR/framework-iosimulator/$1-$2.iosimulator_framework/$1.framework/$1 \
    57        -output $1-$2.$3_framework/$1.framework/$1 -create
    58   popd
    59 }
    60 
    6148function create_framework_zip() {
    6249  # create zip
     
    8572  if [ $PLATFORM == 'darwin' ]
    8673  then
    87     # on darwin, build a .tar.bz2 of /usr and a .zip of aubio.framework
     74    # on darwin, build a .tar.bz2 of /usr
    8875    create_tarballs $PACKAGE $VERSION $PLATFORM
    89     create_framework_zip $PACKAGE $VERSION $PLATFORM
    9076  fi
     77
     78  # build a .zip of aubio.framework
     79  create_framework_zip $PACKAGE $VERSION $PLATFORM
     80
     81  # clean up
    9182  ./waf uninstall $WAF_OPTIONS
    9283
    9384done
    94 
    95 # after both ios and iosimulator have been built
    96 PLATFORM=iosuniversal
    97 create_framework_fat $PACKAGE $VERSION $PLATFORM
    98 create_framework_zip $PACKAGE $VERSION $PLATFORM
    9985
    10086./waf clean
Note: See TracChangeset for help on using the changeset viewer.