2023-02-22 02:38:46 +01:00
|
|
|
#!/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
|
2023-02-22 02:38:46 +01:00
|
|
|
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
|
2023-02-22 02:38:46 +01:00
|
|
|
echo "${dst}"
|
2023-03-04 16:39:16 +01:00
|
|
|
done
|
2023-02-22 02:38:46 +01:00
|
|
|
|