Tweaked build tools.

This commit is contained in:
Pedro Pinto committed 2020-06-20 17:13:29 -04:00
1 parent 9ec1c8fdae
commit 44aba08978
9 files changed
+55 -14

No files matched your search

+14 -4
View File
@@ -1,10 +1,20 @@
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DIR="$(dirname "$(readlink -f "$0")")"
SRC_ROOT=$DIR/../..
BUILD_ROOT=`readlink -f $SRC_ROOT/build`
BUILD_TYPE="${1:-clang_debug}"
case "$1" in
debug)
BUILD_TYPE=ninja_debug
;;
release)
BUILD_TYPE=ninja_release
;;
*)
BUILD_TYPE=clang_debug
;;
esac
BUILD_CMD="ninja -C $BUILD_ROOT/$BUILD_TYPE"
touch $SRC_ROOT/CMakeLists.txt
$DIR/execute_in_docker $BUILD_CMD
+1 -2
View File
@@ -1,6 +1,5 @@
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DIR="$(dirname "$(readlink -f "$0")")"
SRC_ROOT=$DIR/../..
BUILD_ROOT=`readlink -f $SRC_ROOT/build`
cgdb -- -ex start --cd=$BUILD_ROOT/ninja_debug/server --args ./sparkd run
+1 -3
View File
@@ -1,8 +1,6 @@
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DIR="$(dirname "$(readlink -f "$0")")"
SRC_ROOT=$DIR/../..
CMD=$@
read -d '' docker_cmd << EOF
+1 -1
View File
@@ -1,5 +1,5 @@
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DIR="$(dirname "$(readlink -f "$0")")"
$DIR/execute_in_docker /usr/local/bin/rdm $@
+27
View File
@@ -0,0 +1,27 @@
#!/bin/bash
DIR="$(dirname "$(readlink -f "$0")")"
SRC_ROOT=$DIR/../..
BUILD_ROOT=`readlink -f $SRC_ROOT/build`
case "$1" in
debug)
BUILD_TYPE=ninja_debug
BUILD_ARG=debug
SPARK_ARGS="${@:2}"
;;
release)
BUILD_TYPE=ninja_release
BUILD_ARG=release
SPARK_ARGS="${@:2}"
;;
*)
BUILD_TYPE=ninja_debug
BUILD_ARG=debug
SPARK_ARGS="${@:1}"
echo
;;
esac
RUN_CMD="$DIR/run_spark_helper $BUILD_TYPE $SPARK_ARGS"
$DIR/build_spark $BUILD_ARG && $DIR/execute_in_docker $RUN_CMD
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
DIR="$(dirname "$(readlink -f "$0")")"
SRC_ROOT=$DIR/../..
BUILD_TYPE=$1
BUILD_ROOT=$SRC_ROOT/build/$BUILD_TYPE
ARGS="${@:2}"
(cd $BUILD_ROOT/server && ./sparkd $ARGS)
+1 -1
View File
@@ -1,5 +1,5 @@
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DIR="$(dirname "$(readlink -f "$0")")"
CMD="$DIR/../setup_builds.sh"
$DIR/execute_in_docker "/bin/bash -c $CMD"
+1 -2
View File
@@ -1,6 +1,5 @@
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DIR="$(dirname "$(readlink -f "$0")")"
SRC_ROOT=$DIR/../
$DIR/execute_in_docker /bin/bash
+1 -1
View File
@@ -5,7 +5,7 @@ ROOT=$DIR/..
cd $ROOT
# stdlib includes
find /usr/include/c++/7 -maxdepth 1 | sed s/\\/usr\\/include\\/c\+\+\\/7\\///
find /usr/include/c++/7 -type f -maxdepth 1 | sed s/\\/usr\\/include\\/c\+\+\\/7\\///
# external includes
find externals/linux/include/ -name "*.h" -or -name "*.hpp" | sed s/externals\\/linux\\/include\\///