Files
rippled/scripts/compile.sh
2013-09-28 15:30:01 -07:00

30 lines
546 B
Bash
Executable File

#!/bin/bash
# This script makes sure that every directly includable header
# file compiles stand-alone for all supported platforms.
#
for f in $1/*.h $1/*/*.h
do
{
echo "Compilng '$f'"
g++ -xc++ - -c -o /dev/null <<EOF
#define BEAST_BEASTCONFIG_H_INCLUDED
#include "$f"
EOF
g++ -xc++ -std=c++11 - -c -o /dev/null <<EOF
#define BEAST_BEASTCONFIG_H_INCLUDED
#include "$f"
EOF
}
done
for f in $1/*/*.cpp
do
{
echo "Compilng '$f'"
g++ -xc++ -I$1/../config/ "$f" -c -o /dev/null
g++ -xc++ -std=c++11 -I$1/../config/ "$f" -c -o /dev/null
}
done