mirror of
https://github.com/nasa/fpp.git
synced 2025-12-12 15:31:41 -06:00
21 lines
427 B
Bash
Executable File
21 lines
427 B
Bash
Executable File
#!/bin/sh
|
|
|
|
cd `dirname $0`
|
|
|
|
fprime_gcc=../../../../scripts/fprime-gcc
|
|
export FPRIME_GCC_FLAGS="-Iinclude"
|
|
|
|
../fprime/generate_cpp
|
|
|
|
echo "running tests to generate the headers"
|
|
./run
|
|
|
|
for file in `find . -name '*.ref.cpp'`
|
|
do
|
|
base=`basename $file .ref.cpp`
|
|
cp $base.ref.hpp $base.hpp
|
|
cp $base.ref.cpp $base.cpp
|
|
echo "compiling $base.cpp"
|
|
$fprime_gcc -I../../.. -c $base.cpp -Wno-gnu-zero-variadic-macro-arguments
|
|
done
|