updated cmake scripts

This commit is contained in:
Robin Müller 2021-07-13 15:50:36 +02:00
parent 9371451ced
commit 2432e64fb2
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814
4 changed files with 30 additions and 11 deletions

View File

@ -19,9 +19,15 @@ os_fsfw="host"
builddir="build-Debug"
if [ "${OS}" = "Windows_NT" ]; then
build_generator="MinGW Makefiles"
python="py"
# Could be other OS but this works for now.
else
build_generator="Unix Makefiles"
python="python3"
fi
python3 cmake_build_config.py -o "${os_fsfw}" -g "${build_generator}" -b "debug" -l "${builddir}"
echo "Running command (without the leading +):"
set -x # Print command
"${python}" cmake_build_config.py -o "${os_fsfw}" -g "${build_generator}" -b "release" -l "${builddir}"
# Use this if commands are added which should not be printed
# set +x

View File

@ -16,16 +16,18 @@ fi
build_generator=""
os_fsfw="host"
builddir="build-Release"
builddir="build-Debug"
if [ "${OS}" = "Windows_NT" ]; then
build_generator="MinGW Makefiles"
python="py"
# Could be other OS but this works for now.
else
build_generator="Unix Makefiles"
python="python3"
fi
echo "Running command (without the leading +):"
set -x # Print command
python3 cmake_build_config.py -o "${os_fsfw}" -g "${build_generator}" -b "reldeb" -l "${builddir}"
"${python}" cmake_build_config.py -o "${os_fsfw}" -g "${build_generator}" -b "debug" -l "${builddir}"
# Use this if commands are added which should not be printed
# set +x

View File

@ -16,12 +16,17 @@ fi
build_generator=""
os_fsfw="host"
builddir="build-Release"
builddir="build-Debug"
build_generator="Ninja"
if [ "${OS}" = "Windows_NT" ]; then
build_generator="MinGW Makefiles"
python="py"
# Could be other OS but this works for now.
else
build_generator="Unix Makefiles"
python="python3"
fi
python3 cmake_build_config.py -o "${os_fsfw}" -g "${build_generator}" -b "release" -l "${builddir}"
echo "Running command (without the leading +):"
set -x # Print command
"${python}" cmake_build_config.py -o "${os_fsfw}" -g "${build_generator}" -b "debug" -l "${builddir}"
# Use this if commands are added which should not be printed
# set +x

View File

@ -14,13 +14,19 @@ if [ "${counter}" -ge 5 ];then
exit 1
fi
build_generator="Unix Makefiles"
os_fsfw="linux"
build_generator=""
os_fsfw="host"
builddir="build-Release"
build_generator="Ninja"
if [ "${OS}" = "Windows_NT" ]; then
python="py"
# Could be other OS but this works for now.
else
python="python3"
fi
echo "Running command (without the leading +):"
set -x # Print command
python3 cmake_build_config.py -o "${os_fsfw}" -g "${build_generator}" -b "reldeb" \
-t "host/none" -l "${builddir}"
"${python}" cmake_build_config.py -o "${os_fsfw}" -g "${build_generator}" -b "debug" -l "${builddir}"
# Use this if commands are added which should not be printed
# set +x