2025-01-19 07:38:58 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
2025-01-19 08:34:21 -05:00
|
|
|
# Check for the --noTest flag
|
|
|
|
|
if [[ "$1" == "--noTest" ]]; then
|
2025-02-17 12:58:51 -05:00
|
|
|
meson setup build -Dbuild_tests=false --buildtype=release
|
2025-01-19 08:34:21 -05:00
|
|
|
else
|
2025-02-17 12:58:51 -05:00
|
|
|
meson setup build -Dbuild_tests=true --buildtype=debug
|
2025-01-19 08:34:21 -05:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# Compile the project
|
|
|
|
|
meson compile -C build
|
|
|
|
|
|
|
|
|
|
# If tests are built, run them
|
|
|
|
|
if [[ "$1" != "--noTest" ]]; then
|
|
|
|
|
meson test -C build
|
|
|
|
|
fi
|
2025-01-19 12:23:34 -05:00
|
|
|
|
|
|
|
|
# Check if --docs are to be built
|
|
|
|
|
if [[ "$*" == *"--docs"* ]]; then
|
|
|
|
|
echo "Generating documentation..."
|
|
|
|
|
doxygen
|
|
|
|
|
cd docs/latex && make
|
|
|
|
|
fi
|