/* ScummVM - Graphic Adventure Engine
 * Copyright (C) 2003-2005 Andreas 'Sprawl' Karlsson - Original EPOC port, ESDL
 * Copyright (C) 2003-2014 Lars 'AnotherGuest' Persson - Original EPOC port, Audio System
 * Copyright (C) 2005 Jurgen 'SumthinWicked' Braam - EPOC/CVS maintainer
 * Copyright (C) 2013-2014 Fedor Strizhniou Additional library porting, engine support, help files etc
 * Copyright (C) 2005-2014 The ScummVM project
 *
 * ScummVM is the legal property of its developers, whose names
 * are too numerous to list here. Please refer to the COPYRIGHT
 * file distributed with this source distribution.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 *
 */

//
// EPOC S60 MMP makefile project for ScummVM
//

// *** Definitions

TARGET          ScummVM.exe
TARGETPATH      sys\bin
TARGETTYPE      exe
OPTION			GCCE -Wno-multichar -Wno-reorder -Wno-unused -Wno-format -fsigned-char

// fixes error "section .data loaded at [...] overlaps section .text loaded at [...]"
LINKEROPTION 	GCCE -Tdata 0xAA00000

UID             0x100039ce 0xA0000657

START RESOURCE  ScummVM_reg.rss
TARGETPATH              \private\10003a3f\apps
END

START RESOURCE  ScummVM_loc.rss
TARGETPATH              \Resource\Apps
LANG                    SC
END

SOURCEPATH	..\res
START RESOURCE  ScummVM.rss
HEADER
TARGETPATH              \Resource\Apps
LANG                    SC
END

EPOCSTACKSIZE	80000
EPOCHEAPSIZE	5000000 128000000

START BITMAP    ScummVM.mbm
TARGETPATH              \Resource\Apps
SOURCEPATH              ..\res
// Source Color-depth Source-bitmap-list
// c denotes whether the bitmap is a color bitmap and the digits represent the
// color-depth of the bitmap and the bitmap mask respectively
SOURCE  c24             ScummSmall.bmp
SOURCE  8               ScummSmallMask.bmp
SOURCE  c24             ScummLarge.bmp
SOURCE  8               ScummLargeMask.bmp
SOURCE  c24             ScummxLarge.bmp
SOURCE  8               ScummxLargeMask.bmp
END

MACRO			S60
MACRO			S60V3

ALWAYS_BUILD_AS_ARM

//START_AUTO_MACROS_SLAVE//

	// empty base file, will be updated by Perl build scripts

//STOP_AUTO_MACROS_SLAVE//

// *** Static Libraries

STATICLIBRARY esdl.lib

// *** Include paths

USERINCLUDE	    ..\..\..\.. ..\..\..\..\gui ..\..\..\..\engines
USERINCLUDE		..\..\..\..\backends\fs ..\src ..\..\..\..\backends\platform\sdl ..\..\..\..\audio

SYSTEMINCLUDE	\epoc32\include\freetype
SYSTEMINCLUDE	\epoc32\include\mpeg2dec
SYSTEMINCLUDE   \epoc32\include\jpeg
SYSTEMINCLUDE   \epoc32\include\png
SYSTEMINCLUDE	\epoc32\include\ESDL
SYSTEMINCLUDE	\epoc32\include\ZLIB // before \epoc32\include because symbian already has older version
SYSTEMINCLUDE   \epoc32\include\libc
SYSTEMINCLUDE 	\epoc32\include\theora
SYSTEMINCLUDE   \epoc32\include\tremor
SYSTEMINCLUDE   \epoc32\include
SYSTEMINCLUDE   \epoc32\include\mw
SYSTEMINCLUDE   \epoc32\include\platform
SYSTEMINCLUDE   \epoc32\include\platform\mw
SYSTEMINCLUDE   ..\src // for portdefs.h

// *** SOURCE files

SOURCEPATH ..\..\..\..\base

//START_AUTO_OBJECTS_BASE_//

	// empty base file, will be updated by Perl build scripts

//STOP_AUTO_OBJECTS_BASE_//

SOURCEPATH ..\..\..\..

// backend EPOC/SDL/ESDL specific includes
SOURCE backends\platform\sdl\sdl.cpp
SOURCE backends\audiocd\sdl\sdl-audiocd.cpp
SOURCE backends\audiocd\default\default-audiocd.cpp
SOURCE backends\fs\symbian\symbian-fs.cpp
SOURCE backends\fs\symbian\symbian-fs-factory.cpp
SOURCE backends\platform\symbian\src\SymbianOS.cpp
SOURCE backends\platform\symbian\src\SymbianActions.cpp
SOURCE backends\platform\symbian\src\ScummApp.cpp
SOURCE backends\platform\symbian\src\SymbianMain.cpp

SOURCE gui\Key.cpp
SOURCE gui\KeysDialog.cpp
SOURCE gui\Actions.cpp
SOURCE gui\Dialog.cpp

// Common error
SOURCE common\error.cpp
SOURCE common\quicktime.cpp

// Special for graphics
SOURCE backends\graphics\symbiansdl\symbiansdl-graphics.cpp
SOURCE backends\graphics\surfacesdl\surfacesdl-graphics.cpp
SOURCE engines\obsolete.cpp

// *** Dynamic Libraries
LIBRARY cone.lib  eikcore.lib euser.lib
LIBRARY apparc.lib fbscli.lib estlib.lib
LIBRARY apgrfx.lib gdi.lib hal.lib bitgdi.lib
LIBRARY esock.lib mediaclientaudiostream.lib
LIBRARY efsrv.lib ws32.lib avkon.lib bafl.lib
LIBRARY remconcoreapi.lib remconinterfacebase.lib

CAPABILITY LocalServices ReadUserData
MACRO SDL_BACKEND
