You've already forked OpenUxAS-SoI
mirror of
https://github.com/AdaCore/OpenUxAS-SoI.git
synced 2026-02-12 13:04:49 -08:00
32 lines
657 B
Bash
Executable File
32 lines
657 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
SECONDS=0
|
|
|
|
IS_INTERNAL=$1
|
|
USE_INTERNAL="false"
|
|
if [ "$IS_INTERNAL" = "true" ]
|
|
then
|
|
USE_INTERNAL="true"
|
|
fi
|
|
|
|
# 1 - change to the directory: OpenUxAS
|
|
cd /UxASDev/OpenUxAS
|
|
|
|
# 2
|
|
# if "build" exists the just run Ninja
|
|
if [ ! -d "build" ]; then
|
|
echo "##### NEW MESON BUILD DIRECTORY #####"
|
|
meson build -Dafrl_internal=${USE_INTERNAL} --buildtype=release
|
|
else
|
|
echo "##### USING EXISTING MESON BUILD DIRECTORY #####"
|
|
cd build
|
|
meson configure -Dafrl_internal=${USE_INTERNAL}
|
|
cd ..
|
|
fi
|
|
|
|
# 3 - compile the code
|
|
ninja -C build all
|
|
|
|
duration=$SECONDS
|
|
echo "$(($duration / 60)) minutes and $(($duration % 60)) seconds elapsed."
|