2013-02-01 21:40:17 +00:00
|
|
|
TARGET = PPSSPPQt
|
2013-02-07 04:41:02 +00:00
|
|
|
|
|
|
|
QT += core gui opengl
|
|
|
|
CONFIG += mobility
|
|
|
|
MOBILITY += multimedia
|
2013-02-13 12:50:20 +00:00
|
|
|
win32: QT += multimedia
|
2013-02-01 21:40:17 +00:00
|
|
|
|
|
|
|
include(Settings.pri)
|
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
|
|
|
|
|
|
|
# Libs
|
2013-03-19 19:29:02 +00:00
|
|
|
symbian: LIBS += -lCore.lib -lCommon.lib -lNative.lib
|
2013-03-19 22:17:22 +00:00
|
|
|
qnx: LIBS += -L. -lCore -lCommon -lNative -lscreen -lz
|
2013-02-19 14:08:00 +00:00
|
|
|
win32 {
|
|
|
|
CONFIG(release, debug|release) {
|
|
|
|
LIBS += -L$$OUT_PWD/release
|
|
|
|
} else {
|
|
|
|
LIBS += -L$$OUT_PWD/debug
|
2013-04-11 14:22:16 +00:00
|
|
|
}
|
2013-03-19 22:17:22 +00:00
|
|
|
LIBS += -lCore -lCommon -lNative -lwinmm -lws2_32
|
2013-02-19 14:08:00 +00:00
|
|
|
}
|
2013-04-11 14:22:16 +00:00
|
|
|
linux {
|
|
|
|
LIBS += -L. -lCore -lCommon -lNative
|
2013-02-03 23:45:37 +00:00
|
|
|
PRE_TARGETDEPS += ./libCommon.a ./libCore.a ./libNative.a
|
2013-04-11 14:22:16 +00:00
|
|
|
!mobile_platform {
|
|
|
|
CONFIG += link_pkgconfig
|
|
|
|
packagesExist(sdl) {
|
|
|
|
DEFINES += QT_HAS_SDL
|
|
|
|
PKGCONFIG += sdl
|
|
|
|
}
|
2013-02-03 23:45:37 +00:00
|
|
|
}
|
|
|
|
}
|
2013-02-01 21:40:17 +00:00
|
|
|
|
|
|
|
# Main
|
2013-02-03 23:45:37 +00:00
|
|
|
SOURCES += ../native/base/QtMain.cpp
|
|
|
|
HEADERS += ../native/base/QtMain.h
|
2013-02-01 21:40:17 +00:00
|
|
|
|
|
|
|
# Native
|
2013-03-30 14:44:10 +00:00
|
|
|
SOURCES += ../UI/EmuScreen.cpp \
|
|
|
|
../UI/MenuScreens.cpp \
|
|
|
|
../UI/GamepadEmu.cpp \
|
2013-03-31 06:55:48 +00:00
|
|
|
../UI/GameInfoCache.cpp \
|
2013-03-08 02:36:04 +00:00
|
|
|
../android/jni/TestRunner.cpp \
|
2013-03-30 14:44:10 +00:00
|
|
|
../UI/UIShader.cpp \
|
|
|
|
../UI/ui_atlas.cpp
|
2013-02-01 21:40:17 +00:00
|
|
|
|
|
|
|
INCLUDEPATH += .. ../Common ../native
|
|
|
|
|
|
|
|
# Temporarily only use new UI for Linux desktop
|
2013-03-19 22:58:26 +00:00
|
|
|
linux:!mobile_platform {
|
2013-02-07 04:41:02 +00:00
|
|
|
MOC_DIR = moc
|
|
|
|
UI_DIR = ui
|
2013-02-12 17:07:36 +00:00
|
|
|
RCC_DIR = rcc
|
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-03-19 22:58:26 +00:00
|
|
|
} else {
|
2013-03-31 06:55:48 +00:00
|
|
|
SOURCES += ../UI/NativeApp.cpp
|
2013-02-01 21:40:17 +00:00
|
|
|
}
|
2013-03-31 06:55:48 +00:00
|
|
|
RESOURCES += assets.qrc
|
2013-02-01 21:40:17 +00:00
|
|
|
|
2013-03-04 15:09:35 +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-02-01 21:40:17 +00:00
|
|
|
# Packaging
|
|
|
|
symbian {
|
2013-04-14 11:54:09 +00:00
|
|
|
deploy.pkg_prerules = "$${LITERAL_HASH}{\"PPSSPP\"}, (0xE0095B1D), 0, 7, 5, TYPE=SA" "%{\"Qtness\"}" ":\"Qtness\""
|
2013-04-23 13:23:34 +00:00
|
|
|
assets.sources = ../assets/flash ../lang
|
2013-02-01 21:40:17 +00:00
|
|
|
assets.path = E:/PPSSPP
|
2013-02-07 04:41:02 +00:00
|
|
|
DEPLOYMENT += deploy assets
|
2013-02-01 21:40:17 +00:00
|
|
|
ICON = ../assets/icon.svg
|
2013-02-07 04:41:02 +00:00
|
|
|
# 268MB 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-04-23 13:23:34 +00:00
|
|
|
assets.files = ../assets/flash ../lang
|
2013-04-11 18:02:29 +00:00
|
|
|
assets.path = /opt/PPSSPP
|
|
|
|
desktopfile.files = PPSSPP.desktop
|
|
|
|
desktopfile.path = /usr/share/applications
|
|
|
|
icon.files = ../assets/icon-114.png
|
|
|
|
icon.path = /usr/share/icons/hicolor/114x114/apps
|
|
|
|
INSTALLS += target assets 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
|
|
|
}
|
|
|
|
|