2013-02-01 21:40:17 +00:00
|
|
|
TARGET = PPSSPPQt
|
2013-10-21 14:06:23 +00:00
|
|
|
VERSION = 0.9.1
|
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
|
2013-10-21 14:06:23 +00:00
|
|
|
include(Settings.pri)
|
|
|
|
|
|
|
|
# Extra Qt modules
|
|
|
|
linux: CONFIG += link_pkgconfig
|
2013-10-19 16:44:03 +00:00
|
|
|
win32|greaterThan(QT_MAJOR_VERSION,4) {
|
2013-10-21 14:06:23 +00:00
|
|
|
QT += multimedia
|
2013-10-19 16:44:03 +00:00
|
|
|
} else {
|
2013-10-21 14:06:23 +00:00
|
|
|
linux:packagesExist(QtMultimedia) {
|
|
|
|
QT += multimedia
|
|
|
|
} else {
|
|
|
|
CONFIG += mobility
|
|
|
|
MOBILITY += multimedia
|
|
|
|
}
|
2013-10-19 16:44:03 +00:00
|
|
|
}
|
2013-08-27 17:19:37 +00:00
|
|
|
greaterThan(QT_MAJOR_VERSION,4): QT += widgets
|
2013-02-01 21:40:17 +00:00
|
|
|
|
2013-04-06 14:52:58 +00:00
|
|
|
mobile_platform: MOBILITY += sensors
|
2013-04-17 14:24:08 +00:00
|
|
|
symbian: MOBILITY += systeminfo
|
2013-02-01 21:40:17 +00:00
|
|
|
|
2013-10-21 14:06:23 +00:00
|
|
|
# PPSSPP Libs
|
|
|
|
win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/release/
|
|
|
|
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/debug/
|
|
|
|
else:symbian: XT=".lib"
|
2013-10-21 14:24:59 +00:00
|
|
|
else:unix: LIBS += -L$$OUT_PWD
|
2013-10-21 14:06:23 +00:00
|
|
|
LIBS += -lCore$${XT} -lCommon$${XT} -lNative$${XT}
|
|
|
|
|
|
|
|
# FFMPEG Path
|
|
|
|
win32: FFMPEG_DIR = ../ffmpeg/Windows/$${QMAKE_TARGET.arch}/lib/
|
|
|
|
linux: FFMPEG_DIR = ../ffmpeg/linux/$${QMAKE_TARGET.arch}/lib/
|
|
|
|
qnx: FFMPEG_DIR = ../ffmpeg/blackberry/armv7/lib/
|
|
|
|
symbian:FFMPEG_DIR = -l
|
|
|
|
|
|
|
|
# External (platform-dependant) libs
|
2013-10-21 14:24:59 +00:00
|
|
|
win32|symbian: LIBS += $${FFMPEG_DIR}avformat.lib $${FFMPEG_DIR}avcodec.lib $${FFMPEG_DIR}avutil.lib $${FFMPEG_DIR}swresample.lib $${FFMPEG_DIR}swscale.lib
|
|
|
|
else: LIBS += $${FFMPEG_DIR}libavformat.a $${FFMPEG_DIR}libavcodec.a $${FFMPEG_DIR}libavutil.a $${FFMPEG_DIR}libswresample.a $${FFMPEG_DIR}libswscale.a
|
2013-10-21 14:06:23 +00:00
|
|
|
|
2013-02-19 14:08:00 +00:00
|
|
|
win32 {
|
2013-10-21 14:06:23 +00:00
|
|
|
LIBS += -lwinmm -lws2_32 -lShell32 -lAdvapi32
|
|
|
|
contains($$QMAKE_TARGET.arch, x86_64): LIBS += $$files(../dx9sdk/Lib/x64/*.lib)
|
|
|
|
else: LIBS += $$files(../dx9sdk/Lib/x86/*.lib)
|
2013-02-19 14:08:00 +00:00
|
|
|
}
|
2013-04-11 14:22:16 +00:00
|
|
|
linux {
|
2013-10-21 18:00:55 +00:00
|
|
|
LIBS += -ldl
|
2013-02-03 23:45:37 +00:00
|
|
|
PRE_TARGETDEPS += ./libCommon.a ./libCore.a ./libNative.a
|
2013-10-21 14:06:23 +00:00
|
|
|
packagesExist(sdl) {
|
|
|
|
DEFINES += QT_HAS_SDL
|
|
|
|
PKGCONFIG += sdl
|
2013-02-03 23:45:37 +00:00
|
|
|
}
|
|
|
|
}
|
2013-10-21 14:06:23 +00:00
|
|
|
qnx: LIBS += -lscreen
|
|
|
|
symbian: LIBS += -llibglib -lhwrmvibraclient
|
|
|
|
# Avoids problems with some compilers
|
2013-10-21 14:24:59 +00:00
|
|
|
unix:!symbian: LIBS += -lz
|
2013-02-01 21:40:17 +00:00
|
|
|
|
|
|
|
# Main
|
2013-02-03 23:45:37 +00:00
|
|
|
SOURCES += ../native/base/QtMain.cpp
|
2013-10-14 18:03:08 +00:00
|
|
|
HEADERS += ../native/base/QtMain.h
|
2013-02-01 21:40:17 +00:00
|
|
|
|
2013-07-17 01:14:41 +00:00
|
|
|
# UI
|
|
|
|
SOURCES += ../UI/*Screen.cpp \
|
|
|
|
../UI/*Screens.cpp \
|
2013-03-30 14:44:10 +00:00
|
|
|
../UI/GamepadEmu.cpp \
|
2013-03-31 06:55:48 +00:00
|
|
|
../UI/GameInfoCache.cpp \
|
2013-05-23 11:54:24 +00:00
|
|
|
../UI/OnScreenDisplay.cpp \
|
2013-03-30 14:44:10 +00:00
|
|
|
../UI/UIShader.cpp \
|
2013-07-17 01:14:41 +00:00
|
|
|
../android/jni/TestRunner.cpp
|
2013-02-01 21:40:17 +00:00
|
|
|
|
2013-07-17 01:14:41 +00:00
|
|
|
HEADERS += ../UI/*.h
|
2013-02-01 21:40:17 +00:00
|
|
|
INCLUDEPATH += .. ../Common ../native
|
|
|
|
|
2013-10-21 14:06:23 +00:00
|
|
|
# Use forms UI for Linux desktop
|
2013-03-19 22:58:26 +00:00
|
|
|
linux:!mobile_platform {
|
2013-02-07 04:41:02 +00:00
|
|
|
SOURCES += *.cpp
|
|
|
|
HEADERS += *.h
|
|
|
|
FORMS += *.ui
|
|
|
|
RESOURCES += resources.qrc
|
2013-02-13 12:50:20 +00:00
|
|
|
INCLUDEPATH += ../Qt
|
2013-10-21 14:06:23 +00:00
|
|
|
|
|
|
|
# Translations
|
|
|
|
TRANSLATIONS = $$files(languages/ppsspp_*.ts)
|
|
|
|
|
|
|
|
lang.name = lrelease ${QMAKE_FILE_IN}
|
|
|
|
lang.input = TRANSLATIONS
|
|
|
|
lang.output = ${QMAKE_FILE_PATH}/${QMAKE_FILE_BASE}.qm
|
|
|
|
lang.commands = $$[QT_INSTALL_BINS]/lrelease ${QMAKE_FILE_IN}
|
|
|
|
lang.CONFIG = no_link
|
|
|
|
QMAKE_EXTRA_COMPILERS += lang
|
|
|
|
PRE_TARGETDEPS += compiler_lang_make_all
|
2013-03-19 22:58:26 +00:00
|
|
|
} else {
|
2013-07-17 01:14:41 +00:00
|
|
|
# Desktop handles the Init separately
|
2013-03-31 06:55:48 +00:00
|
|
|
SOURCES += ../UI/NativeApp.cpp
|
2013-02-01 21:40:17 +00:00
|
|
|
}
|
2013-08-18 09:06:47 +00:00
|
|
|
symbian {
|
2013-09-03 06:35:25 +00:00
|
|
|
RESOURCES += assets_lowmem.qrc
|
|
|
|
SOURCES += ../UI/ui_atlas_lowmem.cpp
|
2013-08-18 09:06:47 +00:00
|
|
|
} else {
|
2013-09-03 06:35:25 +00:00
|
|
|
RESOURCES += assets.qrc
|
|
|
|
SOURCES += ../UI/ui_atlas.cpp
|
2013-08-18 09:06:47 +00:00
|
|
|
}
|
2013-02-01 21:40:17 +00:00
|
|
|
|
|
|
|
# Packaging
|
|
|
|
symbian {
|
2013-06-27 13:31:34 +00:00
|
|
|
TARGET.UID3 = 0xE0095B1D
|
|
|
|
DEPLOYMENT.display_name = PPSSPP
|
|
|
|
vendor_deploy.pkg_prerules = "%{\"Qtness\"}" ":\"Qtness\""
|
|
|
|
ICON = ../assets/icon.svg
|
2013-06-25 17:06:41 +00:00
|
|
|
|
2013-06-27 13:31:34 +00:00
|
|
|
# Folders:
|
2013-10-18 02:21:23 +00:00
|
|
|
assets.sources = ../flash0 ../assets/langregion.ini
|
2013-02-01 21:40:17 +00:00
|
|
|
assets.path = E:/PPSSPP
|
2013-10-18 02:21:23 +00:00
|
|
|
shaders.sources = ../assets/shaders
|
|
|
|
shaders.path = E:/PPSSPP/PSP
|
2013-09-03 06:35:25 +00:00
|
|
|
lang.sources = $$files(../lang/*.ini)
|
2013-10-21 14:06:23 +00:00
|
|
|
# Unsupported languages on Symbian. Slashes differ depending on host.
|
|
|
|
contains(QMAKE_HOST.os, "Windows"): lang.sources -= ..\\lang/ja_JP.ini ..\\lang/ko_KR.ini ..\\lang/zh_CN.ini ..\\lang/zh_TW.ini
|
|
|
|
else: lang.sources -= ../lang/ja_JP.ini ../lang/ko_KR.ini ../lang/zh_CN.ini ../lang/zh_TW.ini
|
2013-09-03 06:35:25 +00:00
|
|
|
lang.path = E:/PPSSPP/lang
|
|
|
|
|
2013-10-18 02:21:23 +00:00
|
|
|
DEPLOYMENT += vendor_deploy assets shaders lang
|
2013-06-25 17:06:41 +00:00
|
|
|
|
2013-06-27 13:31:34 +00:00
|
|
|
# 268 MB maximum
|
2013-02-01 21:40:17 +00:00
|
|
|
TARGET.EPOCHEAPSIZE = 0x40000 0x10000000
|
|
|
|
TARGET.EPOCSTACKSIZE = 0x10000
|
|
|
|
}
|
2013-04-11 14:22:16 +00:00
|
|
|
|
|
|
|
contains(MEEGO_EDITION,harmattan) {
|
2013-04-11 18:02:29 +00:00
|
|
|
target.path = /opt/PPSSPP/bin
|
2013-10-18 02:21:23 +00:00
|
|
|
assets.files = ../flash0 ../assets/langregion.ini
|
2013-04-11 18:02:29 +00:00
|
|
|
assets.path = /opt/PPSSPP
|
2013-10-18 02:21:23 +00:00
|
|
|
shaders.files = ../assets/shaders
|
|
|
|
shaders.path = /opt/PPSSPP/PSP
|
2013-09-03 06:35:25 +00:00
|
|
|
lang.files = $$files(../lang/*.ini)
|
|
|
|
lang.path = /opt/PPSSPP/lang
|
2013-04-11 18:02:29 +00:00
|
|
|
desktopfile.files = PPSSPP.desktop
|
|
|
|
desktopfile.path = /usr/share/applications
|
|
|
|
icon.files = ../assets/icon-114.png
|
|
|
|
icon.path = /usr/share/icons/hicolor/114x114/apps
|
2013-10-18 02:21:23 +00:00
|
|
|
INSTALLS += target assets shaders lang desktopfile icon
|
2013-04-13 17:04:06 +00:00
|
|
|
# Booster
|
|
|
|
QMAKE_CXXFLAGS += -fPIC -fvisibility=hidden -fvisibility-inlines-hidden
|
|
|
|
QMAKE_LFLAGS += -pie -rdynamic
|
|
|
|
CONFIG += qt-boostable
|
2013-04-11 14:22:16 +00:00
|
|
|
}
|
|
|
|
|