mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-29 10:54:06 +08:00
Added script to generate SciTols Understand project file using buildspy
This commit is contained in:
parent
9a04bc6dbc
commit
d1d42e83a7
26
tools/scitools_understand_buildspy.sh
Executable file
26
tools/scitools_understand_buildspy.sh
Executable file
@ -0,0 +1,26 @@
|
||||
#!/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
|
||||
Loading…
x
Reference in New Issue
Block a user