Skip to content

Commit

Permalink
prepare donwloads libopus-1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianAtNacamar committed Mar 9, 2021
1 parent dee7bee commit dafb4f2
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ DerivedData
*.hmap
*.xccheckout

# nacamar's prepare.sh and build.sh steps reates xcframework
# nacamar's prepare.sh and build.sh steps create xcframework
*.log
opus
opus-?.?.?
prepare
opus-swift/libs/libopus_*.a
opus-swift/include/*
*.xcframework
*.zip
*.gz
4 changes: 2 additions & 2 deletions opus-swiftUITests/opus_swiftPlatformTests.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// opus_swiftUITests.swift
// opus-swiftUITests
// opus_swiftPlatformTests.swift
// opus-swift
//
// Copyright (c) 2021 nacamar GmbH - Ybrid®, a Hybrid Dynamic Live Audio Technology
//
Expand Down
18 changes: 15 additions & 3 deletions prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,20 @@

iosSDKVersion="14.4"
osxSDKVersion="11.1"

opusDownload="https://archive.mozilla.org/pub/opus/opus-1.3.1.tar.gz"
here=$(pwd)
opuspath=./opus

rm -f opus-*.gz
wget $opusDownload

libopusDir=`basename $opusDownload | sed "s/\.tar.gz$//"`
rm -rf $libopusDir
tar -xvzf `basename $opusDownload`
echo "opus sources ready in $libopusDir"
echo "\n==========================="


opuspath="$here/$libopusDir"
opusArtifact=.libs/libopus.a
opusHeaders="$opuspath/include"

Expand Down Expand Up @@ -143,5 +154,6 @@ for f in $opusHeaders/*.h; do
file=`basename $f`
cp -v $f ./opus-swift/include
done
echo "opus-swift.xcodeproj is ready, check $logfile"
echo "opus-swift.xcodeproj is ready"
echo "done."

0 comments on commit dafb4f2

Please sign in to comment.