21 lines
437 B
Bash
Executable File
21 lines
437 B
Bash
Executable File
#!/bin/bash
|
|
DIR="$(dirname "$(readlink -f "$0")")"
|
|
SRC_ROOT=$DIR/../..
|
|
|
|
BUILD_ROOT=`readlink -f $SRC_ROOT/build`
|
|
|
|
case "$1" in
|
|
clang)
|
|
BUILD_TYPE=clang_debug
|
|
;;
|
|
release)
|
|
BUILD_TYPE=ninja_release
|
|
;;
|
|
*)
|
|
BUILD_TYPE=ninja_debug
|
|
;;
|
|
esac
|
|
BUILD_CMD="ninja -C $BUILD_ROOT/$BUILD_TYPE"
|
|
touch $SRC_ROOT/CMakeLists.txt
|
|
$DIR/execute_in_docker $BUILD_CMD
|