From 15028fd299e639a5b006c620dfe0e241b22c4163 Mon Sep 17 00:00:00 2001 From: Salvador Cuñat Date: Sun, 29 Oct 2017 10:06:53 +0100 Subject: smtk2ssrf-build.sh: add building command line mode Add a flag to build with -DCOMMANDLINE=ON --- scripts/smtk2ssrf-build.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/smtk2ssrf-build.sh b/scripts/smtk2ssrf-build.sh index f25b5a6ad..59d8037a9 100755 --- a/scripts/smtk2ssrf-build.sh +++ b/scripts/smtk2ssrf-build.sh @@ -2,7 +2,8 @@ # This script is meant to run from src directory in the same fashion than # subsurface/scripts/build.sh # -# Flags: -t (--tag) A git valid tag, commit, etc in subsurface tree +# Flags: -c (--cli) Build commandline version (no graphics) +# -t (--tag) A git valid tag, commit, etc in subsurface tree # -j (--jobs) Desired build parallelism, integer. # -b (--build) Cmake build type, valid values Debug or Release # Examples: @@ -53,6 +54,8 @@ read -rs _proceed # while [ $# -gt 0 ]; do case $1 in + -c|--cli) CLI="ON" + ;; -t|--tag) SSRF_TAG="$2" shift;; -j|--jobs) JOBS=-j"$2" @@ -164,7 +167,9 @@ cd "$SSRF_PATH"/smtk-import || aborting "Couldnt cd into $SSRF_PATH/smtk-import" mkdir -p build cd build || aborting "Couldn't cd into $SSRF_PATH/smtk-import/build" -cmake -DCMAKE_BUILD_TYPE="$RELEASE" .. || aborting "Cmake incomplete" +cmake -DCMAKE_BUILD_TYPE="$RELEASE" \ + -DCOMMANDLINE=${CLI:-OFF} \ + .. || aborting "Cmake incomplete" make "$JOBS" || aborting "Failed to build smtk2ssrf" -- cgit v1.2.3-70-g09d2