BUILD: cleanup cross compilation code
svn-id: r45248
This commit is contained in:
parent
4d43c8a121
commit
4d9d0411ea
1 changed files with 3 additions and 20 deletions
23
configure
vendored
23
configure
vendored
|
@ -1272,7 +1272,7 @@ case $_host_os in
|
||||||
;;
|
;;
|
||||||
cygwin*)
|
cygwin*)
|
||||||
echo ERROR: Cygwin building is not supported by ScummVM anymore. Consider using MinGW.
|
echo ERROR: Cygwin building is not supported by ScummVM anymore. Consider using MinGW.
|
||||||
exit 0
|
exit 1
|
||||||
;;
|
;;
|
||||||
os2-emx*)
|
os2-emx*)
|
||||||
DEFINES="$DEFINES -DUNIX"
|
DEFINES="$DEFINES -DUNIX"
|
||||||
|
@ -1325,21 +1325,19 @@ esac
|
||||||
|
|
||||||
if test -n "$_host"; then
|
if test -n "$_host"; then
|
||||||
# Cross-compiling mode - add your target here if needed
|
# Cross-compiling mode - add your target here if needed
|
||||||
|
echo "Cross-compiling to $_host, forcing endianness, alignment and type sizes"
|
||||||
case "$_host" in
|
case "$_host" in
|
||||||
linupy|arm-riscos)
|
linupy|arm-riscos)
|
||||||
echo "Cross-compiling to $_host, forcing endianness, alignment and type sizes"
|
|
||||||
DEFINES="$DEFINES -DUNIX -DLINUPY"
|
DEFINES="$DEFINES -DUNIX -DLINUPY"
|
||||||
_need_memalign=yes
|
_need_memalign=yes
|
||||||
;;
|
;;
|
||||||
arm-linux|arm*-linux-gnueabi|arm-*-linux|*-angstrom-linux)
|
arm-linux|arm*-linux-gnueabi|arm-*-linux|*-angstrom-linux)
|
||||||
echo "Cross-compiling to $_host, forcing endianness, alignment and type sizes"
|
|
||||||
DEFINES="$DEFINES -DUNIX"
|
DEFINES="$DEFINES -DUNIX"
|
||||||
_need_memalign=yes
|
_need_memalign=yes
|
||||||
add_line_to_config_mk 'USE_ARM_SOUND_ASM = 1'
|
add_line_to_config_mk 'USE_ARM_SOUND_ASM = 1'
|
||||||
add_line_to_config_mk 'USE_ARM_SMUSH_ASM = 1'
|
add_line_to_config_mk 'USE_ARM_SMUSH_ASM = 1'
|
||||||
;;
|
;;
|
||||||
motoezx)
|
motoezx)
|
||||||
echo "Cross-compiling to $_host, forcing endianness, alignment and type sizes"
|
|
||||||
DEFINES="$DEFINES -DUNIX -DMOTOEZX"
|
DEFINES="$DEFINES -DUNIX -DMOTOEZX"
|
||||||
ASFLAGS="$ASFLAGS -mfpu=vfp"
|
ASFLAGS="$ASFLAGS -mfpu=vfp"
|
||||||
_need_memalign=yes
|
_need_memalign=yes
|
||||||
|
@ -1354,7 +1352,6 @@ if test -n "$_host"; then
|
||||||
_port_mk="backends/platform/linuxmoto/linuxmoto.mk"
|
_port_mk="backends/platform/linuxmoto/linuxmoto.mk"
|
||||||
;;
|
;;
|
||||||
motomagx)
|
motomagx)
|
||||||
echo "Cross-compiling to $_host, forcing endianness, alignment and type sizes"
|
|
||||||
DEFINES="$DEFINES -DUNIX -DMOTOMAGX"
|
DEFINES="$DEFINES -DUNIX -DMOTOMAGX"
|
||||||
ASFLAGS="$ASFLAGS -mfpu=vfp"
|
ASFLAGS="$ASFLAGS -mfpu=vfp"
|
||||||
_need_memalign=yes
|
_need_memalign=yes
|
||||||
|
@ -1376,7 +1373,6 @@ if test -n "$_host"; then
|
||||||
_strip=$_host-strip
|
_strip=$_host-strip
|
||||||
;;
|
;;
|
||||||
gp2xwiz)
|
gp2xwiz)
|
||||||
echo "Cross-compiling to $_host, forcing endianness, alignment and type sizes"
|
|
||||||
DEFINES="$DEFINES -DUNIX -DGP2XWIZ -DNDEBUG"
|
DEFINES="$DEFINES -DUNIX -DGP2XWIZ -DNDEBUG"
|
||||||
CXXFLAGS="$CXXFLAGS -mcpu=arm926ej-s -mtune=arm926ej-s"
|
CXXFLAGS="$CXXFLAGS -mcpu=arm926ej-s -mtune=arm926ej-s"
|
||||||
LDFLAGS="$LDFLAGS"
|
LDFLAGS="$LDFLAGS"
|
||||||
|
@ -1391,7 +1387,6 @@ if test -n "$_host"; then
|
||||||
_mt32emu="no"
|
_mt32emu="no"
|
||||||
;;
|
;;
|
||||||
gp2x)
|
gp2x)
|
||||||
echo "Cross-compiling to $_host, forcing endianness, alignment and type sizes"
|
|
||||||
DEFINES="$DEFINES -DUNIX -DGP2X -DNDEBUG"
|
DEFINES="$DEFINES -DUNIX -DGP2X -DNDEBUG"
|
||||||
CXXFLAGS="$CXXFLAGS -march=armv4t"
|
CXXFLAGS="$CXXFLAGS -march=armv4t"
|
||||||
ASFLAGS="$ASFLAGS -mfloat-abi=soft"
|
ASFLAGS="$ASFLAGS -mfloat-abi=soft"
|
||||||
|
@ -1407,7 +1402,6 @@ if test -n "$_host"; then
|
||||||
_mt32emu="no"
|
_mt32emu="no"
|
||||||
;;
|
;;
|
||||||
neuros)
|
neuros)
|
||||||
echo "Cross-compiling to $_host, forcing endianness, alignment and type sizes"
|
|
||||||
DEFINES="$DEFINES -DUNIX -DNEUROS"
|
DEFINES="$DEFINES -DUNIX -DNEUROS"
|
||||||
_need_memalign=yes
|
_need_memalign=yes
|
||||||
_backend='null'
|
_backend='null'
|
||||||
|
@ -1415,14 +1409,12 @@ if test -n "$_host"; then
|
||||||
_mt32emu="no"
|
_mt32emu="no"
|
||||||
;;
|
;;
|
||||||
ppc-amigaos)
|
ppc-amigaos)
|
||||||
echo "Cross-compiling to $_host, forcing endianness, alignment and type sizes"
|
|
||||||
_endian=big
|
_endian=big
|
||||||
_need_memalign=yes
|
_need_memalign=yes
|
||||||
# FIXME: Please document why 'long' has to be used instead of int
|
# FIXME: Please document why 'long' has to be used instead of int
|
||||||
type_4_byte='long'
|
type_4_byte='long'
|
||||||
;;
|
;;
|
||||||
m68k-atari-mint)
|
m68k-atari-mint)
|
||||||
echo "Cross-compiling to $_host, forcing endianness, alignment and type sizes"
|
|
||||||
DEFINES="$DEFINES -DUNIX -DSYSTEM_NOT_SUPPORTING_D_TYPE"
|
DEFINES="$DEFINES -DUNIX -DSYSTEM_NOT_SUPPORTING_D_TYPE"
|
||||||
_endian=big
|
_endian=big
|
||||||
_need_memalign=yes
|
_need_memalign=yes
|
||||||
|
@ -1432,14 +1424,12 @@ if test -n "$_host"; then
|
||||||
_ar="m68k-atari-mint-ar cru"
|
_ar="m68k-atari-mint-ar cru"
|
||||||
;;
|
;;
|
||||||
*mingw32*)
|
*mingw32*)
|
||||||
echo "Cross-compiling to $_host, forcing endianness, alignment and type sizes"
|
|
||||||
_sdlconfig=$_host-sdl-config
|
_sdlconfig=$_host-sdl-config
|
||||||
_windres=$_host-windres
|
_windres=$_host-windres
|
||||||
_ar="$_host-ar cru"
|
_ar="$_host-ar cru"
|
||||||
_ranlib=$_host-ranlib
|
_ranlib=$_host-ranlib
|
||||||
;;
|
;;
|
||||||
iphone)
|
iphone)
|
||||||
echo "Cross-compiling to $_host, forcing endianness, alignment and type sizes"
|
|
||||||
DEFINES="$DEFINES -DIPHONE -DUNIX"
|
DEFINES="$DEFINES -DIPHONE -DUNIX"
|
||||||
_need_memalign=yes
|
_need_memalign=yes
|
||||||
add_line_to_config_mk 'USE_ARM_SOUND_ASM = 1'
|
add_line_to_config_mk 'USE_ARM_SOUND_ASM = 1'
|
||||||
|
@ -1448,7 +1438,6 @@ if test -n "$_host"; then
|
||||||
_build_hq_scalers="no"
|
_build_hq_scalers="no"
|
||||||
;;
|
;;
|
||||||
wince)
|
wince)
|
||||||
echo "Cross-compiling to $_host, forcing endianness, alignment and type sizes"
|
|
||||||
LDFLAGS="$LDFLAGS -Wl,-Map,scummvm.exe.map -Wl,--stack,65536"
|
LDFLAGS="$LDFLAGS -Wl,-Map,scummvm.exe.map -Wl,--stack,65536"
|
||||||
_need_memalign=yes
|
_need_memalign=yes
|
||||||
add_line_to_config_mk 'USE_TREMOLO = 1'
|
add_line_to_config_mk 'USE_TREMOLO = 1'
|
||||||
|
@ -1462,7 +1451,6 @@ if test -n "$_host"; then
|
||||||
_port_mk="backends/platform/wince/wince.mk"
|
_port_mk="backends/platform/wince/wince.mk"
|
||||||
;;
|
;;
|
||||||
dreamcast)
|
dreamcast)
|
||||||
echo "Cross-compiling to $_host, forcing endianness, alignment and type sizes"
|
|
||||||
DEFINES="$DEFINES -DDISABLE_DEFAULT_SAVEFILEMANAGER -DDISABLE_TEXT_CONSOLE -DDISABLE_COMMAND_LINE"
|
DEFINES="$DEFINES -DDISABLE_DEFAULT_SAVEFILEMANAGER -DDISABLE_TEXT_CONSOLE -DDISABLE_COMMAND_LINE"
|
||||||
CXXFLAGS="$CXXFLAGS -O3 -funroll-loops -fschedule-insns2 -fomit-frame-pointer -fdelete-null-pointer-checks"
|
CXXFLAGS="$CXXFLAGS -O3 -funroll-loops -fschedule-insns2 -fomit-frame-pointer -fdelete-null-pointer-checks"
|
||||||
_need_memalign=yes
|
_need_memalign=yes
|
||||||
|
@ -1474,7 +1462,6 @@ if test -n "$_host"; then
|
||||||
add_line_to_config_mk 'include $(srcdir)/backends/platform/dc/dreamcast.mk'
|
add_line_to_config_mk 'include $(srcdir)/backends/platform/dc/dreamcast.mk'
|
||||||
;;
|
;;
|
||||||
wii)
|
wii)
|
||||||
echo "Cross-compiling to $_host, forcing endianness, alignment and type sizes"
|
|
||||||
_endian=big
|
_endian=big
|
||||||
_need_memalign=yes
|
_need_memalign=yes
|
||||||
_backend="wii"
|
_backend="wii"
|
||||||
|
@ -1490,7 +1477,6 @@ if test -n "$_host"; then
|
||||||
add_line_to_config_h "#define USE_WII_KBD"
|
add_line_to_config_h "#define USE_WII_KBD"
|
||||||
;;
|
;;
|
||||||
gamecube)
|
gamecube)
|
||||||
echo "Cross-compiling to $_host, forcing endianness, alignment and type sizes"
|
|
||||||
_endian=big
|
_endian=big
|
||||||
_need_memalign=yes
|
_need_memalign=yes
|
||||||
_backend="wii"
|
_backend="wii"
|
||||||
|
@ -1505,7 +1491,6 @@ if test -n "$_host"; then
|
||||||
add_line_to_config_h "/* #define DEBUG_WII_GDB */"
|
add_line_to_config_h "/* #define DEBUG_WII_GDB */"
|
||||||
;;
|
;;
|
||||||
nds)
|
nds)
|
||||||
echo "Cross-compiling to $_host, forcing endianness, alignment and type sizes"
|
|
||||||
# TODO: complete this
|
# TODO: complete this
|
||||||
# TODO: Maybe rename nds -> ds (would be more consistent with other backends)
|
# TODO: Maybe rename nds -> ds (would be more consistent with other backends)
|
||||||
DEFINES="$DEFINES -DDISABLE_FANCY_THEMES -DVECTOR_RENDERER_FORMAT=1555"
|
DEFINES="$DEFINES -DDISABLE_FANCY_THEMES -DVECTOR_RENDERER_FORMAT=1555"
|
||||||
|
@ -1522,7 +1507,6 @@ if test -n "$_host"; then
|
||||||
add_line_to_config_mk 'USE_ARM_SMUSH_ASM = 1'
|
add_line_to_config_mk 'USE_ARM_SMUSH_ASM = 1'
|
||||||
;;
|
;;
|
||||||
psp)
|
psp)
|
||||||
echo "Cross-compiling to $_host, forcing endianness, alignment and type sizes"
|
|
||||||
_need_memalign=yes
|
_need_memalign=yes
|
||||||
_backend="psp"
|
_backend="psp"
|
||||||
_build_scalers="no"
|
_build_scalers="no"
|
||||||
|
@ -1531,7 +1515,6 @@ if test -n "$_host"; then
|
||||||
_port_mk="backends/platform/psp/psp.mk"
|
_port_mk="backends/platform/psp/psp.mk"
|
||||||
;;
|
;;
|
||||||
ps2)
|
ps2)
|
||||||
echo "Cross-compiling to $_host, forcing endianness, alignment and type sizes"
|
|
||||||
# TODO: complete this
|
# TODO: complete this
|
||||||
_need_memalign=yes
|
_need_memalign=yes
|
||||||
_backend="ps2"
|
_backend="ps2"
|
||||||
|
@ -1561,7 +1544,7 @@ if test -n "$_host"; then
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Continuing with auto-detected values ... if you have problems, please add your target to configure."
|
echo "WARNING: Unknown target, continuing with auto-detected values"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue