2013-02-01 21:40:17 +00:00
|
|
|
TARGET = PPSSPPQt
|
2013-02-07 04:41:02 +00:00
|
|
|
|
2013-10-21 14:06:23 +00:00
|
|
|
# Main Qt modules
|
2013-02-07 04:41:02 +00:00
|
|
|
QT += core gui opengl
|
2014-07-08 19:22:56 +00:00
|
|
|
|
|
|
|
# PPSSPP Modules
|
|
|
|
symbian: LIBS += -lCore.lib -lGPU.lib -lCommon.lib -lNative.lib
|
|
|
|
else: LIBS += -lCore -lGPU -lCommon -lNative
|
|
|
|
|
2013-10-21 14:06:23 +00:00
|
|
|
include(Settings.pri)
|
|
|
|
|
2014-06-25 06:10:00 +00:00
|
|
|
lessThan(QT_MAJOR_VERSION, 5) {
|
|
|
|
macx: error(PPSSPP requires Qt5 for OS X but $$[QT_VERSION] was detected.)
|
|
|
|
else:lessThan(QT_MINOR_VERSION, 7): error(PPSSPP requires Qt 4.7 or newer but Qt $$[QT_VERSION] was detected.)
|
2013-11-24 03:23:23 +00:00
|
|
|
}
|
|
|
|
|
2013-10-21 14:06:23 +00:00
|
|
|
# Extra Qt modules
|
2014-06-02 23:26:24 +00:00
|
|
|
greaterThan(QT_MAJOR_VERSION,4) {
|
|
|
|
QT += widgets
|
|
|
|
mobile_platform: QT += sensors
|
|
|
|
} else:!maemo5:mobile_platform {
|
2013-11-24 05:49:32 +00:00
|
|
|
CONFIG += mobility
|
|
|
|
MOBILITY += sensors
|
|
|
|
symbian: MOBILITY += systeminfo feedback
|
|
|
|
}
|
2013-02-01 21:40:17 +00:00
|
|
|
|
2013-10-21 14:06:23 +00:00
|
|
|
# External (platform-dependant) libs
|
|
|
|
|
2014-07-08 07:15:28 +00:00
|
|
|
macx|equals(PLATFORM_NAME, "linux") {
|
2014-06-14 17:43:06 +00:00
|
|
|
PRE_TARGETDEPS += $$CONFIG_DIR/libCommon.a $$CONFIG_DIR/libCore.a $$CONFIG_DIR/libGPU.a $$CONFIG_DIR/libNative.a
|
2014-06-03 07:30:37 +00:00
|
|
|
CONFIG += link_pkgconfig
|
2013-10-21 14:06:23 +00:00
|
|
|
packagesExist(sdl) {
|
|
|
|
DEFINES += QT_HAS_SDL
|
2013-11-24 03:23:23 +00:00
|
|
|
SOURCES += $$P/SDL/SDLJoystick.cpp
|
|
|
|
HEADERS += $$P/SDL/SDLJoystick.h
|
2013-10-21 14:06:23 +00:00
|
|
|
PKGCONFIG += sdl
|
2014-06-11 16:19:53 +00:00
|
|
|
macx {
|
2014-06-23 14:11:31 +00:00
|
|
|
LIBS += -F/Library/Frameworks -framework SDL
|
2014-06-11 16:19:53 +00:00
|
|
|
INCLUDEPATH += /Library/Frameworks/SDL.framework/Versions/A/Headers
|
|
|
|
}
|
2013-02-03 23:45:37 +00:00
|
|
|
}
|
|
|
|
}
|
2014-07-01 07:16:13 +00:00
|
|
|
|
2014-06-03 07:30:37 +00:00
|
|
|
unix:contains(QT_CONFIG, system-zlib) {
|
|
|
|
LIBS += -lz
|
|
|
|
}
|
2013-02-01 21:40:17 +00:00
|
|
|
|
2014-07-01 07:16:13 +00:00
|
|
|
# Qt Multimedia (if SDL is not found)
|
|
|
|
!contains(DEFINES, QT_HAS_SDL) {
|
2014-07-08 07:15:28 +00:00
|
|
|
lessThan(QT_MAJOR_VERSION,5):!exists($$[QT_INSTALL_HEADERS]/QtMultimedia) {
|
2014-07-01 07:16:13 +00:00
|
|
|
# Fallback to mobility audio
|
|
|
|
CONFIG += mobility
|
|
|
|
MOBILITY += multimedia
|
|
|
|
}
|
|
|
|
else: QT += multimedia
|
|
|
|
}
|
|
|
|
|
2013-02-01 21:40:17 +00:00
|
|
|
# Main
|
2013-11-21 18:07:18 +00:00
|
|
|
SOURCES += $$P/native/base/QtMain.cpp
|
|
|
|
HEADERS += $$P/native/base/QtMain.h
|
2013-10-26 17:49:12 +00:00
|
|
|
symbian {
|
2013-11-21 18:07:18 +00:00
|
|
|
SOURCES += $$P/native/base/SymbianMediaKeys.cpp
|
|
|
|
HEADERS += $$P/native/base/SymbianMediaKeys.h
|
2013-10-26 17:49:12 +00:00
|
|
|
}
|
2013-02-01 21:40:17 +00:00
|
|
|
|
2013-07-17 01:14:41 +00:00
|
|
|
# UI
|
2013-11-21 18:07:18 +00:00
|
|
|
SOURCES += $$P/UI/*Screen.cpp \
|
|
|
|
$$P/UI/*Screens.cpp \
|
2014-06-22 15:02:04 +00:00
|
|
|
$$P/UI/BackgroundAudio.cpp \
|
2013-12-05 12:53:54 +00:00
|
|
|
$$P/UI/Store.cpp \
|
2013-11-21 18:07:18 +00:00
|
|
|
$$P/UI/GamepadEmu.cpp \
|
|
|
|
$$P/UI/GameInfoCache.cpp \
|
2014-03-01 15:09:16 +00:00
|
|
|
$$P/UI/NativeApp.cpp \
|
2013-11-21 18:07:18 +00:00
|
|
|
$$P/UI/OnScreenDisplay.cpp \
|
2013-12-16 02:45:18 +00:00
|
|
|
$$P/UI/TiltEventProcessor.cpp \
|
2013-11-21 18:07:18 +00:00
|
|
|
$$P/UI/UIShader.cpp \
|
2013-11-22 06:15:10 +00:00
|
|
|
$$P/UI/ui_atlas_lowmem.cpp \
|
2013-11-21 18:07:18 +00:00
|
|
|
$$P/android/jni/TestRunner.cpp
|
2013-02-01 21:40:17 +00:00
|
|
|
|
2014-06-02 23:26:24 +00:00
|
|
|
arm:android: SOURCES += $$P/android/jni/ArmEmitterTest.cpp
|
|
|
|
|
2013-11-21 18:07:18 +00:00
|
|
|
HEADERS += $$P/UI/*.h
|
2013-12-09 16:14:43 +00:00
|
|
|
INCLUDEPATH += $$P $$P/Common $$P/native $$P/native/ext
|
2013-02-01 21:40:17 +00:00
|
|
|
|
2014-06-23 14:11:31 +00:00
|
|
|
mobile_platform: RESOURCES += $$P/Qt/assets.qrc
|
|
|
|
else {
|
2014-06-18 04:31:38 +00:00
|
|
|
# TODO: Rewrite Debugger with same backend as Windows version
|
2014-07-08 07:15:28 +00:00
|
|
|
# Do not use .ui forms. Use Qt5 + C++11 features to minimise code
|
2014-06-18 04:31:38 +00:00
|
|
|
SOURCES += $$P/Qt/*.cpp $$P/Qt/Debugger/*.cpp
|
|
|
|
HEADERS += $$P/Qt/*.h $$P/Qt/Debugger/*.h
|
|
|
|
FORMS += $$P/Qt/Debugger/*.ui
|
2013-11-24 05:49:32 +00:00
|
|
|
RESOURCES += $$P/Qt/desktop_assets.qrc
|
2014-06-18 04:31:38 +00:00
|
|
|
INCLUDEPATH += $$P/Qt $$P/Qt/Debugger
|
2014-06-18 05:36:49 +00:00
|
|
|
|
|
|
|
# Creating translations should be done by Qt, really
|
2014-06-22 15:58:20 +00:00
|
|
|
LREL_TOOL = lrelease
|
2014-06-25 03:24:19 +00:00
|
|
|
# Grab all possible directories (win32/unix)
|
|
|
|
win32: PATHS = $$split($$(PATH), ;)
|
|
|
|
else: PATHS = $$split($$(PATH), :)
|
2014-06-17 14:34:11 +00:00
|
|
|
greaterThan(QT_MAJOR_VERSION, 4) {
|
2014-06-22 15:58:20 +00:00
|
|
|
for(bin, PATHS): exists($${bin}/$${LREL_TOOL}-qt5): LREL_TOOL=$${bin}/$${LREL_TOOL}-qt5
|
2014-06-17 14:34:11 +00:00
|
|
|
} else {
|
2014-06-22 15:58:20 +00:00
|
|
|
for(bin, PATHS): exists($${bin}/$${LREL_TOOL}-qt4): LREL_TOOL=$${bin}/$${LREL_TOOL}-qt4
|
2014-06-17 14:34:11 +00:00
|
|
|
}
|
2013-10-21 14:06:23 +00:00
|
|
|
|
|
|
|
# Translations
|
2013-11-21 18:07:18 +00:00
|
|
|
TRANSLATIONS = $$files($$P/Qt/languages/ppsspp_*.ts)
|
2013-10-21 14:06:23 +00:00
|
|
|
|
2014-06-17 14:34:11 +00:00
|
|
|
lang.name = $$LREL_TOOL ${QMAKE_FILE_IN}
|
2013-10-21 14:06:23 +00:00
|
|
|
lang.input = TRANSLATIONS
|
|
|
|
lang.output = ${QMAKE_FILE_PATH}/${QMAKE_FILE_BASE}.qm
|
2014-07-08 07:15:28 +00:00
|
|
|
|
2014-06-17 17:28:33 +00:00
|
|
|
lang.commands = $$LREL_TOOL ${QMAKE_FILE_IN}
|
2013-10-21 14:06:23 +00:00
|
|
|
lang.CONFIG = no_link
|
|
|
|
QMAKE_EXTRA_COMPILERS += lang
|
|
|
|
PRE_TARGETDEPS += compiler_lang_make_all
|
2013-02-01 21:40:17 +00:00
|
|
|
}
|
|
|
|
|
2014-06-02 23:26:24 +00:00
|
|
|
|