From f57e78c324d20a818bdf156bcc8308bc99afd9d5 Mon Sep 17 00:00:00 2001 From: Sacha Date: Sat, 22 Dec 2012 19:12:12 +1000 Subject: [PATCH 1/2] Update Qt: IndexGenerator{.cpp,.h} --- Qt/Core.pro | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Qt/Core.pro b/Qt/Core.pro index d5c1c384e9..95cefa9a4b 100755 --- a/Qt/Core.pro +++ b/Qt/Core.pro @@ -109,6 +109,7 @@ SOURCES += ../Core/MIPS/ARM/Asm.cpp \ #CoreARM ../GPU/GLES/DisplayListInterpreter.cpp \ ../GPU/GLES/FragmentShaderGenerator.cpp \ ../GPU/GLES/Framebuffer.cpp \ + ../GPU/GLES/IndexGenerator.cpp \ ../GPU/GLES/ShaderManager.cpp \ ../GPU/GLES/StateMapping.cpp \ ../GPU/GLES/TextureCache.cpp \ @@ -219,6 +220,7 @@ HEADERS += ../Core/MIPS/ARM/Asm.h \ ../GPU/GLES/DisplayListInterpreter.h \ ../GPU/GLES/FragmentShaderGenerator.h \ ../GPU/GLES/Framebuffer.h \ + ../GPU/GLES/IndexGenerator.h \ ../GPU/GLES/ShaderManager.h \ ../GPU/GLES/StateMapping.h \ ../GPU/GLES/TextureCache.h \ From f870b19cbbba12895d793f252adc2e7c1c5151eb Mon Sep 17 00:00:00 2001 From: Sacha Date: Sun, 23 Dec 2012 17:46:44 +1000 Subject: [PATCH 2/2] Support x86 arch and Windows(untested), Linux platforms with Qt frontend --- Qt/Common.pro | 128 +++++++------ Qt/Core.pro | 476 ++++++++++++++++++++++++------------------------ Qt/Native.pro | 318 ++++++++++++++++---------------- Qt/PPSSPP.pro | 47 +++-- Qt/Settings.pri | 31 ++++ 5 files changed, 525 insertions(+), 475 deletions(-) create mode 100644 Qt/Settings.pri diff --git a/Qt/Common.pro b/Qt/Common.pro index 350da2f1ab..7817c8ab3e 100755 --- a/Qt/Common.pro +++ b/Qt/Common.pro @@ -4,65 +4,75 @@ TARGET = Common TEMPLATE = lib CONFIG += staticlib -blackberry: { - QMAKE_CC = ntoarmv7-gcc - QMAKE_CXX = ntoarmv7-g++ - DEFINES += "_QNX_SOURCE=1" "_C99=1" +include(Settings.pri) + +arm { + SOURCES += ../Common/ArmABI.cpp \ + ../Common/ArmEmitter.cpp \ + ../Common/ThunkARM.cpp + HEADERS += ../Common/ArmABI.h \ + ../Common/ArmEmitter.h +} +x86 { + SOURCES += ../Common/ABI.cpp \ + ../Common/CPUDetect.cpp \ + ../Common/MathUtil.cpp \ + ../Common/Thunk.cpp \ + ../Common/x64Analyzer.cpp \ + ../Common/x64Emitter.cpp + HEADERS += ../Common/ABI.h \ + ../Common/CPUDetect.h \ + ../Common/MathUtil.h \ + ../Common/Thunk.h \ + ../Common/x64Analyzer.h \ + ../Common/x64Emitter.h +} +win32 { + SOURCES += ../Common/stdafx.cpp + HEADERS += ../Common/stdafx.h } -SOURCES += ../Common/ArmABI.cpp \ - ../Common/ArmEmitter.cpp \ - ../Common/ThunkARM.cpp \ - ../Common/Action.cpp \ - ../Common/ColorUtil.cpp \ - ../Common/ConsoleListener.cpp \ - ../Common/Crypto/aes_cbc.cpp \ - ../Common/Crypto/aes_core.cpp \ - ../Common/Crypto/bn.cpp \ - ../Common/Crypto/ec.cpp \ - ../Common/Crypto/md5.cpp \ - ../Common/Crypto/sha1.cpp \ - ../Common/ExtendedTrace.cpp \ - ../Common/FPURoundModeGeneric.cpp \ - ../Common/FileSearch.cpp \ - ../Common/FileUtil.cpp \ - ../Common/Hash.cpp \ - ../Common/IniFile.cpp \ - ../Common/LogManager.cpp \ - ../Common/MemArena.cpp \ - ../Common/MemoryUtil.cpp \ - ../Common/Misc.cpp \ - ../Common/MathUtil.cpp \ - ../Common/MsgHandler.cpp \ - ../Common/StringUtil.cpp \ - ../Common/Thread.cpp \ - ../Common/Timer.cpp \ - ../Common/Version.cpp -HEADERS += ../Common/ArmABI.h \ - ../Common/ArmEmitter.h \ - ../Common/Action.h \ - ../Common/ColorUtil.h \ - ../Common/ConsoleListener.h \ - ../Common/Crypto/md5.h \ - ../Common/Crypto/sha1.h \ - ../Common/ExtendedTrace.h \ - ../Common/FileSearch.h \ - ../Common/FileUtil.h \ - ../Common/Hash.h \ - ../Common/IniFile.h \ - ../Common/LogManager.h \ - ../Common/MemArena.h \ - ../Common/MemoryUtil.h \ - ../Common/MathUtil.h \ - ../Common/MsgHandler.h \ - ../Common/StringUtil.h \ - ../Common/Thread.h \ - ../Common/Timer.h +SOURCES += ../Common/Action.cpp \ + ../Common/ColorUtil.cpp \ + ../Common/ConsoleListener.cpp \ + ../Common/Crypto/aes_cbc.cpp \ + ../Common/Crypto/aes_core.cpp \ + ../Common/Crypto/bn.cpp \ + ../Common/Crypto/ec.cpp \ + ../Common/Crypto/md5.cpp \ + ../Common/Crypto/sha1.cpp \ + ../Common/ExtendedTrace.cpp \ + ../Common/FPURoundModeGeneric.cpp \ + ../Common/FileSearch.cpp \ + ../Common/FileUtil.cpp \ + ../Common/Hash.cpp \ + ../Common/IniFile.cpp \ + ../Common/LogManager.cpp \ + ../Common/MemArena.cpp \ + ../Common/MemoryUtil.cpp \ + ../Common/Misc.cpp \ + ../Common/MathUtil.cpp \ + ../Common/MsgHandler.cpp \ + ../Common/StringUtil.cpp \ + ../Common/Thread.cpp \ + ../Common/Timer.cpp \ + ../Common/Version.cpp +HEADERS += ../Common/Action.h \ + ../Common/ColorUtil.h \ + ../Common/ConsoleListener.h \ + ../Common/Crypto/md5.h \ + ../Common/Crypto/sha1.h \ + ../Common/ExtendedTrace.h \ + ../Common/FileSearch.h \ + ../Common/FileUtil.h \ + ../Common/Hash.h \ + ../Common/IniFile.h \ + ../Common/LogManager.h \ + ../Common/MemArena.h \ + ../Common/MemoryUtil.h \ + ../Common/MathUtil.h \ + ../Common/MsgHandler.h \ + ../Common/StringUtil.h \ + ../Common/Thread.h \ + ../Common/Timer.h -QMAKE_CXXFLAGS += -std=c++0x -Wno-unused-function -Wno-unused-variable -Wno-multichar -Wno-uninitialized -Wno-ignored-qualifiers -Wno-missing-field-initializers -Wno-unused-parameter -DEFINES += ARM USING_GLES2 -blackberry: DEFINES += BLACKBERRY BLACKBERRY10 -symbian: { - QMAKE_CXXFLAGS += -march=armv6 -mfpu=vfp -mfloat-abi=softfp -marm -Wno-parentheses -Wno-comment - DEFINES += SYMBIAN -} diff --git a/Qt/Core.pro b/Qt/Core.pro index 95cefa9a4b..2a14f42b01 100755 --- a/Qt/Core.pro +++ b/Qt/Core.pro @@ -4,242 +4,250 @@ TARGET = Core TEMPLATE = lib CONFIG += staticlib -blackberry: { - QMAKE_CC = ntoarmv7-gcc - QMAKE_CXX = ntoarmv7-g++ - DEFINES += "_QNX_SOURCE=1" "_C99=1" -} +include(Settings.pri) INCLUDEPATH += ../native ../Common ../ -SOURCES += ../Core/MIPS/ARM/Asm.cpp \ #CoreARM - ../Core/MIPS/ARM/CompALU.cpp \ - ../Core/MIPS/ARM/CompBranch.cpp \ - ../Core/MIPS/ARM/CompFPU.cpp \ - ../Core/MIPS/ARM/CompLoadStore.cpp \ - ../Core/MIPS/ARM/CompVFPU.cpp \ - ../Core/MIPS/ARM/Jit.cpp \ - ../Core/MIPS/ARM/JitCache.cpp \ - ../Core/MIPS/ARM/RegCache.cpp \ - ../Core/CPU.cpp \ # Core - ../Core/Config.cpp \ - ../Core/Core.cpp \ - ../Core/CoreTiming.cpp \ - ../Core/Debugger/Breakpoints.cpp \ - ../Core/Debugger/SymbolMap.cpp \ - ../Core/Dialog/PSPDialog.cpp \ - ../Core/Dialog/PSPMsgDialog.cpp \ - ../Core/Dialog/PSPOskDialog.cpp \ - ../Core/Dialog/PSPPlaceholderDialog.cpp \ - ../Core/Dialog/PSPSaveDialog.cpp \ - ../Core/Dialog/SavedataParam.cpp \ - ../Core/ELF/ElfReader.cpp \ - ../Core/ELF/PrxDecrypter.cpp \ - ../Core/ELF/ParamSFO.cpp \ - ../Core/FileSystems/BlockDevices.cpp \ - ../Core/FileSystems/DirectoryFileSystem.cpp \ - ../Core/FileSystems/ISOFileSystem.cpp \ - ../Core/FileSystems/MetaFileSystem.cpp \ - ../Core/HLE/HLE.cpp \ - ../Core/HLE/HLETables.cpp \ - ../Core/HLE/__sceAudio.cpp \ - ../Core/HLE/sceAtrac.cpp \ - ../Core/HLE/sceAudio.cpp \ - ../Core/HLE/sceCtrl.cpp \ - ../Core/HLE/sceDisplay.cpp \ - ../Core/HLE/sceDmac.cpp \ - ../Core/HLE/sceGe.cpp \ - ../Core/HLE/sceFont.cpp \ - ../Core/HLE/sceHprm.cpp \ - ../Core/HLE/sceHttp.cpp \ - ../Core/HLE/sceImpose.cpp \ - ../Core/HLE/sceIo.cpp \ - ../Core/HLE/sceKernel.cpp \ - ../Core/HLE/sceKernelAlarm.cpp \ - ../Core/HLE/sceKernelEventFlag.cpp \ - ../Core/HLE/sceKernelInterrupt.cpp \ - ../Core/HLE/sceKernelMbx.cpp \ - ../Core/HLE/sceKernelMemory.cpp \ - ../Core/HLE/sceKernelModule.cpp \ - ../Core/HLE/sceKernelMsgPipe.cpp \ - ../Core/HLE/sceKernelMutex.cpp \ - ../Core/HLE/sceKernelSemaphore.cpp \ - ../Core/HLE/sceKernelThread.cpp \ - ../Core/HLE/sceKernelThread.h \ - ../Core/HLE/sceKernelTime.cpp \ - ../Core/HLE/sceKernelVTimer.cpp \ - ../Core/HLE/sceMpeg.cpp \ - ../Core/HLE/sceNet.cpp \ - ../Core/HLE/sceOpenPSID.cpp \ - ../Core/HLE/sceParseHttp.cpp \ - ../Core/HLE/sceParseUri.cpp \ - ../Core/HLE/scePower.cpp \ - ../Core/HLE/scePsmf.cpp \ - ../Core/HLE/sceRtc.cpp \ - ../Core/HLE/sceSas.cpp \ - ../Core/HLE/sceSsl.cpp \ - ../Core/HLE/scesupPreAcc.cpp \ - ../Core/HLE/sceUmd.cpp \ - ../Core/HLE/sceUsb.cpp \ - ../Core/HLE/sceUtility.cpp \ - ../Core/HLE/sceVaudio.cpp \ - ../Core/HW/MemoryStick.cpp \ - ../Core/HW/SasAudio.cpp \ - ../Core/Host.cpp \ - ../Core/Loaders.cpp \ - ../Core/MIPS/JitCommon/JitCommon.cpp \ - ../Core/MIPS/MIPS.cpp \ - ../Core/MIPS/MIPSAnalyst.cpp \ - ../Core/MIPS/MIPSCodeUtils.cpp \ - ../Core/MIPS/MIPSDebugInterface.cpp \ - ../Core/MIPS/MIPSDis.cpp \ - ../Core/MIPS/MIPSDisVFPU.cpp \ - ../Core/MIPS/MIPSInt.cpp \ - ../Core/MIPS/MIPSIntVFPU.cpp \ - ../Core/MIPS/MIPSTables.cpp \ - ../Core/MIPS/MIPSVFPUUtils.cpp \ - ../Core/MemMap.cpp \ - ../Core/MemMapFunctions.cpp \ - ../Core/PSPLoaders.cpp \ - ../Core/PSPMixer.cpp \ - ../Core/System.cpp \ - ../Core/Util/BlockAllocator.cpp \ - ../Core/Util/PPGeDraw.cpp \ - ../Core/Util/ppge_atlas.cpp \ # GPU - ../GPU/GLES/DisplayListInterpreter.cpp \ - ../GPU/GLES/FragmentShaderGenerator.cpp \ - ../GPU/GLES/Framebuffer.cpp \ - ../GPU/GLES/IndexGenerator.cpp \ - ../GPU/GLES/ShaderManager.cpp \ - ../GPU/GLES/StateMapping.cpp \ - ../GPU/GLES/TextureCache.cpp \ - ../GPU/GLES/TransformPipeline.cpp \ - ../GPU/GLES/VertexDecoder.cpp \ - ../GPU/GLES/VertexShaderGenerator.cpp \ - ../GPU/GPUState.cpp \ - ../GPU/Math3D.cpp \ - ../GPU/Null/NullGpu.cpp \ # Kirk - ../ext/libkirk/AES.c \ - ../ext/libkirk/SHA1.c \ - ../ext/libkirk/bn.c \ - ../ext/libkirk/ec.c \ - ../ext/libkirk/kirk_engine.c +arm { + SOURCES += ../Core/MIPS/ARM/Asm.cpp \ #CoreARM + ../Core/MIPS/ARM/CompALU.cpp \ + ../Core/MIPS/ARM/CompBranch.cpp \ + ../Core/MIPS/ARM/CompFPU.cpp \ + ../Core/MIPS/ARM/CompLoadStore.cpp \ + ../Core/MIPS/ARM/CompVFPU.cpp \ + ../Core/MIPS/ARM/Jit.cpp \ + ../Core/MIPS/ARM/JitCache.cpp \ + ../Core/MIPS/ARM/RegCache.cpp -HEADERS += ../Core/MIPS/ARM/Asm.h \ - ../Core/MIPS/ARM/Jit.h \ - ../Core/MIPS/ARM/JitCache.h \ - ../Core/MIPS/ARM/RegCache.h \ - ../Core/CPU.h \ - ../Core/Config.h \ - ../Core/Core.h \ - ../Core/CoreParameter.h \ - ../Core/CoreTiming.h \ - ../Core/Debugger/Breakpoints.h \ - ../Core/Debugger/DebugInterface.h \ - ../Core/Debugger/SymbolMap.h \ - ../Core/Dialog/PSPDialog.h \ - ../Core/Dialog/PSPMsgDialog.h \ - ../Core/Dialog/PSPOskDialog.h \ - ../Core/Dialog/PSPPlaceholderDialog.h \ - ../Core/Dialog/PSPSaveDialog.h \ - ../Core/Dialog/SavedataParam.h \ - ../Core/ELF/ElfReader.h \ - ../Core/ELF/ElfTypes.h \ - ../Core/ELF/PrxDecrypter.h \ - ../Core/ELF/ParamSFO.h \ - ../Core/FileSystems/BlockDevices.h \ - ../Core/FileSystems/DirectoryFileSystem.h \ - ../Core/FileSystems/FileSystem.h \ - ../Core/FileSystems/ISOFileSystem.h \ - ../Core/FileSystems/MetaFileSystem.h \ - ../Core/HLE/FunctionWrappers.h \ - ../Core/HLE/HLE.h \ - ../Core/HLE/HLETables.h \ - ../Core/HLE/__sceAudio.h \ - ../Core/HLE/sceAtrac.h \ - ../Core/HLE/sceAudio.h \ - ../Core/HLE/sceCtrl.h \ - ../Core/HLE/sceDisplay.h \ - ../Core/HLE/sceDmac.h \ - ../Core/HLE/sceGe.h \ - ../Core/HLE/sceFont.h \ - ../Core/HLE/sceHprm.h \ - ../Core/HLE/sceHttp.h \ - ../Core/HLE/sceImpose.h \ - ../Core/HLE/sceIo.h \ - ../Core/HLE/sceKernel.h \ - ../Core/HLE/sceKernelAlarm.h \ - ../Core/HLE/sceKernelEventFlag.h \ - ../Core/HLE/sceKernelInterrupt.h \ - ../Core/HLE/sceKernelMbx.h \ - ../Core/HLE/sceKernelMemory.h \ - ../Core/HLE/sceKernelModule.h \ - ../Core/HLE/sceKernelMsgPipe.h \ - ../Core/HLE/sceKernelMutex.h \ - ../Core/HLE/sceKernelSemaphore.h \ - ../Core/HLE/sceMpeg.h \ - ../Core/HLE/sceNet.h \ - ../Core/HLE/sceOpenPSID.h \ - ../Core/HLE/sceParseHttp.h \ - ../Core/HLE/sceParseUri.h \ - ../Core/HLE/scePower.h \ - ../Core/HLE/scePsmf.h \ - ../Core/HLE/sceRtc.h \ - ../Core/HLE/sceSas.h \ - ../Core/HLE/sceSsl.h \ - ../Core/HLE/scesupPreAcc.h \ - ../Core/HLE/sceUmd.h \ - ../Core/HLE/sceUsb.h \ - ../Core/HLE/sceUtility.h \ - ../Core/HLE/sceVaudio.h \ - ../Core/HW/MemoryStick.h \ - ../Core/HW/SasAudio.h \ - ../Core/Host.h \ - ../Core/Loaders.h \ - ../Core/MIPS/JitCommon/JitCommon.h \ - ../Core/MIPS/MIPS.h \ - ../Core/MIPS/MIPSAnalyst.h \ - ../Core/HLE/sceKernelTime.h \ - ../Core/HLE/sceKernelVTimer.h \ - ../Core/MIPS/MIPSCodeUtils.h \ - ../Core/MIPS/MIPSDebugInterface.h \ - ../Core/MIPS/MIPSDis.h \ - ../Core/MIPS/MIPSDisVFPU.h \ - ../Core/MIPS/MIPSInt.h \ - ../Core/MIPS/MIPSIntVFPU.h \ - ../Core/MIPS/MIPSTables.h \ - ../Core/MIPS/MIPSVFPUUtils.h \ - ../Core/MemMap.h \ - ../Core/PSPLoaders.h \ - ../Core/PSPMixer.h \ - ../Core/System.h \ - ../Core/Util/BlockAllocator.h \ - ../Core/Util/PPGeDraw.h \ - ../Core/Util/Pool.h \ - ../Core/Util/ppge_atlas.h \ - ../GPU/GLES/DisplayListInterpreter.h \ - ../GPU/GLES/FragmentShaderGenerator.h \ - ../GPU/GLES/Framebuffer.h \ - ../GPU/GLES/IndexGenerator.h \ - ../GPU/GLES/ShaderManager.h \ - ../GPU/GLES/StateMapping.h \ - ../GPU/GLES/TextureCache.h \ - ../GPU/GLES/TransformPipeline.h \ - ../GPU/GLES/VertexDecoder.h \ - ../GPU/GLES/VertexShaderGenerator.h \ - ../GPU/GPUInterface.h \ - ../GPU/GPUState.h \ - ../GPU/Math3D.h \ - ../GPU/Null/NullGpu.h \ - ../GPU/ge_constants.h \ - ../ext/libkirk/AES.h \ - ../ext/libkirk/SHA1.h \ - ../ext/libkirk/kirk_engine.h - -QMAKE_CXXFLAGS += -std=c++0x -Wno-unused-function -Wno-unused-variable -Wno-multichar -Wno-uninitialized -Wno-ignored-qualifiers -Wno-missing-field-initializers -Wno-unused-parameter -DEFINES += ARM USING_GLES2 -blackberry: DEFINES += BLACKBERRY BLACKBERRY10 -symbian: { - QMAKE_CXXFLAGS += -march=armv6 -mfpu=vfp -mfloat-abi=softfp -marm -Wno-parentheses -Wno-comment - DEFINES += SYMBIAN + HEADERS += ../Core/MIPS/ARM/Asm.h \ + ../Core/MIPS/ARM/Jit.h \ + ../Core/MIPS/ARM/JitCache.h \ + ../Core/MIPS/ARM/RegCache.h } +x86 { + SOURCES += ../Core/MIPS/x86/Asm.cpp \ + ../Core/MIPS/x86/CompALU.cpp \ + ../Core/MIPS/x86/CompBranch.cpp \ + ../Core/MIPS/x86/CompFPU.cpp \ + ../Core/MIPS/x86/CompLoadStore.cpp \ + ../Core/MIPS/x86/CompVFPU.cpp \ + ../Core/MIPS/x86/Jit.cpp \ + ../Core/MIPS/x86/JitCache.cpp \ + ../Core/MIPS/x86/RegCache.cpp + HEADERS += ../Core/MIPS/x86/Asm.h \ + ../Core/MIPS/x86/Jit.h \ + ../Core/MIPS/x86/JitCache.h \ + ../Core/MIPS/x86/RegCache.h +} + +SOURCES += ../Core/CPU.cpp \ # Core + ../Core/Config.cpp \ + ../Core/Core.cpp \ + ../Core/CoreTiming.cpp \ + ../Core/Debugger/Breakpoints.cpp \ + ../Core/Debugger/SymbolMap.cpp \ + ../Core/Dialog/PSPDialog.cpp \ + ../Core/Dialog/PSPMsgDialog.cpp \ + ../Core/Dialog/PSPOskDialog.cpp \ + ../Core/Dialog/PSPPlaceholderDialog.cpp \ + ../Core/Dialog/PSPSaveDialog.cpp \ + ../Core/Dialog/SavedataParam.cpp \ + ../Core/ELF/ElfReader.cpp \ + ../Core/ELF/PrxDecrypter.cpp \ + ../Core/ELF/ParamSFO.cpp \ + ../Core/FileSystems/BlockDevices.cpp \ + ../Core/FileSystems/DirectoryFileSystem.cpp \ + ../Core/FileSystems/ISOFileSystem.cpp \ + ../Core/FileSystems/MetaFileSystem.cpp \ + ../Core/HLE/HLE.cpp \ + ../Core/HLE/HLETables.cpp \ + ../Core/HLE/__sceAudio.cpp \ + ../Core/HLE/sceAtrac.cpp \ + ../Core/HLE/sceAudio.cpp \ + ../Core/HLE/sceCtrl.cpp \ + ../Core/HLE/sceDisplay.cpp \ + ../Core/HLE/sceDmac.cpp \ + ../Core/HLE/sceGe.cpp \ + ../Core/HLE/sceFont.cpp \ + ../Core/HLE/sceHprm.cpp \ + ../Core/HLE/sceHttp.cpp \ + ../Core/HLE/sceImpose.cpp \ + ../Core/HLE/sceIo.cpp \ + ../Core/HLE/sceKernel.cpp \ + ../Core/HLE/sceKernelAlarm.cpp \ + ../Core/HLE/sceKernelEventFlag.cpp \ + ../Core/HLE/sceKernelInterrupt.cpp \ + ../Core/HLE/sceKernelMbx.cpp \ + ../Core/HLE/sceKernelMemory.cpp \ + ../Core/HLE/sceKernelModule.cpp \ + ../Core/HLE/sceKernelMsgPipe.cpp \ + ../Core/HLE/sceKernelMutex.cpp \ + ../Core/HLE/sceKernelSemaphore.cpp \ + ../Core/HLE/sceKernelThread.cpp \ + ../Core/HLE/sceKernelThread.h \ + ../Core/HLE/sceKernelTime.cpp \ + ../Core/HLE/sceKernelVTimer.cpp \ + ../Core/HLE/sceMpeg.cpp \ + ../Core/HLE/sceNet.cpp \ + ../Core/HLE/sceOpenPSID.cpp \ + ../Core/HLE/sceParseHttp.cpp \ + ../Core/HLE/sceParseUri.cpp \ + ../Core/HLE/scePower.cpp \ + ../Core/HLE/scePsmf.cpp \ + ../Core/HLE/sceRtc.cpp \ + ../Core/HLE/sceSas.cpp \ + ../Core/HLE/sceSsl.cpp \ + ../Core/HLE/scesupPreAcc.cpp \ + ../Core/HLE/sceUmd.cpp \ + ../Core/HLE/sceUsb.cpp \ + ../Core/HLE/sceUtility.cpp \ + ../Core/HLE/sceVaudio.cpp \ + ../Core/HW/MemoryStick.cpp \ + ../Core/HW/SasAudio.cpp \ + ../Core/Host.cpp \ + ../Core/Loaders.cpp \ + ../Core/MIPS/JitCommon/JitCommon.cpp \ + ../Core/MIPS/MIPS.cpp \ + ../Core/MIPS/MIPSAnalyst.cpp \ + ../Core/MIPS/MIPSCodeUtils.cpp \ + ../Core/MIPS/MIPSDebugInterface.cpp \ + ../Core/MIPS/MIPSDis.cpp \ + ../Core/MIPS/MIPSDisVFPU.cpp \ + ../Core/MIPS/MIPSInt.cpp \ + ../Core/MIPS/MIPSIntVFPU.cpp \ + ../Core/MIPS/MIPSTables.cpp \ + ../Core/MIPS/MIPSVFPUUtils.cpp \ + ../Core/MemMap.cpp \ + ../Core/MemMapFunctions.cpp \ + ../Core/PSPLoaders.cpp \ + ../Core/PSPMixer.cpp \ + ../Core/System.cpp \ + ../Core/Util/BlockAllocator.cpp \ + ../Core/Util/PPGeDraw.cpp \ + ../Core/Util/ppge_atlas.cpp \ # GPU + ../GPU/GLES/DisplayListInterpreter.cpp \ + ../GPU/GLES/FragmentShaderGenerator.cpp \ + ../GPU/GLES/Framebuffer.cpp \ + ../GPU/GLES/IndexGenerator.cpp \ + ../GPU/GLES/ShaderManager.cpp \ + ../GPU/GLES/StateMapping.cpp \ + ../GPU/GLES/TextureCache.cpp \ + ../GPU/GLES/TransformPipeline.cpp \ + ../GPU/GLES/VertexDecoder.cpp \ + ../GPU/GLES/VertexShaderGenerator.cpp \ + ../GPU/GPUState.cpp \ + ../GPU/Math3D.cpp \ + ../GPU/Null/NullGpu.cpp \ # Kirk + ../ext/libkirk/AES.c \ + ../ext/libkirk/SHA1.c \ + ../ext/libkirk/bn.c \ + ../ext/libkirk/ec.c \ + ../ext/libkirk/kirk_engine.c + +HEADERS += ../Core/CPU.h \ + ../Core/Config.h \ + ../Core/Core.h \ + ../Core/CoreParameter.h \ + ../Core/CoreTiming.h \ + ../Core/Debugger/Breakpoints.h \ + ../Core/Debugger/DebugInterface.h \ + ../Core/Debugger/SymbolMap.h \ + ../Core/Dialog/PSPDialog.h \ + ../Core/Dialog/PSPMsgDialog.h \ + ../Core/Dialog/PSPOskDialog.h \ + ../Core/Dialog/PSPPlaceholderDialog.h \ + ../Core/Dialog/PSPSaveDialog.h \ + ../Core/Dialog/SavedataParam.h \ + ../Core/ELF/ElfReader.h \ + ../Core/ELF/ElfTypes.h \ + ../Core/ELF/PrxDecrypter.h \ + ../Core/ELF/ParamSFO.h \ + ../Core/FileSystems/BlockDevices.h \ + ../Core/FileSystems/DirectoryFileSystem.h \ + ../Core/FileSystems/FileSystem.h \ + ../Core/FileSystems/ISOFileSystem.h \ + ../Core/FileSystems/MetaFileSystem.h \ + ../Core/HLE/FunctionWrappers.h \ + ../Core/HLE/HLE.h \ + ../Core/HLE/HLETables.h \ + ../Core/HLE/__sceAudio.h \ + ../Core/HLE/sceAtrac.h \ + ../Core/HLE/sceAudio.h \ + ../Core/HLE/sceCtrl.h \ + ../Core/HLE/sceDisplay.h \ + ../Core/HLE/sceDmac.h \ + ../Core/HLE/sceGe.h \ + ../Core/HLE/sceFont.h \ + ../Core/HLE/sceHprm.h \ + ../Core/HLE/sceHttp.h \ + ../Core/HLE/sceImpose.h \ + ../Core/HLE/sceIo.h \ + ../Core/HLE/sceKernel.h \ + ../Core/HLE/sceKernelAlarm.h \ + ../Core/HLE/sceKernelEventFlag.h \ + ../Core/HLE/sceKernelInterrupt.h \ + ../Core/HLE/sceKernelMbx.h \ + ../Core/HLE/sceKernelMemory.h \ + ../Core/HLE/sceKernelModule.h \ + ../Core/HLE/sceKernelMsgPipe.h \ + ../Core/HLE/sceKernelMutex.h \ + ../Core/HLE/sceKernelSemaphore.h \ + ../Core/HLE/sceMpeg.h \ + ../Core/HLE/sceNet.h \ + ../Core/HLE/sceOpenPSID.h \ + ../Core/HLE/sceParseHttp.h \ + ../Core/HLE/sceParseUri.h \ + ../Core/HLE/scePower.h \ + ../Core/HLE/scePsmf.h \ + ../Core/HLE/sceRtc.h \ + ../Core/HLE/sceSas.h \ + ../Core/HLE/sceSsl.h \ + ../Core/HLE/scesupPreAcc.h \ + ../Core/HLE/sceUmd.h \ + ../Core/HLE/sceUsb.h \ + ../Core/HLE/sceUtility.h \ + ../Core/HLE/sceVaudio.h \ + ../Core/HW/MemoryStick.h \ + ../Core/HW/SasAudio.h \ + ../Core/Host.h \ + ../Core/Loaders.h \ + ../Core/MIPS/JitCommon/JitCommon.h \ + ../Core/MIPS/MIPS.h \ + ../Core/MIPS/MIPSAnalyst.h \ + ../Core/HLE/sceKernelTime.h \ + ../Core/HLE/sceKernelVTimer.h \ + ../Core/MIPS/MIPSCodeUtils.h \ + ../Core/MIPS/MIPSDebugInterface.h \ + ../Core/MIPS/MIPSDis.h \ + ../Core/MIPS/MIPSDisVFPU.h \ + ../Core/MIPS/MIPSInt.h \ + ../Core/MIPS/MIPSIntVFPU.h \ + ../Core/MIPS/MIPSTables.h \ + ../Core/MIPS/MIPSVFPUUtils.h \ + ../Core/MemMap.h \ + ../Core/PSPLoaders.h \ + ../Core/PSPMixer.h \ + ../Core/System.h \ + ../Core/Util/BlockAllocator.h \ + ../Core/Util/PPGeDraw.h \ + ../Core/Util/Pool.h \ + ../Core/Util/ppge_atlas.h \ + ../GPU/GLES/DisplayListInterpreter.h \ + ../GPU/GLES/FragmentShaderGenerator.h \ + ../GPU/GLES/Framebuffer.h \ + ../GPU/GLES/IndexGenerator.h \ + ../GPU/GLES/ShaderManager.h \ + ../GPU/GLES/StateMapping.h \ + ../GPU/GLES/TextureCache.h \ + ../GPU/GLES/TransformPipeline.h \ + ../GPU/GLES/VertexDecoder.h \ + ../GPU/GLES/VertexShaderGenerator.h \ + ../GPU/GPUInterface.h \ + ../GPU/GPUState.h \ + ../GPU/Math3D.h \ + ../GPU/Null/NullGpu.h \ + ../GPU/ge_constants.h \ + ../ext/libkirk/AES.h \ + ../ext/libkirk/SHA1.h \ + ../ext/libkirk/kirk_engine.h + diff --git a/Qt/Native.pro b/Qt/Native.pro index 1ad7bf8d4e..a5916b80cb 100755 --- a/Qt/Native.pro +++ b/Qt/Native.pro @@ -4,20 +4,30 @@ TARGET = Native TEMPLATE = lib CONFIG += staticlib -blackberry: { - QMAKE_CC = ntoarmv7-gcc - QMAKE_CXX = ntoarmv7-g++ - DEFINES += "_QNX_SOURCE=1" "_C99=1" +include(Settings.pri) + +!mobile_platform: { + SOURCES += ../native/ext/glew/glew.c + HEADERS += ../native/ext/glew/GL/glew.h \ + ../native/ext/glew/GL/glxew.h \ + ../native/ext/glew/GL/wglew.h + INCLUDEPATH += ../native/ext/glew +} + +# Backtrace +x86:!mobile_platform: { + SOURCES += ../native/base/backtrace.cpp + HEADERS += ../native/base/backtrace.h } # EtcPack SOURCES += ../native/ext/etcpack/etcdec.cpp \ - ../native/ext/etcpack/etcpack.cpp \ - ../native/ext/etcpack/image.cpp + ../native/ext/etcpack/etcpack.cpp \ + ../native/ext/etcpack/image.cpp HEADERS += ../native/ext/etcpack/etcdec.h \ - ../native/ext/etcpack/etcpack.h \ - ../native/ext/etcpack/image.h + ../native/ext/etcpack/etcpack.h \ + ../native/ext/etcpack/image.h INCLUDEPATH += ../native/ext/etcpack # Stb_image @@ -32,163 +42,155 @@ SOURCES += ../native/ext/stb_vorbis/stb_vorbis.c HEADERS += ../native/ext/stb_vorbis/stb_vorbis.h INCLUDEPATH += ../native/ext/stb_vorbis -!symbian: { # Zlib - -SOURCES += ../ext/zlib/adler32.c \ - ../ext/zlib/compress.c \ - ../ext/zlib/crc32.c \ - ../ext/zlib/deflate.c \ - ../ext/zlib/gzclose.c \ - ../ext/zlib/gzlib.c \ - ../ext/zlib/gzread.c \ - ../ext/zlib/gzwrite.c \ - ../ext/zlib/infback.c \ - ../ext/zlib/inffast.c \ - ../ext/zlib/inflate.c \ - ../ext/zlib/inflate.h \ - ../ext/zlib/inftrees.c \ - ../ext/zlib/trees.c \ - ../ext/zlib/uncompr.c \ - ../ext/zlib/zutil.c -HEADERS += ../ext/zlib/crc32.h \ - ../ext/zlib/deflate.h \ - ../ext/zlib/gzguts.h \ - ../ext/zlib/inffast.h \ - ../ext/zlib/inffixed.h \ - ../ext/zlib/inftrees.h \ - ../ext/zlib/trees.h \ - ../ext/zlib/zconf.h \ - ../ext/zlib/zlib.h \ - ../ext/zlib/zutil.h -INCLUDEPATH += ../ext/zlib +!symbian: { + SOURCES += ../ext/zlib/adler32.c \ + ../ext/zlib/compress.c \ + ../ext/zlib/crc32.c \ + ../ext/zlib/deflate.c \ + ../ext/zlib/gzclose.c \ + ../ext/zlib/gzlib.c \ + ../ext/zlib/gzread.c \ + ../ext/zlib/gzwrite.c \ + ../ext/zlib/infback.c \ + ../ext/zlib/inffast.c \ + ../ext/zlib/inflate.c \ + ../ext/zlib/inflate.h \ + ../ext/zlib/inftrees.c \ + ../ext/zlib/trees.c \ + ../ext/zlib/uncompr.c \ + ../ext/zlib/zutil.c + HEADERS += ../ext/zlib/crc32.h \ + ../ext/zlib/deflate.h \ + ../ext/zlib/gzguts.h \ + ../ext/zlib/inffast.h \ + ../ext/zlib/inffixed.h \ + ../ext/zlib/inftrees.h \ + ../ext/zlib/trees.h \ + ../ext/zlib/zconf.h \ + ../ext/zlib/zlib.h \ + ../ext/zlib/zutil.h + INCLUDEPATH += ../ext/zlib } # Native SOURCES += ../native/audio/mixer.cpp \ - ../native/audio/wav_read.cpp \ - ../native/base/buffer.cpp \ - ../native/base/colorutil.cpp \ - ../native/base/display.cpp \ - ../native/base/error_context.cpp \ - ../native/base/fastlist_test.cpp \ - ../native/base/stringutil.cpp \ - ../native/base/threadutil.cpp \ - ../native/base/timeutil.cpp \ - ../native/file/chunk_file.cpp \ - ../native/file/dialog.cpp \ - ../native/file/easy_file.cpp \ - ../native/file/fd_util.cpp \ - ../native/file/file_util.cpp \ - ../native/file/zip_read.cpp \ - ../native/gfx/gl_debug_log.cpp \ - ../native/gfx/gl_lost_manager.cpp \ - ../native/gfx/texture.cpp \ - ../native/gfx/texture_atlas.cpp \ - ../native/gfx/texture_gen.cpp \ - ../native/gfx_es2/draw_buffer.cpp \ - ../native/gfx_es2/fbo.cpp \ - ../native/gfx_es2/gl_state.cpp \ - ../native/gfx_es2/glsl_program.cpp \ - ../native/gfx_es2/vertex_format.cpp \ - ../native/image/png_load.cpp \ - ../native/image/zim_load.cpp \ - ../native/image/zim_save.cpp \ - ../native/input/gesture_detector.cpp \ - ../native/json/json_writer.cpp \ - ../native/math/curves.cpp \ - ../native/math/lin/aabb.cpp \ - ../native/math/lin/matrix4x4.cpp \ - ../native/math/lin/plane.cpp \ - ../native/math/lin/quat.cpp \ - ../native/math/lin/vec3.cpp \ - ../native/math/math_util.cpp \ - ../native/midi/midi_input.cpp \ - ../native/net/http_client.cpp \ - ../native/net/resolve.cpp \ - ../native/profiler/profiler.cpp \ - ../native/ui/screen.cpp \ - ../native/ui/ui.cpp \ - ../native/ui/virtual_input.cpp \ - ../native/util/bits/bits.cpp \ - ../native/util/bits/varint.cpp \ - ../native/util/hash/hash.cpp \ - ../native/util/random/perlin.cpp + ../native/audio/wav_read.cpp \ + ../native/base/buffer.cpp \ + ../native/base/colorutil.cpp \ + ../native/base/display.cpp \ + ../native/base/error_context.cpp \ + ../native/base/fastlist_test.cpp \ + ../native/base/stringutil.cpp \ + ../native/base/threadutil.cpp \ + ../native/base/timeutil.cpp \ + ../native/file/chunk_file.cpp \ + ../native/file/dialog.cpp \ + ../native/file/easy_file.cpp \ + ../native/file/fd_util.cpp \ + ../native/file/file_util.cpp \ + ../native/file/zip_read.cpp \ + ../native/gfx/gl_debug_log.cpp \ + ../native/gfx/gl_lost_manager.cpp \ + ../native/gfx/texture.cpp \ + ../native/gfx/texture_atlas.cpp \ + ../native/gfx/texture_gen.cpp \ + ../native/gfx_es2/draw_buffer.cpp \ + ../native/gfx_es2/fbo.cpp \ + ../native/gfx_es2/gl_state.cpp \ + ../native/gfx_es2/glsl_program.cpp \ + ../native/gfx_es2/vertex_format.cpp \ + ../native/image/png_load.cpp \ + ../native/image/zim_load.cpp \ + ../native/image/zim_save.cpp \ + ../native/input/gesture_detector.cpp \ + ../native/json/json_writer.cpp \ + ../native/math/curves.cpp \ + ../native/math/lin/aabb.cpp \ + ../native/math/lin/matrix4x4.cpp \ + ../native/math/lin/plane.cpp \ + ../native/math/lin/quat.cpp \ + ../native/math/lin/vec3.cpp \ + ../native/math/math_util.cpp \ + ../native/midi/midi_input.cpp \ + ../native/net/http_client.cpp \ + ../native/net/resolve.cpp \ + ../native/profiler/profiler.cpp \ + ../native/ui/screen.cpp \ + ../native/ui/ui.cpp \ + ../native/ui/virtual_input.cpp \ + ../native/util/bits/bits.cpp \ + ../native/util/bits/varint.cpp \ + ../native/util/hash/hash.cpp \ + ../native/util/random/perlin.cpp HEADERS += ../native/audio/mixer.h \ - ../native/audio/wav_read.h \ - ../native/base/basictypes.h \ - ../native/base/buffer.h \ - ../native/base/color.h \ - ../native/base/colorutil.h \ - ../native/base/display.h \ - ../native/base/error_context.h \ - ../native/base/fastlist.h \ - ../native/base/linked_ptr.h \ - ../native/base/logging.h \ - ../native/base/mutex.h \ - ../native/base/scoped_ptr.h \ - ../native/base/stats.h \ - ../native/base/stringutil.h \ - ../native/base/threadutil.h \ - ../native/base/timeutil.h \ - ../native/file/chunk_file.h \ - ../native/file/dialog.h \ - ../native/file/easy_file.h \ - ../native/file/fd_util.h \ - ../native/file/file_util.h \ - ../native/file/vfs.h \ - ../native/file/zip_read.h \ - ../native/gfx/gl_debug_log.h \ - ../native/gfx/gl_lost_manager.h \ - ../native/gfx/texture.h \ - ../native/gfx/texture_atlas.h \ - ../native/gfx/texture_gen.h \ - ../native/gfx_es2/fbo.h \ - ../native/gfx_es2/gl_state.h \ - ../native/gfx_es2/glsl_program.h \ - ../native/gfx_es2/vertex_format.h \ - ../native/gfx_es2/draw_buffer.h \ - ../native/image/png_load.h \ - ../native/image/zim_load.h \ - ../native/image/zim_save.h \ - ../native/input/gesture_detector.h \ - ../native/input/input_state.h \ - ../native/json/json_writer.h \ - ../native/math/compression.h \ - ../native/math/curves.h \ - ../native/math/lin/aabb.h \ - ../native/math/lin/matrix4x4.h \ - ../native/math/lin/plane.h \ - ../native/math/lin/quat.h \ - ../native/math/lin/ray.h \ - ../native/math/lin/vec3.h \ - ../native/math/math_util.h \ - ../native/midi/midi_input.h \ - ../native/net/http_client.h \ - ../native/net/resolve.h \ - ../native/ui/ui.h \ - ../native/profiler/profiler.h \ - ../native/ui/screen.h \ - ../native/ui/virtual_input.h \ - ../native/util/bits/bits.h \ - ../native/util/bits/hamming.h \ - ../native/util/bits/varint.h \ - ../native/util/hash/hash.h \ - ../native/util/random/perlin.h \ - ../native/util/random/rng.h \ - ../native/ext/rapidxml/rapidxml.hpp \ - ../native/ext/rapidxml/rapidxml_iterators.hpp \ - ../native/ext/rapidxml/rapidxml_print.hpp \ - ../native/ext/rapidxml/rapidxml_utils.hpp -INCLUDEPATH+= ../native + ../native/audio/wav_read.h \ + ../native/base/basictypes.h \ + ../native/base/buffer.h \ + ../native/base/color.h \ + ../native/base/colorutil.h \ + ../native/base/display.h \ + ../native/base/error_context.h \ + ../native/base/fastlist.h \ + ../native/base/linked_ptr.h \ + ../native/base/logging.h \ + ../native/base/mutex.h \ + ../native/base/scoped_ptr.h \ + ../native/base/stats.h \ + ../native/base/stringutil.h \ + ../native/base/threadutil.h \ + ../native/base/timeutil.h \ + ../native/file/chunk_file.h \ + ../native/file/dialog.h \ + ../native/file/easy_file.h \ + ../native/file/fd_util.h \ + ../native/file/file_util.h \ + ../native/file/vfs.h \ + ../native/file/zip_read.h \ + ../native/gfx/gl_debug_log.h \ + ../native/gfx/gl_lost_manager.h \ + ../native/gfx/texture.h \ + ../native/gfx/texture_atlas.h \ + ../native/gfx/texture_gen.h \ + ../native/gfx_es2/fbo.h \ + ../native/gfx_es2/gl_state.h \ + ../native/gfx_es2/glsl_program.h \ + ../native/gfx_es2/vertex_format.h \ + ../native/gfx_es2/draw_buffer.h \ + ../native/image/png_load.h \ + ../native/image/zim_load.h \ + ../native/image/zim_save.h \ + ../native/input/gesture_detector.h \ + ../native/input/input_state.h \ + ../native/json/json_writer.h \ + ../native/math/compression.h \ + ../native/math/curves.h \ + ../native/math/lin/aabb.h \ + ../native/math/lin/matrix4x4.h \ + ../native/math/lin/plane.h \ + ../native/math/lin/quat.h \ + ../native/math/lin/ray.h \ + ../native/math/lin/vec3.h \ + ../native/math/math_util.h \ + ../native/midi/midi_input.h \ + ../native/net/http_client.h \ + ../native/net/resolve.h \ + ../native/ui/ui.h \ + ../native/profiler/profiler.h \ + ../native/ui/screen.h \ + ../native/ui/virtual_input.h \ + ../native/util/bits/bits.h \ + ../native/util/bits/hamming.h \ + ../native/util/bits/varint.h \ + ../native/util/hash/hash.h \ + ../native/util/random/perlin.h \ + ../native/util/random/rng.h \ + ../native/ext/rapidxml/rapidxml.hpp \ + ../native/ext/rapidxml/rapidxml_iterators.hpp \ + ../native/ext/rapidxml/rapidxml_print.hpp \ + ../native/ext/rapidxml/rapidxml_utils.hpp +INCLUDEPATH += ../native -QMAKE_CXXFLAGS += -std=c++0x -Wno-unused-function -Wno-unused-variable -Wno-multichar -Wno-uninitialized -Wno-ignored-qualifiers -Wno-missing-field-initializers -Wno-unused-parameter -DEFINES += ARM USING_GLES2 -blackberry: DEFINES += BLACKBERRY BLACKBERRY10 -symbian: { - QMAKE_CXXFLAGS += -march=armv6 -mfpu=vfp -mfloat-abi=softfp -marm -Wno-parentheses -Wno-comment - DEFINES += SYMBIAN -} diff --git a/Qt/PPSSPP.pro b/Qt/PPSSPP.pro index b958d46f76..3050a025f7 100755 --- a/Qt/PPSSPP.pro +++ b/Qt/PPSSPP.pro @@ -1,41 +1,40 @@ TARGET = PPSSPPQt -QT += core gui opengl multimedia +QT += core gui opengl -symbian: { - LIBS += -lCore.lib -lCommon.lib -lNative.lib -lcone -leikcore -lavkon -lezlib - CONFIG += 4.6.3 +include(Settings.pri) +linux { + CONFIG += mobility + MOBILITY += multimedia } -# They try to force QCC with all mkspecs -# QCC is 4.4.1, we need 4.6.3 -blackberry: { - QMAKE_CC = ntoarmv7-gcc - QMAKE_CXX = ntoarmv7-g++ - DEFINES += "_QNX_SOURCE=1" "_C99=1" - LIBS += -L. -lCore -lCommon -lNative -lscreen -lsocket -lstdc++ +else { + QT += multimedia } +# Libs +symbian: LIBS += -lCore.lib -lCommon.lib -lNative.lib -lcone -leikcore -lavkon -lezlib + +blackberry: LIBS += -L. -lCore -lCommon -lNative -lscreen -lsocket -lstdc++ + +win32: LIBS += -L. -lCore -lCommon -lNative -lwinmm -lws2_32 -lkernel32 -luser32 -lgdi32 -lshell32 -lcomctl32 -ldsound -lxinput + +linux: LIBS += -L. -lCore -lCommon -lNative + # Main SOURCES += ../native/base/QtMain.cpp HEADERS += ../native/base/QtMain.h # Native - SOURCES += ../android/jni/NativeApp.cpp \ - ../android/jni/EmuScreen.cpp \ - ../android/jni/MenuScreens.cpp \ - ../android/jni/GamepadEmu.cpp \ - ../android/jni/UIShader.cpp \ - ../android/jni/ui_atlas.cpp + ../android/jni/EmuScreen.cpp \ + ../android/jni/MenuScreens.cpp \ + ../android/jni/GamepadEmu.cpp \ + ../android/jni/UIShader.cpp \ + ../android/jni/ui_atlas.cpp INCLUDEPATH += .. ../Common ../native -QMAKE_CXXFLAGS += -std=c++0x -Wno-unused-function -Wno-unused-variable -Wno-multichar -Wno-uninitialized -Wno-ignored-qualifiers -Wno-missing-field-initializers -Wno-unused-parameter -DEFINES += ARM USING_GLES2 -blackberry: DEFINES += BLACKBERRY BLACKBERRY10 -symbian: { - QMAKE_CXXFLAGS += -march=armv6 -mfpu=vfp -mfloat-abi=softfp -marm -Wno-parentheses -Wno-comment - DEFINES += SYMBIAN - +# Packaging +symbian { vendorinfo = "%{\"Qtness\"}" ":\"Qtness\"" packageheader = "$${LITERAL_HASH}{\"PPSSPP\"}, (0xE0095B1D), 0, 0, 4, TYPE=SA" my_deployment.pkg_prerules = packageheader vendorinfo diff --git a/Qt/Settings.pri b/Qt/Settings.pri new file mode 100644 index 0000000000..320a37ca37 --- /dev/null +++ b/Qt/Settings.pri @@ -0,0 +1,31 @@ +blackberry|symbian: CONFIG += mobile_platform +unix:!blackberry:!macx: CONFIG += linux + +# Global specific +QMAKE_CXXFLAGS += -std=c++0x -Wno-unused-function -Wno-unused-variable -Wno-multichar -Wno-uninitialized -Wno-ignored-qualifiers -Wno-missing-field-initializers -Wno-unused-parameter + +# Arch specific +contains(QT_ARCH, arm): { + DEFINES += ARM + CONFIG += arm +} +contains(QT_ARCH, x86)|contains(QT_ARCH, x86_64): { + QMAKE_CXXFLAGS += -msse2 + CONFIG += x86 +} +mobile_platform: DEFINES += USING_GLES2 + + +# Platform specific +blackberry: { +# They try to force QCC with all mkspecs +# QCC is 4.4.1, we need 4.6.3 + QMAKE_CC = ntoarmv7-gcc + QMAKE_CXX = ntoarmv7-g++ + DEFINES += BLACKBERRY BLACKBERRY10 "_QNX_SOURCE=1" "_C99=1" +} +symbian: { + QMAKE_CXXFLAGS += -march=armv6 -mfpu=vfp -mfloat-abi=softfp -marm -Wno-parentheses -Wno-comment + DEFINES += SYMBIAN + CONFIG += 4.6.3 +}