musique/scripts/build_replxx.sh

21 lines
376 B
Bash
Raw Normal View History

#!/bin/sh
set -e
prefix="lib/replxx/src/"
mkdir -p "bin/${os}/replxx"
objects=""
2023-03-04 16:39:16 +01:00
find lib/replxx/src/ -name '*.cxx' -o -name '*.cpp' | while read -r src
do
dst="${src##"$prefix"}"
dst="bin/${os}/replxx/${dst%%.*}.o"
2023-03-04 16:39:16 +01:00
if [ ! -f "$dst" ]; then
"${CXX}" -Ilib/replxx/src/ -Ilib/replxx/include/ -c -o "$dst" "$src" -std=c++20 -O3 -DREPLXX_STATIC
fi
echo "${dst}"
2023-03-04 16:39:16 +01:00
done