Maemo5 support

This commit is contained in:
Aapo Rantalainen 2013-03-22 09:15:00 +02:00
parent 610de43719
commit 2b965a6f03
4 changed files with 25 additions and 2 deletions

View file

@ -12,6 +12,12 @@ if (IOS)
set(ARM ON)
endif()
if (MAEMO)
set(ARM ON)
#Maemo's gcc-4.7.2 is strickt
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive")
endif()
if(BLACKBERRY)
set(ARM ON)
endif()
@ -26,7 +32,7 @@ else() # Assume x86
set(X86 ON)
endif()
if(ANDROID OR BLACKBERRY OR IOS OR PANDORA)
if(ANDROID OR BLACKBERRY OR IOS OR PANDORA OR MAEMO)
set(HEADLESS OFF)
elseif(NOT DEFINED HEADLESS)
set(HEADLESS ON)
@ -39,6 +45,7 @@ option(X86 "Set to ON if targeting an X86 processor" ${X86})
option(ANDROID "Set to ON if targeting an Android device" ${ANDROID})
option(BLACKBERRY "Set to ON if targeting a Blackberry device" ${BLACKBERRY})
option(PANDORA "Set to ON if targeting an OpenPandora device" ${PANDORA})
option(MAEMO "Set to ON if targeting an Maemo (N900) device" ${MAEMO})
option(IOS "Set to ON if targeting an iOS device" ${IOS})
option(USING_GLES2 "Set to ON if target device uses OpenGL ES 2.0" ${USING_GLES2})
option(USING_QT_UI "Set to ON if you wish to use the Qt frontend wrapper" ${USING_QT_UI})
@ -99,6 +106,10 @@ if(IOS)
add_definitions(-DIOS)
endif()
if(MAEMO)
add_definitions(-DMAEMO)
endif()
if(PANDORA)
add_definitions(-DPANDORA)
endif()
@ -453,7 +464,7 @@ elseif(SDL_FOUND)
if(APPLE)
set(nativeExtra ${nativeExtra} SDL/SDLMain.h SDL/SDLMain.mm)
set(nativeExtraLibs ${nativeExtraLibs} ${COCOA_LIBRARY})
elseif(PANDORA)
elseif(PANDORA OR MAEMO)
set(nativeExtraLibs ${nativeExtraLibs} pthread EGL X11)
endif()
set(TargetBin PPSSPPSDL)

View file

@ -31,6 +31,10 @@
#define VERBOSE_LEVEL 6 // Noisy debugging - sometimes needed but usually unimportant.
#if !defined(_WIN32) && !defined(PANDORA)
#if defined(MAEMO)
//ucontext.h will be then skipped
#define _SYS_UCONTEXT_H 1
#endif
#include <signal.h>
#endif

View file

@ -24,6 +24,10 @@
#include "ArmRegCacheFPU.h"
#include "ArmAsm.h"
#if defined(MAEMO)
#include "stddef.h"
#endif
namespace MIPSComp
{

View file

@ -18,6 +18,10 @@
#include "ArmRegCache.h"
#include "ArmEmitter.h"
#if defined(MAEMO)
#include "stddef.h"
#endif
using namespace ArmGen;
ArmRegCache::ArmRegCache(MIPSState *mips) : mips_(mips) {