Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: UAVCAN UAVCAN_Subscriber
tools/scitools_understand_buildspy.sh
- Committer:
- RuslanUrya
- Date:
- 2018-04-14
- Revision:
- 0:dfe6edabb8ec
File content as of revision 0:dfe6edabb8ec:
#!/bin/sh # # This script generates project file for SciTools Understand via buildspy. # buildspy_dir="$1" uavcan_dir="$(readlink -f $(dirname $0)/..)" function die() { echo $1; exit 1; } [ -z "$buildspy_dir" ] && die "Path to buildspy directory expected, e.g. ~/opt/scitools/bin/linux64/buildspy/" compiler="$buildspy_dir/g++wrapper" buildspy="$buildspy_dir/buildspy" echo "Pathes:" echo "compiler: $compiler" echo "buildspy: $buildspy" echo "uavcan: $uavcan_dir" read -p "Looks good? (y/N) " confirm [[ $confirm == "y" ]] || die "Bye" cmake "$uavcan_dir" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER="$compiler" || exit 1 $buildspy -db uavcan.udb -cmd make