Files
MeowOS-For-R3P2/patch_v2/ncm_app/build_dr_mp3.sh
T

13 lines
511 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
# dr_mp3 — 单文件 header(dr_mp3.h)。许可 MIT/public domain (双许可)。较重但兼容性/质量更好。
. ./libs_common.sh
D="$OUT/dr_mp3/mipsel"; mkdir -p "$D"
cat > "$D/dr_mp3_impl.c" <<'C'
#define DR_MP3_IMPLEMENTATION
#include "dr_mp3.h"
C
$CC_MIPS -Os -I"$VENDOR/dr_mp3" -fno-stack-protector -ffunction-sections -fdata-sections -c "$D/dr_mp3_impl.c" -o "$D/dr_mp3.o" || exit 1
$AR_MIPS rcs "$D/libdr_mp3.a" "$D/dr_mp3.o"
echo "dr_mp3 (mipsel):"
measure_archive "$D/libdr_mp3.a"