-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sh
46 lines (40 loc) · 1.04 KB
/
build.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
#!/bin/bash
# function runCmake {
# if [[ -n "${MSYSTEM}" ]]; then
# cmake -G"MSYS Makefiles" .. -DCMAKE_CXX_STANDARD=17 -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_MAKE_PROGRAM=make -DCMAKE_LIBRARY_PATH=/mingw64/x86_64-w64-mingw32/lib/
# else
# cmake .. -DCMAKE_CXX_STANDARD=17 -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_MAKE_PROGRAM=make -DCMAKE_LIBRARY_PATH=/mingw64/x86_64-w64-mingw32/lib/
# fi
# ret=$?
# if [[ $ret -ne 0 ]]; then
# echo -e "\e[31;5mBuilding" $1 "failed in cmake step!!! Exiting\e[0m"
# exit 1
# fi
# }
# function runMake {
# make -j8
# ret=$?
# if [[ $ret -ne 0 ]]; then
# echo -e "\e[31;5mBuilding" $1 "failed in make step!!! Exiting\e[0m"
# exit 1
# fi
# }
# function doBuild {
# cd $1
# echo -e "\e[32mBuilding " $1 "...\e[0m"
# pwd
# mkdir -p build
# cd build
# runCmake $1
# runMake $1
# cd ..
# cd ..
# }
# doBuild SimpleJSON
# doBuild automata
# doBuild attender
# doBuild sol2
# doBuild tiny-process-library
# doBuild lldb-mi
# doBuild debugger-interface
#doBuild filewatch