mirror of
https://github.com/libretro/scummvm.git
synced 2024-11-27 11:20:40 +00:00
MORPHOS: simplify VERSION
- Same as AmigaOS4, add AMIGA format DATE - Configure : force optimization level on release build
This commit is contained in:
parent
3f69eca932
commit
2f1acbe627
@ -201,6 +201,11 @@ ifdef AMIGAOS
|
||||
AMIGA_DATE = $(shell gdate '+%d.%m.%Y')
|
||||
VERFLAGS += -DAMIGA_DATE=\"$(AMIGA_DATE)\"
|
||||
endif
|
||||
ifdef MORPHOS
|
||||
# MorphOS needs date in specific format for the version cookie
|
||||
AMIGA_DATE = $(shell date +"%-d.%-m.%Y")
|
||||
VERFLAGS += -DAMIGA_DATE=\"$(AMIGA_DATE)\"
|
||||
endif
|
||||
|
||||
######################################################################
|
||||
# Get git's working copy information
|
||||
|
@ -56,12 +56,9 @@
|
||||
* to properly work in exports (i.e. release tar balls etc.).
|
||||
*/
|
||||
const char *gScummVMVersion = SCUMMVM_VERSION SCUMMVM_REVISION;
|
||||
#ifdef __amigaos4__
|
||||
#if defined(__amigaos4__) || defined(__MORPHOS__)
|
||||
static const char *version_cookie __attribute__((used)) = "$VER: ScummVM " SCUMMVM_VERSION SCUMMVM_REVISION " (" AMIGA_DATE ")";
|
||||
#endif
|
||||
#ifdef __MORPHOS__
|
||||
static const char *version_cookie __attribute__((used)) = "$VER: ScummVM " SCUMMVM_VERSION SCUMMVM_REVISION " (" __DATE__ ")";
|
||||
#endif
|
||||
const char *gScummVMBuildDate = __DATE__ " " __TIME__;
|
||||
const char *gScummVMVersionDate = SCUMMVM_VERSION SCUMMVM_REVISION " (" __DATE__ " " __TIME__ ")";
|
||||
const char *gScummVMFullVersion = "ScummVM " SCUMMVM_VERSION SCUMMVM_REVISION " (" __DATE__ " " __TIME__ ")";
|
||||
|
4
configure
vendored
4
configure
vendored
@ -2630,6 +2630,9 @@ case $_host_os in
|
||||
_nuked_opl=no
|
||||
;;
|
||||
morphos*)
|
||||
if test "$_debug_build" = no; then
|
||||
_optimization_level=-O2
|
||||
fi
|
||||
append_var LDFLAGS "-Wl,--export-dynamic"
|
||||
append_var LDFLAGS "-L/usr/local/lib"
|
||||
append_var CXXFLAGS "-D__MORPHOS_SHAREDLIBS"
|
||||
@ -2640,6 +2643,7 @@ case $_host_os in
|
||||
append_var CXXFLAGS "-Wno-format"
|
||||
add_line_to_config_mk 'MORPHOS = 1'
|
||||
_port_mk="backends/platform/sdl/morphos/morphos.mk"
|
||||
# for use SDL2
|
||||
_sdlconfig=sdl2-config
|
||||
_nuked_opl=no
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user