mirror of
https://github.com/nasa/fpp.git
synced 2025-12-17 17:34:46 -06:00
25 lines
694 B
Bash
Executable File
25 lines
694 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# ----------------------------------------------------------------------
|
|
# Compile ref C++ files, to check them for validity
|
|
# ----------------------------------------------------------------------
|
|
|
|
fprime_gcc=../../../../../scripts/fprime-gcc
|
|
export FPRIME_GCC_FLAGS="-I../../fprime"
|
|
warning_flags="
|
|
-Wno-gnu-zero-variadic-macro-arguments
|
|
-Wno-return-type
|
|
-Wno-unused-parameter
|
|
"
|
|
|
|
. ../generate_cpp.sh
|
|
|
|
for file in `find . -name '*.template.ref.cpp'`
|
|
do
|
|
echo "compiling $file"
|
|
base=`echo $file | sed 's;\.template.ref.cpp;;'`
|
|
cp $base.template.ref.hpp $base.hpp
|
|
cp $base.template.ref.cpp $base.cpp
|
|
$fprime_gcc -I../../../.. -I../base -I.. -c $base.cpp $warning_flags
|
|
done
|