f4c9797d5b
Rationale: QCC is a wrapper around GCC, but it doesn't understand -std, so we need to pass it via -Wc. The underlying GCC is v4.4, which doesn't know -std=c++11 yet, only c++0x. We can't use -std=c++0x here, because the QNX headers depend on some GNU extensions (nanosleep() was one that I saw), so it has to be gnu++0x, ie. STD C++ + GNU extensions. Change-Id: Ia5caf68f558b1638224e4876f1bbec84a0a93f67 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
58 lines
1.8 KiB
Plaintext
58 lines
1.8 KiB
Plaintext
#
|
|
# Base qmake configuration for QCC on *nix-systems
|
|
#
|
|
|
|
include(qcc-base.conf)
|
|
|
|
CONFIG += qnx
|
|
|
|
#Choose qnx QPA Plugin as default
|
|
QT_QPA_DEFAULT_PLATFORM = qnx
|
|
|
|
QMAKE_LFLAGS_SHLIB += -shared
|
|
QMAKE_LFLAGS_PLUGIN += $$QMAKE_LFLAGS_SHLIB
|
|
QMAKE_LFLAGS_SONAME += -Wl,-soname,
|
|
QMAKE_LFLAGS_THREAD +=
|
|
QMAKE_LFLAGS_RPATH = -Wl,-rpath,
|
|
|
|
# -Bsymbolic-functions (ld) support
|
|
QMAKE_LFLAGS_BSYMBOLIC_FUNC = -Wl,-Bsymbolic-functions
|
|
QMAKE_LFLAGS_DYNAMIC_LIST = -Wl,--dynamic-list,
|
|
|
|
# Generic options for all BlackBerry/QNX qcc mkspecs
|
|
QMAKE_CFLAGS_THREAD = -D_REENTRANT
|
|
QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD
|
|
QMAKE_COMPILER_DEFINES += __QNXNTO__
|
|
|
|
QMAKE_LIBS = -lm
|
|
QMAKE_LIBS_NETWORK = -lsocket
|
|
|
|
# OpenGL libraries have a dependency on libEGL
|
|
QMAKE_LIBS_OPENGL_ES1 = -lGLES_CM -lEGL
|
|
QMAKE_LIBS_OPENGL_ES2 = -lGLESv2 -lEGL
|
|
QMAKE_LIBS_EGL = -lEGL
|
|
|
|
# When using this mkspec to build Qt apps (ie - not Qt itself) we want to build
|
|
# against the NDK's target directory which is referenced by the QNX_TARGET environment
|
|
# variable, and which is guaranteed by the NDK to be set.
|
|
QNX_DIR = $$(QNX_TARGET)
|
|
|
|
isEmpty(QNX_DIR) {
|
|
error(QNX_TARGET environment variable not set)
|
|
}
|
|
|
|
QMAKE_INCDIR = $${QNX_DIR}/usr/include $${QNX_DIR}/usr/include/freetype2
|
|
QMAKE_LIBDIR = $${QNX_DIR}/$${QNX_CPUDIR}/lib $${QNX_DIR}/$${QNX_CPUDIR}/usr/lib
|
|
QMAKE_LFLAGS = -Wl,-rpath-link,$${QNX_DIR}/$${QNX_CPUDIR}/lib -Wl,-rpath-link,$${QNX_DIR}/$${QNX_CPUDIR}/usr/lib
|
|
|
|
QMAKE_CXX = $$QMAKE_CC -lang-c++
|
|
QMAKE_CXXFLAGS_CXX11 = -Wc,-std=gnu++0x
|
|
|
|
QMAKE_LINK_C = $$QMAKE_CC
|
|
QMAKE_LINK_C_SHLIB = $$QMAKE_CC
|
|
|
|
QMAKE_LINK = $$QMAKE_CXX
|
|
QMAKE_LINK_SHLIB = $$QMAKE_CXX
|
|
|
|
QMAKE_STRIPFLAGS_LIB += --strip-unneeded
|