commit 2ec3bb6f0c4feb8230a52ebc2d3ca22270576b2e
parent 3c8603e0899b53fd302b9b245e021e80ea72c88e
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Sun, 5 May 2024 10:24:47 +0200
Add the build script of the star-cad library
It is currently based on the feature_posix_make branch, with no version
label. We can therefore assume that it is still under development.
Diffstat:
2 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/lint.mk b/lint.mk
@@ -48,6 +48,7 @@ lint:
shellcheck -o all -x -P src src/star-3dut_0.4.sh
shellcheck -o all -x -P src src/star-aerosol_0.1.sh
shellcheck -o all -x -P src src/star-buffer_0.1.sh
+ shellcheck -o all -x -P src src/star-cad.sh
shellcheck -o all -x -P src src/star-camera_0.2.sh
shellcheck -o all -x -P src src/star-ck_0.1.sh
shellcheck -o all -x -P src src/star-cmap_0.1.sh
diff --git a/src/star-cad.sh b/src/star-cad.sh
@@ -0,0 +1,34 @@
+#!/bin/sh
+
+# Copyright (C) 2023, 2024 |Méso|Star> (contact@meso-star.com)
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+set -e
+
+[ -n "${STAR_CAD_SH}" ] && return
+export STAR_CAD_SH=1
+
+. "build.sh"
+. "gmsh_4.12.2.sh"
+. "rsys_0.14.sh"
+. "star-enclosures-3d_0.7.sh"
+. "star-geometry-3d_0.2.sh"
+
+name="star-cad"
+url="$\(REPO\)/star-cad.git"
+tag="origin/feature_posix_make"
+dep="gmsh rsys star-enclosures-3d star-geometry-3d"
+opt="BUILD_TYPE=$\(BUILD_TYPE\) LIB_TYPE=$\(LIB_TYPE\)"
+git_repo