commit e67dd1916400e4893ae243efcffca55940afa27d
parent b213e13ee39d0636a542bb1fb4780a8834c42976
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Sun, 21 May 2023 15:39:49 +0200
Add the BUILD_TYPE variable to the sgs build
One can set this variable when invoking make to force the construction
of source-based projects to "DEBUG" rather than "RELEASE", which is the
default.
Diffstat:
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/sgs.sh b/sgs.sh
@@ -19,34 +19,36 @@
# Build for the dependencies of the Star Geometric Sensitivity project
+[ -z "${BUILD_TYPE}" ] && BUILD_TYPE="RELEASE"
+
################################################################################
# Declare git repositories for the build
################################################################################
name="rsys"
url="$\(REPO_VAPLV\)/rsys.git"
tag="origin/feature_posix_make"
-opt="BUILD_TYPE=RELEASE"
+opt="BUILD_TYPE=${BUILD_TYPE}"
git_repo
name="star-3d"
url="$\(REPO\)/star-3d.git"
tag="origin/feature_posix_make"
dep="rsys embree4"
-opt="BUILD_TYPE=RELEASE"
+opt="BUILD_TYPE=${BUILD_TYPE}"
git_repo
name="star-sp"
url="$\(REPO\)/star-sp.git"
tag="origin/feature_posix_make"
dep="random123 rsys"
-opt="BUILD_TYPE=RELEASE"
+opt="BUILD_TYPE=${BUILD_TYPE}"
git_repo
name="star-mc"
url="$\(REPO\)/star-mc.git"
tag="origin/feature_posix_make"
dep="star-sp rsys"
-opt="BUILD_TYPE=RELEASE"
+opt="BUILD_TYPE=${BUILD_TYPE}"
git_repo
################################################################################