ppsspp/Qt/Settings.pri

110 lines
3.7 KiB
Plaintext
Raw Normal View History

VERSION = 0.9.8
DEFINES += USING_QT_UI USE_FFMPEG
2014-06-03 07:30:37 +00:00
unix:!qnx:!symbian:!mac: CONFIG += linux
maemo5|contains(MEEGO_EDITION,harmattan): CONFIG += maemo
# Global specific
win32:CONFIG(release, debug|release): CONFIG_DIR = $$join(OUT_PWD,,,/release)
else:win32:CONFIG(debug, debug|release): CONFIG_DIR = $$join(OUT_PWD,,,/debug)
else:CONFIG_DIR=$$OUT_PWD
OBJECTS_DIR = $$CONFIG_DIR/.obj/$$TARGET
MOC_DIR = $$CONFIG_DIR/.moc/$$TARGET
UI_DIR = $$CONFIG_DIR/.ui/$$TARGET
P = $$_PRO_FILE_PWD_/..
2014-06-03 07:30:37 +00:00
INCLUDEPATH += $$P/ext/zlib $$P/Common
symbian {
exists($$P/.git): GIT_VERSION = $$system(git describe --always)
isEmpty(GIT_VERSION): GIT_VERSION = $$VERSION
} else {
# QMake seems to change how it handles quotes with every version. This works for most systems:
exists($$P/.git): GIT_VERSION = '\\"$$system(git describe --always)\\"'
isEmpty(GIT_VERSION): GIT_VERSION = '\\"$$VERSION\\"'
}
DEFINES += PPSSPP_GIT_VERSION=\"$$GIT_VERSION\"
2013-11-24 17:03:16 +00:00
win32-msvc* {
QMAKE_CXXFLAGS_RELEASE += /O2 /arch:SSE2 /fp:fast
2014-06-10 17:10:50 +00:00
DEFINES += _MBCS GLEW_STATIC _CRT_SECURE_NO_WARNINGS "_VARIADIC_MAX=10"
contains(DEFINES,UNICODE): DEFINES+=_UNICODE
PRECOMPILED_HEADER = $$P/Windows/stdafx.h
PRECOMPILED_SOURCE = $$P/Windows/stdafx.cpp
INCLUDEPATH += .. $$P/ffmpeg/Windows/$${QMAKE_TARGET.arch}/include
} else {
DEFINES += __STDC_CONSTANT_MACROS
QMAKE_CXXFLAGS += -Wno-unused-function -Wno-unused-variable -Wno-multichar -Wno-uninitialized -Wno-ignored-qualifiers -Wno-missing-field-initializers -Wno-unused-parameter
QMAKE_CXXFLAGS += -ffast-math -fno-strict-aliasing
2014-06-03 07:30:37 +00:00
greaterThan(QT_MAJOR_VERSION,4): CONFIG+=c++11
2014-06-10 17:10:50 +00:00
else: QMAKE_CXXFLAGS += -std=c++11
QMAKE_CFLAGS_RELEASE ~= s/-O.*/
QMAKE_CXXFLAGS_RELEASE ~= s/-O.*/
QMAKE_CFLAGS_RELEASE += -O3
QMAKE_CXXFLAGS_RELEASE += -O3
}
# Arch specific
2013-02-26 19:03:56 +00:00
xarch = $$find(QT_ARCH, "86")
macx|contains(QT_ARCH, windows)|count(xarch, 1) {
!win32-msvc*: QMAKE_CXXFLAGS += -msse2
2014-06-03 07:30:37 +00:00
} else { # Assume ARM
DEFINES += ARM
CONFIG += arm
}
arm:!symbian {
CONFIG += armv7
QMAKE_CFLAGS_RELEASE ~= s/-mfpu.*/
QMAKE_CFLAGS_DEBUG ~= s/-mfpu.*/
QMAKE_CFLAGS_RELEASE += -march=armv7-a -mtune=cortex-a8 -mfpu=neon -ftree-vectorize -ffast-math
QMAKE_CFLAGS_DEBUG += -march=armv7-a -mtune=cortex-a8 -mfpu=neon -ftree-vectorize -ffast-math
QMAKE_CXXFLAGS_RELEASE += -march=armv7-a -mtune=cortex-a8 -mfpu=neon -ftree-vectorize -ffast-math
QMAKE_CXXFLAGS_DEBUG += -march=armv7-a -mtune=cortex-a8 -mfpu=neon -ftree-vectorize -ffast-math
}
contains(QT_CONFIG, opengles.) {
DEFINES += USING_GLES2
# How else do we know if the environment prefers windows?
!linux|android|maemo {
DEFINES += MOBILE_DEVICE
CONFIG += mobile_platform
}
2013-02-26 19:03:56 +00:00
}
# Platform specific
contains(MEEGO_EDITION,harmattan): DEFINES += "_SYS_UCONTEXT_H=1"
maemo: DEFINES += MAEMO
2013-11-16 15:49:08 +00:00
2014-06-03 07:30:37 +00:00
macx: INCLUDEPATH += $$P/ffmpeg/macosx/x86_64/include
ios: INCLUDEPATH += $$P/ffmpeg/ios/universal/include
android {
DEFINES += ANDROID
INCLUDEPATH += $$P/ffmpeg/android/armv7/include $$P/native/ext/libzip
}
2014-06-03 07:30:37 +00:00
linux:!android {
arm: INCLUDEPATH += $$P/ffmpeg/linux/armv7/include
else {
contains(QT_ARCH, x86_64) QMAKE_TARGET.arch = x86_64
2014-06-03 07:30:37 +00:00
else: QMAKE_TARGET.arch = x86
INCLUDEPATH += $$P/ffmpeg/linux/$${QMAKE_TARGET.arch}/include
}
}
# Fix 32-bit/64-bit defines
!arm {
contains(QMAKE_TARGET.arch, x86_64): DEFINES += _M_X64
else: DEFINES += _M_IX86
}
qnx {
# Use mkspec: unsupported/qws/qnx-armv7-g++
DEFINES += BLACKBERRY "_QNX_SOURCE=1" "_C99=1"
INCLUDEPATH += $$P/ffmpeg/blackberry/armv7/include
}
symbian {
DEFINES += "BOOST_COMPILER_CONFIG=\"$$EPOCROOT/epoc32/include/stdapis/boost/mpl/aux_/config/gcc.hpp\"" SYMBIAN_OGLES_DLL_EXPORTS
2014-06-10 17:10:50 +00:00
QMAKE_CXXFLAGS += -marm -Wno-parentheses -Wno-comment -Wno-unused-local-typedefs
2013-11-12 14:30:14 +00:00
INCLUDEPATH += $$EPOCROOT/epoc32/include/stdapis
INCLUDEPATH += $$P/ffmpeg/symbian/armv6/include
}
maemo {
DEFINES += __GL_EXPORTS
}