move to new cspot

This commit is contained in:
philippe44
2023-03-25 16:48:41 -07:00
parent c712b78931
commit 008c36facf
2983 changed files with 465270 additions and 13569 deletions

View File

@@ -0,0 +1,42 @@
#!/bin/bash
list="x86_64-linux-gnu-gcc i686-linux-gnu-gcc arm-linux-gnueabi-gcc aarch64-linux-gnu-gcc sparc64-linux-gnu-gcc mips-linux-gnu-gcc powerpc-linux-gnu-gcc"
declare -A alias=( [i686-linux-gnu-gcc]=x86-linux-gnu-gcc )
declare -a compilers
IFS= read -ra candidates <<< "$list"
# first select platforms/compilers
for cc in ${candidates[@]}
do
# check compiler first
if ! command -v $cc &> /dev/null; then
continue
fi
if [[ $# == 0 ]]; then
compilers+=($cc)
continue
fi
for arg in $@
do
if [[ ${alias[$cc]:-$cc} =~ $arg ]]; then
compilers+=($cc)
fi
done
done
for cc in ${compilers[@]}
do
IFS=- read -r platform host dummy <<< ${alias[$cc]:-$cc}
make clean && make CC=$cc
mkdir -p ../targets/$host/$platform
cp libalac.a $_
done
mkdir -p ../targets/include
cp ALACAudioTypes.h $_
cp ALACEncoder.h $_
cp ALACDecoder.h $_