2013-01-11 09:43:42 +00:00
|
|
|
DEFINES += USING_QT_UI
|
2013-03-19 22:17:22 +00:00
|
|
|
unix:!qnx:!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* {
|
2013-10-14 18:03:08 +00:00
|
|
|
QMAKE_CXXFLAGS_RELEASE += /O3 /arch:SSE2 /fp:fast
|
2013-02-19 14:08:00 +00:00
|
|
|
DEFINES += _MBCS GLEW_STATIC NOMINMAX NODRAWTEXT _CRT_SECURE_NO_WARNINGS
|
2013-02-13 15:34:53 +00:00
|
|
|
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
|
2013-10-14 18:03:08 +00:00
|
|
|
QMAKE_CFLAGS_RELEASE -= -O2
|
|
|
|
QMAKE_CFLAGS_RELEASE += -O3
|
|
|
|
QMAKE_CXXFLAGS_RELEASE -= -O2
|
|
|
|
QMAKE_CXXFLAGS_RELEASE += -O3
|
2013-02-13 11:08:54 +00:00
|
|
|
}
|
2012-12-23 07:46:44 +00:00
|
|
|
|
|
|
|
# Arch specific
|
2013-02-26 19:03:56 +00:00
|
|
|
xarch = $$find(QT_ARCH, "86")
|
|
|
|
contains(QT_ARCH, windows)|count(xarch, 1) {
|
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
|
|
|
|
2013-02-26 19:03:56 +00:00
|
|
|
gleslib = $$lower($$QMAKE_LIBS_OPENGL)
|
|
|
|
gleslib = $$find(gleslib, "gles")
|
2013-04-11 14:22:16 +00:00
|
|
|
contains(MEEGO_EDITION,harmattan)|!count(gleslib,0) {
|
2013-02-26 19:03:56 +00:00
|
|
|
DEFINES += USING_GLES2
|
|
|
|
CONFIG += mobile_platform
|
|
|
|
}
|
2012-12-23 07:46:44 +00:00
|
|
|
|
|
|
|
# Platform specific
|
2013-01-07 13:20:54 +00:00
|
|
|
contains(MEEGO_EDITION,harmattan): DEFINES += MEEGO_EDITION_HARMATTAN "_SYS_UCONTEXT_H=1"
|
2013-07-03 15:35:18 +00:00
|
|
|
linux:!mobile_platform: {
|
|
|
|
DEFINES += USE_FFMPEG
|
|
|
|
INCLUDEPATH += ../ffmpeg/linux/x86_64/include
|
|
|
|
}
|
2013-03-19 22:17:22 +00:00
|
|
|
qnx {
|
|
|
|
# Use mkspec: unsupported/qws/qnx-armv7-g++
|
2013-06-21 05:40:52 +00:00
|
|
|
DEFINES += BLACKBERRY "_QNX_SOURCE=1" "_C99=1"
|
2012-12-23 07:46:44 +00:00
|
|
|
}
|
2013-03-19 22:17:22 +00:00
|
|
|
symbian {
|
|
|
|
# Does not seem to be a way to change to armv6 compile so just override in variants.xml (see README)
|
2013-01-31 09:59:59 +00:00
|
|
|
MMP_RULES -= "ARMFPU softvfp+vfpv2"
|
|
|
|
MMP_RULES += "ARMFPU vfpv2"
|
2013-10-07 05:36:54 +00:00
|
|
|
DEFINES += USE_FFMPEG __STDC_CONSTANT_MACROS
|
|
|
|
#"BOOST_COMPILER_CONFIG=<boost/mpl/aux_/config/gcc.hpp>"
|
2013-01-31 09:59:59 +00:00
|
|
|
QMAKE_CXXFLAGS += -marm -Wno-parentheses -Wno-comment
|
2013-09-12 00:57:27 +00:00
|
|
|
INCLUDEPATH += $$EPOCROOT/epoc32/include/stdapis $$EPOCROOT/epoc32/include/stdapis/glib-2.0
|
2013-06-21 18:56:39 +00:00
|
|
|
INCLUDEPATH += ../ffmpeg/symbian/armv6/include
|
2012-12-23 07:46:44 +00:00
|
|
|
}
|