-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.sh
executable file
·65 lines (58 loc) · 2.24 KB
/
configure.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/bash
git submodule update --init --recursive
rm -f external/al_ext/assets3d/CMakeLists.txt
rm -f external/al_ext/openvr/CMakeLists.txt
rm -f external/al_ext/spatialaudio/CMakeLists.txt
rm -f external/al_ext/statedistribution/CMakeLists.txt
(
if [[ "$OSTYPE" == "msys" ]] || [[ "$OSTYPE" == "cygwin" ]]; then
mkdir -p ./bin
cd ./bin
mkdir -p ./Resources
cp -r ../deployment/externalResources/fonts/ ./Resources
fi
)
# Build nativefiledialog if it doesnt exist../external/libsamplerate/build
(
if [ ! -d "./external/nativefiledialog/build/lib" ]; then
cd external/nativefiledialog/build/
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
cd gmake_linux
make config=release_x64
elif [[ "$OSTYPE" == "darwin"* ]]; then # note: can't get make file to work, relies on xcode bleh
cd gmake_macosx
export MACOSX_DEPLOYMENT_TARGET=10.10
make config=release_x64
#cd xcode4
#xcodebuild -scheme nfd build -project nfd.xcodeproj/ -configuration Release CFLAGS=-mmacosx-version-min=10.10 CXXFLAGS=-mmacosx-version-min=10.10
elif [[ "$OSTYPE" == "msys" ]] || [[ "$OSTYPE" == "cygwin" ]]; then
#DEPENDENT ON VISUAL STUDIO
cd vs2010/
msbuild.exe ./nfd.vcxproj //p:Configuration=Release //p:Platform=x64
fi
fi
)
(
mkdir -p build
cd build
mkdir -p release
cd release
if [[ "$OSTYPE" == "msys" ]] || [[ "$OSTYPE" == "cygwin" ]]; then
cmake "-DCMAKE_TOOLCHAIN_FILE=C:\Users\Rondo\Desktop\vcpkg\scripts\buildsystems\vcpkg.cmake" -DCMAKE_BUILD_TYPE=Release -Wno-deprecated -DBUILD_EXAMPLES=0 -DRTAUDIO_API_JACK=0 -DRTMIDI_API_JACK=0 ../..
else
cmake -DCMAKE_BUILD_TYPE=Release -Wno-deprecated -DBUILD_EXAMPLES=0 -DRTAUDIO_API_JACK=0 -DRTMIDI_API_JACK=0 ../..
fi
)
(
cd build
mkdir -p debug
cd debug
if [[ "$OSTYPE" == "msys" ]] || [[ "$OSTYPE" == "cygwin" ]]; then
cmake "-DCMAKE_TOOLCHAIN_FILE=C:\Users\Rondo\Desktop\vcpkg\scripts\buildsystems\vcpkg.cmake" -DCMAKE_BUILD_TYPE=Debug -Wno-deprecated -DBUILD_EXAMPLES=0 -DRTAUDIO_API_JACK=0 -DRTMIDI_API_JACK=0 ../..
else
cmake -DCMAKE_BUILD_TYPE=Release -Wno-deprecated -DBUILD_EXAMPLES=0 -DRTAUDIO_API_JACK=0 -DRTMIDI_API_JACK=0 ../..
fi
)
if [[ "$OSTYPE" == "msys" ]] || [[ "$OSTYPE" == "cygwin" ]]; then
read
fi