summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorKonAki <konaki@anokonaki.org>2026-10-10 12:58:59 +0800
committerKonAki <konaki@anokonaki.org>2026-10-10 12:58:59 +0800
commit4965c61e5576b516c9611acc2955057f0c6ad417 (patch)
tree954e56842af67f1d696bd35bf5585593a79d6963 /build.sh
parentf6003ea8bce29b930ca03687c1e9088858680415 (diff)
rename voices to audio, add loops, pitch, buses, fades, positional sound and mic module
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/build.sh b/build.sh
index b5cb78e..7f752a6 100755
--- a/build.sh
+++ b/build.sh
@@ -12,7 +12,7 @@ developer=0
usage()
{
echo "usage: build.sh [-d] [-D] [-p platform] [-m module,...] [-o objdir] [target ...]"
- echo "modules: font toml tile pack ui debug assets image audio model"
+ echo "modules: font toml tile pack ui debug assets image audio mic model"
echo "platforms: native linux bsd windows"
echo "targets: all run clean tools pack examples"
exit 1
@@ -57,7 +57,7 @@ windows)
esac
if [ $mode = debug ]; then
- MODEFLAGS="-g -O0 -DKON_DEBUG"
+ MODEFLAGS="-g -O1 -DKON_DEBUG"
developer=1
else
MODEFLAGS="-O2 -DNDEBUG"
@@ -81,9 +81,9 @@ for m in $modules; do
assets) addobj konassets ;;
model) addobj konmodel; addobj konassets ;;
image) addobj stb_image ;;
- audio)
+ audio|mic)
addobj miniaudio
- addobj konaudio
+ addobj "kon$m"
case $platform in
linux) LDLIBS="$LDLIBS -lpthread -ldl" ;;
bsd) LDLIBS="$LDLIBS -lpthread" ;;