-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·68 lines (46 loc) · 1.88 KB
/
build.sh
File metadata and controls
executable file
·68 lines (46 loc) · 1.88 KB
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
66
67
68
#!/bin/bash
echo " _________ __ .__ .__ __________ .__.__ .___"
echo " / _____/ ____ _____/ |_|__| ____ ____ | | \______ \__ __|__| | __| _/"
echo " \_____ \_/ __ \ / \ __\ |/ \_/ __ \| | | | _/ | \ | | / __ | "
echo " / \ ___/| | \ | | | | \ ___/| |__ | | \ | / | |__/ /_/ | "
echo "/_______ /\___ >___| /__| |__|___| /\___ >____/ |______ /____/|__|____/\____ | "
echo " \/ \/ \/ \/ \/ \/ \/ "
BUILD_DIR=build
TOOLCHAIN_FILE=mingw-toolchain.cmake
rm -rf $BUILD_DIR
# ----------------------
# ---- Linux Builds ----
# ----------------------
mkdir -p $BUILD_DIR/linux_release
cd $BUILD_DIR/linux_release
cmake -DCMAKE_BUILD_TYPE=Release ../..
cmake --build . --config Release
cd ../..
mkdir -p $BUILD_DIR/linux_release_avx
cd $BUILD_DIR/linux_release_avx
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_AVX=ON ../..
cmake --build . --config Release
cd ../..
mkdir -p $BUILD_DIR/linux_release_sse
cd $BUILD_DIR/linux_release_sse
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_SSE=ON ../..
cmake --build . --config Release
cd ../..
# ----------------------
# --- Windows Builds ---
# ----------------------
mkdir -p $BUILD_DIR/windows_release
cd $BUILD_DIR/windows_release
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=../../$TOOLCHAIN_FILE ../..
cmake --build . --config Release
cd ../..
mkdir -p $BUILD_DIR/windows_release_avx
cd $BUILD_DIR/windows_release_avx
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_AVX=ON -DCMAKE_TOOLCHAIN_FILE=../../$TOOLCHAIN_FILE ../..
cmake --build . --config Release
cd ../..
mkdir -p $BUILD_DIR/windows_release_sse
cd $BUILD_DIR/windows_release_sse
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_SSE=ON -DCMAKE_TOOLCHAIN_FILE=../../$TOOLCHAIN_FILE ../..
cmake --build . --config Release
echo "Done"