mirror of
https://github.com/nasa/fpp.git
synced 2025-12-15 12:58:25 -06:00
25 lines
885 B
Bash
Executable File
25 lines
885 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# ----------------------------------------------------------------------
|
|
# Compile ref C++ files, to check them for validity
|
|
#
|
|
# By default, each file is compiled with three different sets of values of F
|
|
# Prime guards:
|
|
# - Default values as found in fprime/config/FpConfig.h
|
|
# - All guards turned on
|
|
# - All guards turned off (except FW_PORT_SERIALIZATION for components
|
|
# containing serial ports)
|
|
#
|
|
# If this script is run with the --all flag, each file is compiled with all
|
|
# possible combinations of values of F Prime guards with these exceptions:
|
|
# - FW_SERIALIZABLE_TO_STRING and FW_ARRAY_TO_STRING always have the same value
|
|
# - FW_PORT_SERIALIZATION is always on for components containing serial ports
|
|
# ----------------------------------------------------------------------
|
|
|
|
if [[ "$1" = "--all" ]]
|
|
then
|
|
. ../compile_cpp.sh --all
|
|
else
|
|
. ../compile_cpp.sh
|
|
fi
|