Moved base/engine.cpp and .h to engines/ (main motivation: helps untangle the linker dependency graph). Porters will have to update project files

svn-id: r23974
This commit is contained in:
Max Horn 2006-09-23 00:42:35 +00:00
parent a3be69f4e4
commit 4c14cf6d1a
65 changed files with 148 additions and 141 deletions

View File

@ -33,10 +33,11 @@ DEPDIR := .deps
MODULES := test tools base $(MODULES)
-include $(srcdir)/engines/module.mk
-include $(srcdir)/engines/engines.mk
# After the game specific modules follow the shared modules
MODULES += \
engines \
gui \
graphics \
sound \

View File

@ -36,7 +36,7 @@
#include "common/util.h"
#include "base/engine.h"
#include "engines/engine.h"
#include "backends/fs/abstract-fs.h"
#define ENTER() /* debug(6, "Enter") */

View File

@ -25,7 +25,7 @@
#include <stdio.h>
#include "base/engine.h"
#include "engines/engine.h"
#include "backends/fs/abstract-fs.h"
/*

View File

@ -23,7 +23,7 @@
*/
#ifdef __PSP__
#include "base/engine.h"
#include "engines/engine.h"
#include "backends/fs/abstract-fs.h"

View File

@ -23,7 +23,7 @@
#include <common/stdafx.h>
#include <common/scummsys.h>
#include "base/engine.h"
#include "engines/engine.h"
#include "dc.h"
EXTERN_C void *memcpy4s(void *s1, const void *s2, unsigned int n);

View File

@ -23,7 +23,7 @@
#include <common/stdafx.h>
#include <common/scummsys.h>
#include "base/engine.h"
#include "engines/engine.h"
#include <ronin/ronin.h>
#include <string.h>

View File

@ -23,7 +23,7 @@
#include <common/stdafx.h>
#include <common/scummsys.h>
#include "base/engine.h"
#include "engines/engine.h"
#include "dc.h"
#include "icon.h"
#include <common/savefile.h>

View File

@ -26,7 +26,7 @@
#include "common/scummsys.h"
#include "common/file.h"
#include "base/engine.h"
#include "engines/engine.h"
#include "gp32std.h"
#include "gp32std_grap.h"

View File

@ -32,7 +32,7 @@
#include "common/system.h"
#include "backends/intern.h"
#include "base/engine.h"
#include "engines/engine.h"
#include "gp32std.h"
#include "gp32std_grap.h"

View File

@ -29,7 +29,7 @@
#include "common/system.h"
#include "backends/intern.h"
#include "base/engine.h"
#include "engines/engine.h"
#include "gp32std.h"
#include "gp32std_grap.h"

View File

@ -29,7 +29,7 @@
#include "common/system.h"
#include "backends/intern.h"
#include "base/engine.h"
#include "engines/engine.h"
#include "gp32std.h"
#include "gp32std_grap.h"

View File

@ -23,7 +23,7 @@
*/
#include "common/stdafx.h"
#include "base/engine.h"
#include "engines/engine.h"
#include "common/util.h"
#include "scumm/scumm.h"

View File

@ -20,7 +20,7 @@
*/
#include "common/stdafx.h"
#include "base/engine.h"
#include "engines/engine.h"
#include <exec/types.h>
#include <cybergraphics/cybergraphics.h>

View File

@ -23,7 +23,7 @@
*/
#include "common/stdafx.h"
#include "base/engine.h"
#include "engines/engine.h"
#include <dos/dos.h>
#include <exec/memory.h>

View File

@ -20,7 +20,7 @@
*/
#include "common/stdafx.h"
#include "base/engine.h"
#include "engines/engine.h"
#include <exec/memory.h>
#include <exec/semaphores.h>

View File

@ -28,7 +28,7 @@
#include <assert.h>
#include <string.h>
#include "backends/platform/ps2/asyncfio.h"
#include "base/engine.h"
#include "engines/engine.h"
#include "common/file.h"
#include "eecodyvdfs.h"
#include "common/config-manager.h"

View File

@ -33,7 +33,7 @@
#include <iopheap.h>
#include "common/scummsys.h"
#include "../intern.h"
#include "base/engine.h"
#include "engines/engine.h"
#include "backends/platform/ps2/systemps2.h"
#include "backends/platform/ps2/Gs2dScreen.h"
#include "backends/platform/ps2/ps2input.h"

View File

@ -26,7 +26,7 @@
#include "CELauncherDialog.h"
#include "base/engine.h"
#include "engines/engine.h"
#include "gui/newgui.h"
#include "gui/widget.h"

View File

@ -24,7 +24,7 @@
#include "wince-sdl.h"
#include "common/util.h"
#include "base/engine.h"
#include "engines/engine.h"
#include "base/main.h"
#include "base/plugins.h"
#include "common/timer.h"

View File

@ -23,7 +23,7 @@
#include "common/stdafx.h"
#include "base/engine.h"
#include "engines/engine.h"
#include "base/commandLine.h"
#include "base/plugins.h"
#include "base/version.h"

View File

@ -30,7 +30,7 @@
*/
#include "common/stdafx.h"
#include "base/engine.h"
#include "engines/engine.h"
#include "base/commandLine.h"
#include "base/plugins.h"
#include "base/version.h"

View File

@ -1,7 +1,6 @@
MODULE := base
MODULE_OBJS := \
engine.o \
main.o \
commandLine.o \
plugins.o \

View File

@ -23,7 +23,7 @@
#include "common/stdafx.h"
#include "base/plugins.h"
#include "base/engine.h"
#include "engines/engine.h"
#include "common/util.h"
#include "common/fs.h"

View File

@ -20,7 +20,7 @@
*/
#include "common/stdafx.h"
#include "base/engine.h"
#include "engines/engine.h"
#include "common/util.h"
namespace Common {

View File

@ -33,7 +33,7 @@
#include "common/savefile.h"
#include "common/system.h"
#include "base/engine.h"
#include "engines/engine.h"
namespace Agi {

View File

@ -29,7 +29,7 @@
#include "common/scummsys.h"
#include "common/util.h"
#include "base/engine.h"
#include "engines/engine.h"
#include "cine/texte.h"
#include "cine/rel.h"

View File

@ -23,7 +23,7 @@
#if defined(WIN32) && !defined (__SYMBIAN32__)
#include <malloc.h>
#endif
#include "base/engine.h"
#include "engines/engine.h"
#include "common/config-manager.h"
#include "common/file.h"
#include "common/timer.h"

81
engines/engines.mk Normal file
View File

@ -0,0 +1,81 @@
ifdef DISABLE_SCUMM
DEFINES += -DDISABLE_SCUMM
else
MODULES += engines/scumm
ifdef DISABLE_SCUMM_7_8
DEFINES += -DDISABLE_SCUMM_7_8
endif
ifdef DISABLE_HE
DEFINES += -DDISABLE_HE
endif
endif
ifdef DISABLE_SIMON
DEFINES += -DDISABLE_SIMON
else
MODULES += engines/simon
endif
ifdef DISABLE_SKY
DEFINES += -DDISABLE_SKY
else
MODULES += engines/sky
endif
ifdef DISABLE_SWORD1
DEFINES += -DDISABLE_SWORD1
else
MODULES += engines/sword1
endif
ifdef DISABLE_SWORD2
DEFINES += -DDISABLE_SWORD2
else
MODULES += engines/sword2
endif
ifdef DISABLE_QUEEN
DEFINES += -DDISABLE_QUEEN
else
MODULES += engines/queen
endif
ifdef DISABLE_SAGA
DEFINES += -DDISABLE_SAGA
else
MODULES += engines/saga
endif
ifdef DISABLE_KYRA
DEFINES += -DDISABLE_KYRA
else
MODULES += engines/kyra
endif
ifdef DISABLE_GOB
DEFINES += -DDISABLE_GOB
else
MODULES += engines/gob
endif
ifdef DISABLE_LURE
DEFINES += -DDISABLE_LURE
else
MODULES += engines/lure
endif
ifdef DISABLE_CINE
DEFINES += -DDISABLE_CINE
else
MODULES += engines/cine
endif
ifdef DISABLE_AGI
DEFINES += -DDISABLE_AGI
else
MODULES += engines/agi
endif

View File

@ -26,7 +26,7 @@
#include "common/stdafx.h"
#include "common/system.h"
#include "base/engine.h"
#include "engines/engine.h"
namespace Gob {

View File

@ -23,7 +23,7 @@
#ifndef KYRA_H
#define KYRA_H
#include "base/engine.h"
#include "engines/engine.h"
#include "common/rect.h"
namespace Kyra {

View File

@ -23,7 +23,7 @@
#include "common/stdafx.h"
#include "common/system.h"
#include "base/engine.h"
#include "engines/engine.h"
#include "kyra/kyra.h"
#include "kyra/resource.h"

View File

@ -24,7 +24,7 @@
#define LURE_GAME_H
#include "common/stdafx.h"
#include "base/engine.h"
#include "engines/engine.h"
#include "lure/luredefs.h"
#include "lure/menu.h"
#include "lure/palette.h"

View File

@ -23,7 +23,7 @@
#ifndef LURE_H
#define LURE_H
#include "base/engine.h"
#include "engines/engine.h"
#include "common/rect.h"
#include "sound/mixer.h"
#include "common/file.h"

View File

@ -24,7 +24,7 @@
#define LURE_SCREEN_H
#include "common/stdafx.h"
#include "base/engine.h"
#include "engines/engine.h"
#include "lure/luredefs.h"
#include "lure/palette.h"
#include "lure/disk.h"

View File

@ -1,81 +1,7 @@
ifdef DISABLE_SCUMM
DEFINES += -DDISABLE_SCUMM
else
MODULES += engines/scumm
MODULE := engines
ifdef DISABLE_SCUMM_7_8
DEFINES += -DDISABLE_SCUMM_7_8
endif
ifdef DISABLE_HE
DEFINES += -DDISABLE_HE
endif
endif
ifdef DISABLE_SIMON
DEFINES += -DDISABLE_SIMON
else
MODULES += engines/simon
endif
ifdef DISABLE_SKY
DEFINES += -DDISABLE_SKY
else
MODULES += engines/sky
endif
ifdef DISABLE_SWORD1
DEFINES += -DDISABLE_SWORD1
else
MODULES += engines/sword1
endif
ifdef DISABLE_SWORD2
DEFINES += -DDISABLE_SWORD2
else
MODULES += engines/sword2
endif
ifdef DISABLE_QUEEN
DEFINES += -DDISABLE_QUEEN
else
MODULES += engines/queen
endif
ifdef DISABLE_SAGA
DEFINES += -DDISABLE_SAGA
else
MODULES += engines/saga
endif
ifdef DISABLE_KYRA
DEFINES += -DDISABLE_KYRA
else
MODULES += engines/kyra
endif
ifdef DISABLE_GOB
DEFINES += -DDISABLE_GOB
else
MODULES += engines/gob
endif
ifdef DISABLE_LURE
DEFINES += -DDISABLE_LURE
else
MODULES += engines/lure
endif
ifdef DISABLE_CINE
DEFINES += -DDISABLE_CINE
else
MODULES += engines/cine
endif
ifdef DISABLE_AGI
DEFINES += -DDISABLE_AGI
else
MODULES += engines/agi
endif
MODULE_OBJS := \
engine.o
# Include common rules
include $(srcdir)/rules.mk

View File

@ -23,7 +23,7 @@
#ifndef QUEEN_H
#define QUEEN_H
#include "base/engine.h"
#include "engines/engine.h"
namespace Common {
class InSaveFile;

View File

@ -25,7 +25,7 @@
#ifndef SAGA_H
#define SAGA_H
#include "base/engine.h"
#include "engines/engine.h"
#include "common/stream.h"

View File

@ -23,7 +23,7 @@
#include "common/stdafx.h"
#include "common/util.h"
#include "base/engine.h"
#include "engines/engine.h"
#include "scumm/imuse/imuse_internal.h"
#include "scumm/saveload.h"

View File

@ -23,7 +23,7 @@
#include "common/stdafx.h"
#include "base/engine.h"
#include "engines/engine.h"
#include "common/system.h"

View File

@ -23,7 +23,7 @@
#if !defined(INSANE_H) && !defined(DISABLE_SCUMM_7_8)
#define INSANE_H
#include "base/engine.h"
#include "engines/engine.h"
#include "scumm/intern.h"
#include "scumm/nut_renderer.h"

View File

@ -23,7 +23,7 @@
#include "common/stdafx.h"
#include "base/engine.h"
#include "engines/engine.h"
#include "scumm/insane/insane.h"

View File

@ -23,7 +23,7 @@
#include "common/stdafx.h"
#include "base/engine.h"
#include "engines/engine.h"
#include "scumm/insane/insane.h"

View File

@ -23,7 +23,7 @@
#include "common/stdafx.h"
#include "base/engine.h"
#include "engines/engine.h"
#include "scumm/scumm.h"

View File

@ -23,7 +23,7 @@
#include "common/stdafx.h"
#include "base/engine.h"
#include "engines/engine.h"
#include "common/config-manager.h"

View File

@ -23,7 +23,7 @@
*/
#include "common/stdafx.h"
#include "base/engine.h"
#include "engines/engine.h"
#include "scumm/player_nes.h"
#include "scumm/scumm.h"
#include "sound/mixer.h"

View File

@ -22,7 +22,7 @@
*/
#include "common/stdafx.h"
#include "base/engine.h"
#include "engines/engine.h"
#include "scumm/player_v1.h"
#include "scumm/scumm.h"

View File

@ -22,7 +22,7 @@
*/
#include "common/stdafx.h"
#include "base/engine.h"
#include "engines/engine.h"
#include "scumm/player_v2.h"
#include "scumm/scumm.h"
#include "sound/mididrv.h"

View File

@ -22,7 +22,7 @@
*/
#include "common/stdafx.h"
#include "base/engine.h"
#include "engines/engine.h"
#include "scumm/player_v2a.h"
#include "scumm/scumm.h"

View File

@ -22,7 +22,7 @@
*/
#include "common/stdafx.h"
#include "base/engine.h"
#include "engines/engine.h"
#include "scumm/player_v3a.h"
#include "scumm/scumm.h"

View File

@ -24,7 +24,7 @@
#ifndef SCRIPT_H
#define SCRIPT_H
#include "base/engine.h"
#include "engines/engine.h"
namespace Scumm {

View File

@ -24,7 +24,7 @@
#ifndef SCUMM_H
#define SCUMM_H
#include "base/engine.h"
#include "engines/engine.h"
#include "common/endian.h"
#include "common/file.h"
#include "common/rect.h"

View File

@ -22,7 +22,7 @@
#include "common/stdafx.h"
#include "base/engine.h"
#include "engines/engine.h"
#include "common/config-manager.h"
#include "common/file.h"

View File

@ -24,7 +24,7 @@
#ifndef SIMON_H
#define SIMON_H
#include "base/engine.h"
#include "engines/engine.h"
#include "common/rect.h"
#include "common/util.h"

View File

@ -24,7 +24,7 @@
#define SKYMAIN_H
#include "common/stdafx.h"
#include "base/engine.h"
#include "engines/engine.h"
namespace Sky {

View File

@ -26,7 +26,7 @@
#include "common/util.h"
#include "common/str.h"
#include "base/engine.h"
#include "engines/engine.h"
#include "sword1/memman.h"
#include "sword1/resman.h"

View File

@ -23,7 +23,7 @@
#ifndef BSSWORD1_H
#define BSSWORD1_H
#include "base/engine.h"
#include "engines/engine.h"
#include "common/util.h"
#include "sword1/sworddefs.h"

View File

@ -29,7 +29,7 @@
#define RIGHT_CLICK_CLEARS_LUGGAGE 0
#include "base/engine.h"
#include "engines/engine.h"
#include "common/util.h"

View File

@ -25,7 +25,7 @@
#include "gui/eval.h"
#include "gui/newgui.h"
#include "gui/PopUpWidget.h"
#include "base/engine.h"
#include "engines/engine.h"
namespace GUI {

View File

@ -20,7 +20,7 @@
*/
#include "common/stdafx.h"
#include "base/engine.h"
#include "engines/engine.h"
#include "base/plugins.h"
#include "base/version.h"
#include "common/system.h"

View File

@ -24,7 +24,7 @@
#include "gui/ScrollBarWidget.h"
#include "gui/eval.h"
#include "base/engine.h"
#include "engines/engine.h"
#include "base/version.h"
#include "common/system.h"

View File

@ -21,7 +21,7 @@
#include "common/stdafx.h"
#include "base/engine.h"
#include "engines/engine.h"
#include "base/game.h"
#include "base/plugins.h"
#include "base/version.h"

View File

@ -26,7 +26,7 @@
#include "sound/mp3.h"
#include "sound/vorbis.h"
#include "sound/flac.h"
#include "base/engine.h"
#include "engines/engine.h"
#include "common/file.h"
#include "common/util.h"
#include "common/system.h"

View File

@ -23,7 +23,7 @@
#include "common/stdafx.h"
#include "base/engine.h"
#include "engines/engine.h"
#include "common/config-manager.h"
#include "common/str.h"
#include "common/util.h"

View File

@ -24,7 +24,7 @@
#define SOUND_RATE_H
#include "common/scummsys.h"
#include "base/engine.h"
#include "engines/engine.h"
class AudioStream;