CONFIGURE: Allow building with TinyGL disabled (#2528)
This commit is contained in:
parent
53873ea583
commit
1bf1fb40fc
8 changed files with 34 additions and 5 deletions
|
@ -173,6 +173,9 @@ const char *gScummVMFeatures = ""
|
||||||
"SDL_net "
|
"SDL_net "
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef USE_TINYGL
|
||||||
|
"TinyGL "
|
||||||
|
#endif
|
||||||
#ifdef USE_OPENGL
|
#ifdef USE_OPENGL
|
||||||
"OpenGL "
|
"OpenGL "
|
||||||
#ifdef USE_OPENGL_SHADERS
|
#ifdef USE_OPENGL_SHADERS
|
||||||
|
|
19
configure
vendored
Executable file → Normal file
19
configure
vendored
Executable file → Normal file
|
@ -164,6 +164,7 @@ _opengl_game=auto
|
||||||
_opengl_game_classic=no
|
_opengl_game_classic=no
|
||||||
_opengl_game_shaders=auto
|
_opengl_game_shaders=auto
|
||||||
_opengl_game_es2=no
|
_opengl_game_es2=no
|
||||||
|
_tinygl=yes
|
||||||
_readline=auto
|
_readline=auto
|
||||||
_freetype2=auto
|
_freetype2=auto
|
||||||
_taskbar=auto
|
_taskbar=auto
|
||||||
|
@ -270,6 +271,7 @@ add_feature mpeg2 "mpeg2" "_mpeg2"
|
||||||
add_feature opengl_game_shaders "OpenGL with shaders" "_opengl_game_shaders"
|
add_feature opengl_game_shaders "OpenGL with shaders" "_opengl_game_shaders"
|
||||||
add_feature png "PNG" "_png"
|
add_feature png "PNG" "_png"
|
||||||
add_feature theoradec "libtheoradec" "_theoradec"
|
add_feature theoradec "libtheoradec" "_theoradec"
|
||||||
|
add_feature tinygl "TinyGL" "_tinygl"
|
||||||
add_feature vorbis "Vorbis file support" "_vorbis _tremor"
|
add_feature vorbis "Vorbis file support" "_vorbis _tremor"
|
||||||
add_feature zlib "zlib" "_zlib"
|
add_feature zlib "zlib" "_zlib"
|
||||||
add_feature lua "lua" "_lua"
|
add_feature lua "lua" "_lua"
|
||||||
|
@ -1321,6 +1323,8 @@ for ac_option in $@; do
|
||||||
--disable-opengl-game) _opengl_game=no ;;
|
--disable-opengl-game) _opengl_game=no ;;
|
||||||
--disable-opengl-game-shaders) _opengl_game_shaders=no ;;
|
--disable-opengl-game-shaders) _opengl_game_shaders=no ;;
|
||||||
--force-opengl-game-es2) _opengl_game_es2=yes ;;
|
--force-opengl-game-es2) _opengl_game_es2=yes ;;
|
||||||
|
--enable-tinygl) _tinygl=yes ;;
|
||||||
|
--disable-tinygl) _tinygl=no ;;
|
||||||
--enable-bink) _bink=yes ;;
|
--enable-bink) _bink=yes ;;
|
||||||
--disable-bink) _bink=no ;;
|
--disable-bink) _bink=no ;;
|
||||||
--enable-discord) _discord=yes ;;
|
--enable-discord) _discord=yes ;;
|
||||||
|
@ -3396,6 +3400,7 @@ if test -n "$_host"; then
|
||||||
_build_scalers=no
|
_build_scalers=no
|
||||||
_mt32emu=no
|
_mt32emu=no
|
||||||
_nuked_opl=no
|
_nuked_opl=no
|
||||||
|
_tinygl=no
|
||||||
_bink=no
|
_bink=no
|
||||||
_lua=no
|
_lua=no
|
||||||
_port_mk="backends/platform/ds/ds.mk"
|
_port_mk="backends/platform/ds/ds.mk"
|
||||||
|
@ -5860,6 +5865,16 @@ else
|
||||||
fi
|
fi
|
||||||
define_in_config_if_yes $_tts 'USE_TTS'
|
define_in_config_if_yes $_tts 'USE_TTS'
|
||||||
|
|
||||||
|
#
|
||||||
|
# Check whether to build with TinyGL support
|
||||||
|
#
|
||||||
|
echo_n "Building TinyGL support... "
|
||||||
|
if test "$_16bit" = "no"; then
|
||||||
|
_tinygl=no
|
||||||
|
fi
|
||||||
|
define_in_config_if_yes $_tinygl 'USE_TINYGL'
|
||||||
|
echo "$_tinygl"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Check whether to build Bink video support
|
# Check whether to build Bink video support
|
||||||
#
|
#
|
||||||
|
@ -5975,6 +5990,10 @@ if test "$_highres" = yes ; then
|
||||||
echo_n ", high resolution"
|
echo_n ", high resolution"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test "$_tinygl" = yes ; then
|
||||||
|
echo_n ", TinyGL"
|
||||||
|
fi
|
||||||
|
|
||||||
if test "$_savegame_timestamp" = yes ; then
|
if test "$_savegame_timestamp" = yes ; then
|
||||||
echo_n ", savegame timestamp"
|
echo_n ", savegame timestamp"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1060,6 +1060,7 @@ const Feature s_features[] = {
|
||||||
{ "mt32emu", "USE_MT32EMU", false, true, "integrated MT-32 emulator" },
|
{ "mt32emu", "USE_MT32EMU", false, true, "integrated MT-32 emulator" },
|
||||||
{ "lua", "USE_LUA", false, true, "lua" },
|
{ "lua", "USE_LUA", false, true, "lua" },
|
||||||
{ "nasm", "USE_NASM", false, true, "IA-32 assembly support" }, // This feature is special in the regard, that it needs additional handling.
|
{ "nasm", "USE_NASM", false, true, "IA-32 assembly support" }, // This feature is special in the regard, that it needs additional handling.
|
||||||
|
{ "tinygl", "USE_TINYGL", false, true, "TinyGL support" },
|
||||||
{ "opengl", "USE_OPENGL", false, true, "OpenGL support" },
|
{ "opengl", "USE_OPENGL", false, true, "OpenGL support" },
|
||||||
{ "opengl_game", "USE_OPENGL_GAME", false, true, "OpenGL support in 3d games" },
|
{ "opengl_game", "USE_OPENGL_GAME", false, true, "OpenGL support in 3d games" },
|
||||||
{ "opengl_shaders", "USE_OPENGL_SHADERS", false, true, "OpenGL support (shaders) in 3d games" },
|
{ "opengl_shaders", "USE_OPENGL_SHADERS", false, true, "OpenGL support (shaders) in 3d games" },
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# This file is included from the main "configure" script
|
# This file is included from the main "configure" script
|
||||||
# add_engine [name] [desc] [build-by-default] [subengines] [base games] [deps]
|
# add_engine [name] [desc] [build-by-default] [subengines] [base games] [deps]
|
||||||
add_engine grim "Grim" yes "monkey4" "Grim Fandango" "zlib"
|
add_engine grim "Grim" yes "monkey4" "Grim Fandango" "tinygl zlib"
|
||||||
add_engine monkey4 "Escape from Monkey Island" yes "" "" "bink mpeg2"
|
add_engine monkey4 "Escape from Monkey Island" yes "" "" "bink mpeg2"
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# This file is included from the main "configure" script
|
# This file is included from the main "configure" script
|
||||||
# add_engine [name] [desc] [build-by-default] [subengines] [base games] [deps]
|
# add_engine [name] [desc] [build-by-default] [subengines] [base games] [deps]
|
||||||
add_engine icb "In Cold Blood" no "" "" "zlib"
|
add_engine icb "In Cold Blood" no "" "" "tinygl zlib"
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# This file is included from the main "configure" script
|
# This file is included from the main "configure" script
|
||||||
# add_engine [name] [desc] [build-by-default] [subengines] [base games] [deps]
|
# add_engine [name] [desc] [build-by-default] [subengines] [base games] [deps]
|
||||||
add_engine myst3 "Myst 3" yes "" "" "jpeg bink"
|
add_engine myst3 "Myst 3" yes "" "" "tinygl jpeg bink"
|
||||||
|
|
|
@ -51,7 +51,10 @@ MODULE_OBJS := \
|
||||||
opengl/surfacerenderer.o \
|
opengl/surfacerenderer.o \
|
||||||
opengl/box_shaders.o \
|
opengl/box_shaders.o \
|
||||||
opengl/control_shaders.o \
|
opengl/control_shaders.o \
|
||||||
opengl/compat_shaders.o \
|
opengl/compat_shaders.o
|
||||||
|
|
||||||
|
ifdef USE_TINYGL
|
||||||
|
MODULE_OBJS += \
|
||||||
tinygl/api.o \
|
tinygl/api.o \
|
||||||
tinygl/arrays.o \
|
tinygl/arrays.o \
|
||||||
tinygl/clear.o \
|
tinygl/clear.o \
|
||||||
|
@ -73,7 +76,8 @@ MODULE_OBJS := \
|
||||||
tinygl/zmath.o \
|
tinygl/zmath.o \
|
||||||
tinygl/ztriangle.o \
|
tinygl/ztriangle.o \
|
||||||
tinygl/zblit.o \
|
tinygl/zblit.o \
|
||||||
tinygl/zdirtyrect.o \
|
tinygl/zdirtyrect.o
|
||||||
|
endif
|
||||||
|
|
||||||
ifdef USE_SCALERS
|
ifdef USE_SCALERS
|
||||||
MODULE_OBJS += \
|
MODULE_OBJS += \
|
||||||
|
|
|
@ -33,7 +33,9 @@ static const RendererTypeDescription rendererTypes[] = {
|
||||||
#if defined(USE_OPENGL_SHADERS) || defined(USE_GLES2)
|
#if defined(USE_OPENGL_SHADERS) || defined(USE_GLES2)
|
||||||
{ "opengl_shaders", _s("OpenGL with shaders"), kRendererTypeOpenGLShaders },
|
{ "opengl_shaders", _s("OpenGL with shaders"), kRendererTypeOpenGLShaders },
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef USE_TINYGL
|
||||||
{ "software", "Software", kRendererTypeTinyGL },
|
{ "software", "Software", kRendererTypeTinyGL },
|
||||||
|
#endif
|
||||||
{ 0, 0, kRendererTypeDefault }
|
{ 0, 0, kRendererTypeDefault }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue