windows
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@623 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
d4255fcade
commit
7fd78f175a
2 changed files with 11 additions and 2 deletions
|
|
@ -14,9 +14,9 @@ proc run {project_name} {
|
||||||
if { "$target" == "Linux" } {
|
if { "$target" == "Linux" } {
|
||||||
RunCommand "./configure --enable-opengl --enable-vulkan --without-vulkan-string-helper"
|
RunCommand "./configure --enable-opengl --enable-vulkan --without-vulkan-string-helper"
|
||||||
} elseif { "$target" == "Win32" } {
|
} elseif { "$target" == "Win32" } {
|
||||||
RunCommand "./configure --enable-opengl --enable-stb-truetype --disable-freetype2 --cross CC=i686-w64-mingw32-gcc"
|
RunCommand "./configure --enable-opengl --enable-stb-truetype --disable-freetype2 --cross --target=Windows CC=i686-w64-mingw32-gcc"
|
||||||
} elseif { "$target" == "Win64" } {
|
} elseif { "$target" == "Win64" } {
|
||||||
RunCommand "./configure --enable-opengl --enable-stb-truetype --disable-freetype2 --cross CC=x86_64-w64-mingw32-gcc"
|
RunCommand "./configure --enable-opengl --enable-stb-truetype --disable-freetype2 --cross --target=Windows CC=x86_64-w64-mingw32-gcc"
|
||||||
}
|
}
|
||||||
RunCommand "make clean"
|
RunCommand "make clean"
|
||||||
RunCommand "make -j4"
|
RunCommand "make -j4"
|
||||||
|
|
|
||||||
9
configure
vendored
9
configure
vendored
|
|
@ -2,6 +2,8 @@
|
||||||
# $Id$
|
# $Id$
|
||||||
FLAGS=""
|
FLAGS=""
|
||||||
|
|
||||||
|
target=""
|
||||||
|
|
||||||
feat_cross=false
|
feat_cross=false
|
||||||
feat_stb_image=true
|
feat_stb_image=true
|
||||||
feat_stb_truetype=false
|
feat_stb_truetype=false
|
||||||
|
|
@ -36,6 +38,9 @@ for i in $@; do
|
||||||
--cross)
|
--cross)
|
||||||
feat_cross=true
|
feat_cross=true
|
||||||
;;
|
;;
|
||||||
|
--target=)
|
||||||
|
target="`echo $i | cut -d= -f2`"
|
||||||
|
;;
|
||||||
--enable-*|--disable-*)
|
--enable-*|--disable-*)
|
||||||
if [ "`echo $i | cut -d- -f3`" = "enable" ]; then
|
if [ "`echo $i | cut -d- -f3`" = "enable" ]; then
|
||||||
eval feat_`echo $i | cut -d- -f4- | tr - _`=true
|
eval feat_`echo $i | cut -d- -f4- | tr - _`=true
|
||||||
|
|
@ -60,6 +65,10 @@ if $feat_cross; then
|
||||||
FLAGS="$FLAGS -Dcross_build"
|
FLAGS="$FLAGS -Dcross_build"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ! "x$target" = "x" ]; then
|
||||||
|
FLAGS="$FLAGS -Dtarget=$target"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ! "x$CC" = "x" ]; then
|
if [ ! "x$CC" = "x" ]; then
|
||||||
FLAGS="$FLAGS -Dcc=$CC"
|
FLAGS="$FLAGS -Dcc=$CC"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue