git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@623 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-11-07 18:00:59 +00:00
parent d4255fcade
commit 7fd78f175a
2 changed files with 11 additions and 2 deletions

9
configure vendored
View File

@@ -2,6 +2,8 @@
# $Id$
FLAGS=""
target=""
feat_cross=false
feat_stb_image=true
feat_stb_truetype=false
@@ -36,6 +38,9 @@ for i in $@; do
--cross)
feat_cross=true
;;
--target=)
target="`echo $i | cut -d= -f2`"
;;
--enable-*|--disable-*)
if [ "`echo $i | cut -d- -f3`" = "enable" ]; then
eval feat_`echo $i | cut -d- -f4- | tr - _`=true
@@ -60,6 +65,10 @@ if $feat_cross; then
FLAGS="$FLAGS -Dcross_build"
fi
if [ ! "x$target" = "x" ]; then
FLAGS="$FLAGS -Dtarget=$target"
fi
if [ ! "x$CC" = "x" ]; then
FLAGS="$FLAGS -Dcc=$CC"
fi