forked from DBraun/DawDreamer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_linux.sh
49 lines (43 loc) · 1.5 KB
/
build_linux.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
echo "PYTHONLIBPATH: $PYTHONLIBPATH"
echo "PYTHONINCLUDEPATH: $PYTHONINCLUDEPATH"
if [[ $(uname -m) == 'x86_64' ]]; then
echo "building for x86_64"
cp -v thirdparty/libfaust/ubuntu-x86_64/lib/libfaust.so.2 dawdreamer/
ln dawdreamer/libfaust.so.2 dawdreamer/libfaust.so
ln thirdparty/libfaust/ubuntu-x86_64/lib/libfaust.so.2 thirdparty/libfaust/ubuntu-x86_64/lib/libfaust.so
else
echo "building for $(uname -m)"
cp -v thirdparty/libfaust/ubuntu-aarch64/lib/libfaust.so.2 dawdreamer/
ln dawdreamer/libfaust.so.2 dawdreamer/libfaust.so
ln thirdparty/libfaust/ubuntu-aarch64/lib/libfaust.so.2 thirdparty/libfaust/ubuntu-aarch64/lib/libfaust.so
fi
yum install -y libsndfile \
libX11-devel \
libXrandr-devel \
libXinerama-devel \
libXrender-devel \
libXcomposite-devel \
libXinerama-devel \
libXcursor-devel \
freetype-devel \
libsndfile-devel \
libvorbis-devel \
opus-devel \
flac-devel \
flac-libs \
alsa-lib-devel \
alsa-utils
echo "Build libsamplerate"
cd thirdparty/libsamplerate
mkdir build_release
cmake -DCMAKE_BUILD_TYPE=Release -Bbuild_release -DCMAKE_POSITION_INDEPENDENT_CODE=ON
cd build_release
make CONFIG=Release
cd ../../..
cd Builds/LinuxMakefile
ldconfig
# faust/architecture/faust/midi/RtMidi.cpp has #include <alsa/asoundlib.h>
make VERBOSE=1 CONFIG=Release LIBS="-lstdc++fs" LDFLAGS="-L/__w/DawDreamer/DawDreamer/alsa-lib/src -L$PYTHONLIBPATH" CXXFLAGS="-I../../alsa-lib/include -I$PYTHONINCLUDEPATH"
mv build/libdawdreamer.so ../../dawdreamer/dawdreamer.so
cd ../..
echo "build_linux.sh is done!"