Skip to content

Commit

Permalink
Adjust osx build
Browse files Browse the repository at this point in the history
  • Loading branch information
raub committed Nov 17, 2023
1 parent d79c7db commit d316c18
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions src/osx.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
echo 'LABSOUND Build Started'

(

cd src
rm -rf LabSound-1.2.0
unzip -qq LabSound-1.2.0.zip -d .

unzip -qq alsa.zip -d LabSound-1.2.0/include

unzip -qq libsamplerate-0.2.2.zip -d LabSound-1.2.0/third_party/libsamplerate-0.2.2
mv LabSound-1.2.0/third_party/libsamplerate-0.2.2/libsamplerate-0.2.2/* LabSound-1.2.0/third_party/libsamplerate

unzip -qq libnyquist-master.zip -d LabSound-1.2.0/third_party/libnyquist
mv LabSound-1.2.0/third_party/libnyquist/libnyquist-master/* LabSound-1.2.0/third_party/libnyquist

rm -rf build
mkdir -p build

(
Expand All @@ -19,24 +23,18 @@ echo 'LABSOUND Build Started'

cmake -G "Xcode" -DBUILD_EXAMPLE=FALSE ..

cmake --build . --target libopus --config Release
cmake --build . --target libwavpack --config Release
cmake --build . --target samplerate --config Release
cmake --build . --target libnyquist --config Release
cmake --build . --target LabSound --config Release
)

ls LabSound-1.2.0/build/bin/Release

cp LabSound-1.2.0/build/bin/Release/liblibnyquist.a build
cp LabSound-1.2.0/build/bin/Release/liblibopus.a build
cp LabSound-1.2.0/build/bin/Release/liblibwavpack.a build
cp LabSound-1.2.0/build/bin/Release/LabSound.framework/Versions/A/LabSound build
mv LabSound-1.2.0/build/dist/LabSound build/LabSound.a


cp LabSound-1.2.0/build/bin/* build

cp LabSound-1.2.0/build/bin/LabSound.framework/Versions/A/LabSound build/LabSound
cp LabSound-1.2.0/build/third_party/libnyquist/lib/liblibnyquist.a build/liblibnyquist.a
cp LabSound-1.2.0/build/third_party/libsamplerate/src/libsamplerate.a build/libsamplerate.a

ls LabSound-1.2.0/build/bin
ls LabSound-1.2.0/build/bin/Release
)

echo 'LABSOUND Build Finished'

0 comments on commit d316c18

Please sign in to comment.