| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | |
| 3 | set -euo pipefail |
| 4 | |
| 5 | echoscip-shell system . . echo. "installing cpp SDK..." |
| 6 | |
| 7 | sudoscip-shell system . . sudo. apt-get update -y |
| 8 | sudoscip-shell system . . sudo. apt-get install -y clang |
| 9 | sudoscip-shell system . . sudo. apt-get install -y cmake |
| 10 | sudoscip-shell system . . sudo. apt-get install -y pkg-config |
| 11 | sudoscip-shell system . . sudo. apt-get install -y uuid-dev |
| 12 | |
| 13 | echoscip-shell system . . echo. "done installing cpp SDK" |
| 14 | |
| 15 | clang++scip-shell system . . clang++. --version |
| 16 | cmakescip-shell system . . cmake. --version |
| 17 | |
| 18 | echoscip-shell system . . echo. "building cpp runtime..." |
| 19 | |
| 20 | pushd "runtime/Cpp/" |
| 21 | echoscip-shell system . . echo. $PWD |
| 22 | rc=0 |
| 23 | if [scip-shell system . . `[`. $rc == 0 ]; then |
| 24 | cmakescip-shell system . . cmake. . -DCMAKE_BUILD_TYPE=release |
| 25 | rc=$? |
| 26 | fi |
| 27 | if [scip-shell system . . `[`. $rc == 0 ]; then |
| 28 | makescip-shell system . . make. -j 8 |
| 29 | rc=$? |
| 30 | fi |
| 31 | popd |
| 32 | |
| 33 | |
| 34 | echoscip-shell system . . echo. "done building cpp runtime" |
| 35 |