diff options
| author | KonAki <konaki@anokonaki.org> | 2026-10-16 01:30:14 +0800 |
|---|---|---|
| committer | KonAki <konaki@anokonaki.org> | 2026-10-16 01:30:14 +0800 |
| commit | 54372d111804916459418e3ff8fb6d9c9e036fb1 (patch) | |
| tree | d319b924fe84c4782adfebdd9826192a921fbad4 /build.sh | |
| parent | 7f76b57eb13bebb81b0e13875cf51114a2b9888c (diff) | |
wire rmfield into build.sh and readme
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 mic sound model 2d fx particles picture rm rmmap rmtile rmdraw script battle party save stage textbox platformer rpg 3d sector world" + echo "modules: font toml tile pack ui debug assets image audio mic sound model 2d fx particles picture rm rmmap rmtile rmdraw rmfield script battle party save stage textbox platformer rpg 3d sector world" echo "platforms: native linux bsd windows" echo "targets: all run clean tools pack examples" exit 1 @@ -97,7 +97,7 @@ esac for m in $modules; do DEFS="$DEFS -DKON_MODULE_$(echo "$m" | tr 'a-z' 'A-Z')" case $m in - font|toml|tile|pack|ui|debug|2d|fx|particles|picture|sound|rm|rmmap|rmtile|rmdraw|script|battle|party|save|stage|textbox|platformer|rpg|3d|sector|world) addobj "kon$m" ;; + font|toml|tile|pack|ui|debug|2d|fx|particles|picture|sound|rm|rmmap|rmtile|rmdraw|rmfield|script|battle|party|save|stage|textbox|platformer|rpg|3d|sector|world) addobj "kon$m" ;; assets) addobj konassets ;; model) addobj konmodel; addobj konassets ;; image) addobj stb_image ;; @@ -138,6 +138,7 @@ case " $modules " in *" 3d "*) need tile ;; esac case " $modules " in *" model "*) need assets ;; esac case " $modules " in *" party "*) need battle; need save ;; esac case " $modules " in *" rmdraw "*) need rmmap; need rmtile ;; esac +case " $modules " in *" rmfield "*) need rmmap ;; esac case " $DEFS " in *" -DKON_MODULE_ASSETS "*) need pack ;; esac # the 3D renderer is only compiled when a module that draws in 3D is picked |
