2013-01-11 09:43:42 +00:00
|
|
|
DEFINES += USING_QT_UI
|
2013-01-07 13:20:54 +00:00
|
|
|
blackberry|symbian|contains(MEEGO_EDITION,harmattan): CONFIG += mobile_platform
|
2012-12-23 17:19:52 +00:00
|
|
|
unix:!blackberry:!symbian:!macx: CONFIG += linux
|
2012-12-23 07:46:44 +00:00
|
|
|
|
|
|
|
# Global specific
|
2013-02-13 11:08:54 +00:00
|
|
|
DEFINES -= UNICODE
|
2013-02-13 15:34:53 +00:00
|
|
|
INCLUDEPATH += ../ext/zlib ../native/ext/glew ../Common
|
2013-02-13 11:08:54 +00:00
|
|
|
|
2013-02-13 15:34:53 +00:00
|
|
|
win32-msvc* {
|
|
|
|
QMAKE_CXXFLAGS_RELEASE += /O2 /arch:SSE2 /fp:fast
|
|
|
|
DEFINES += _MBCS GLEW_STATIC NOMINMAX
|
|
|
|
PRECOMPILED_HEADER = ../Windows/stdafx.h
|
|
|
|
PRECOMPILED_SOURCE = ../Windows/stdafx.cpp
|
2013-02-13 11:08:54 +00:00
|
|
|
} else {
|
|
|
|
QMAKE_CXXFLAGS += -Wno-unused-function -Wno-unused-variable -Wno-multichar -Wno-uninitialized -Wno-ignored-qualifiers -Wno-missing-field-initializers -Wno-unused-parameter
|
|
|
|
QMAKE_CXXFLAGS += -std=c++0x -ffast-math -fno-strict-aliasing
|
|
|
|
}
|
2012-12-23 07:46:44 +00:00
|
|
|
|
|
|
|
# Arch specific
|
2013-02-13 11:08:54 +00:00
|
|
|
contains(QT_ARCH, i686)|contains(QT_ARCH, x86)|contains(QT_ARCH, x86_64)|contains(QT_ARCH, windows): {
|
2013-02-13 15:34:53 +00:00
|
|
|
!win32-msvc*: QMAKE_CXXFLAGS += -msse2
|
2012-12-23 07:46:44 +00:00
|
|
|
CONFIG += x86
|
|
|
|
}
|
2012-12-23 10:26:18 +00:00
|
|
|
else { # Assume ARM
|
|
|
|
DEFINES += ARM
|
|
|
|
CONFIG += arm
|
|
|
|
}
|
2012-12-23 07:46:44 +00:00
|
|
|
mobile_platform: DEFINES += USING_GLES2
|
|
|
|
|
|
|
|
|
|
|
|
# Platform specific
|
2013-01-07 13:20:54 +00:00
|
|
|
contains(MEEGO_EDITION,harmattan): DEFINES += MEEGO_EDITION_HARMATTAN "_SYS_UCONTEXT_H=1"
|
2012-12-23 07:46:44 +00:00
|
|
|
blackberry: {
|
|
|
|
# They try to force QCC with all mkspecs
|
|
|
|
# QCC is 4.4.1, we need 4.6.3
|
|
|
|
QMAKE_CC = ntoarmv7-gcc
|
|
|
|
QMAKE_CXX = ntoarmv7-g++
|
|
|
|
DEFINES += BLACKBERRY BLACKBERRY10 "_QNX_SOURCE=1" "_C99=1"
|
|
|
|
}
|
|
|
|
symbian: {
|
2013-01-31 09:59:59 +00:00
|
|
|
# Does not seem to be a way to change to armv6 compile so just override in variants.xml (see README)
|
|
|
|
MMP_RULES -= "ARMFPU softvfp+vfpv2"
|
|
|
|
MMP_RULES += "ARMFPU vfpv2"
|
|
|
|
QMAKE_CXXFLAGS += -marm -Wno-parentheses -Wno-comment
|
|
|
|
DEFINES += __MARM_ARMV6__
|
2012-12-23 07:46:44 +00:00
|
|
|
CONFIG += 4.6.3
|
|
|
|
}
|