ppsspp/Qt/Settings.pri

100 lines
3.3 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
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
DEFINES += _MBCS GLEW_STATIC _CRT_SECURE_NO_WARNINGS
2013-12-06 04:00:17 +00:00
DEFINES += "_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
else {
maemo: QMAKE_CXXFLAGS += -std=gnu++0x
else: QMAKE_CXXFLAGS += -std=c++0x
}
2013-10-14 18:03:08 +00:00
QMAKE_CFLAGS_RELEASE -= -O2
QMAKE_CFLAGS_RELEASE += -O3
QMAKE_CXXFLAGS_RELEASE -= -O2
QMAKE_CXXFLAGS_RELEASE += -O3
}
# Arch specific
2013-02-26 19:03:56 +00:00
xarch = $$find(QT_ARCH, "86")
contains(QT_ARCH, windows)|count(xarch, 1) {
!win32-msvc*: QMAKE_CXXFLAGS += -msse2
CONFIG += x86
2014-06-03 07:30:37 +00:00
} else { # Assume ARM
DEFINES += ARM
CONFIG += arm
}
arm:!symbian {
CONFIG += armv7
DEFINES += ARMEABI_V7A ARMV7
QMAKE_CFLAGS += -march=armv7-a -mtune=cortex-a8 -mfpu=neon -ftree-vectorize -ffast-math -mfloat-abi=softfp
QMAKE_CXXFLAGS += -march=armv7-a -mtune=cortex-a8 -mfpu=neon -ftree-vectorize -ffast-math -mfloat-abi=softfp
}
2014-06-03 07:30:37 +00:00
gleslib = $$find(QT_CONFIG, "opengles")
count(gleslib,0) { # OpenGL
INCLUDEPATH += $$P/native/ext/glew
} else {
DEFINES += USING_GLES2 MOBILE_DEVICE
CONFIG += mobile_platform
2013-02-26 19:03:56 +00:00
}
# Platform specific
contains(MEEGO_EDITION,harmattan): DEFINES += MEEGO_EDITION_HARMATTAN "_SYS_UCONTEXT_H=1"
2014-01-05 00:54:05 +00:00
maemo5: 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
2014-06-03 07:30:37 +00:00
x86 {
contains(QT_ARCH, x86_64): QMAKE_TARGET.arch = x86_64
else: QMAKE_TARGET.arch = x86
INCLUDEPATH += $$P/ffmpeg/linux/$${QMAKE_TARGET.arch}/include
}
}
qnx {
# Use mkspec: unsupported/qws/qnx-armv7-g++
DEFINES += BLACKBERRY "_QNX_SOURCE=1" "_C99=1"
INCLUDEPATH += $$P/ffmpeg/blackberry/armv7/include
}
symbian {
2014-06-03 07:30:37 +00:00
# Does not seem to be a way to change to armv6 compile so just override in variants.xml (see Wiki)
DEFINES += "BOOST_COMPILER_CONFIG=\"$$EPOCROOT/epoc32/include/stdapis/boost/mpl/aux_/config/gcc.hpp\"" SYMBIAN_OGLES_DLL_EXPORTS
QMAKE_CXXFLAGS += -marm -Wno-parentheses -Wno-comment
2013-11-12 14:30:14 +00:00
INCLUDEPATH += $$EPOCROOT/epoc32/include/stdapis
INCLUDEPATH += $$P/ffmpeg/symbian/armv6/include
}
maemo {
DEFINES += __GL_EXPORTS
}