diff options
author | Rafael Roquetto <rafael.roquetto@kdab.com> | 2012-01-24 17:05:07 (GMT) |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-30 17:06:51 (GMT) |
commit | 70170a1c32fc32832359fec14e1e1af7a1968fe9 (patch) | |
tree | 69d9ed74d34d916a09ecf4ee1bc14f36d1179ecc /mkspecs/common | |
parent | 2456e800a2c1c730d9c8427fe04b7c2e0c5ac98b (diff) | |
download | Qt-70170a1c32fc32832359fec14e1e1af7a1968fe9.zip Qt-70170a1c32fc32832359fec14e1e1af7a1968fe9.tar.gz Qt-70170a1c32fc32832359fec14e1e1af7a1968fe9.tar.bz2 |
Add mkspecs for Blackberry Playbook NDK
mkspecs for QNX qcc, armv7le and x86 targets
cherry-picked from 43a48ad218fec43ef3c854cb4e215e7b372b23d4
Change-Id: Ic4bb8947aa4dd31a3ab6e23c36775f9c64d1443c
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'mkspecs/common')
-rw-r--r-- | mkspecs/common/qcc-base-qnx.conf | 69 | ||||
-rw-r--r-- | mkspecs/common/qcc-base.conf | 36 |
2 files changed, 105 insertions, 0 deletions
diff --git a/mkspecs/common/qcc-base-qnx.conf b/mkspecs/common/qcc-base-qnx.conf new file mode 100644 index 0000000..2bc3311 --- /dev/null +++ b/mkspecs/common/qcc-base-qnx.conf @@ -0,0 +1,69 @@ +# +# Base qmake configuration for QCC on *nix-systems +# + +include(qcc-base.conf) + +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 + +# 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_INCDIR_QT = $$[QT_INSTALL_HEADERS] +QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] +QMAKE_MOC = $$[QT_INSTALL_BINS]/moc +QMAKE_UIC = $$[QT_INSTALL_BINS]/uic +QMAKE_RCC = $$[QT_INSTALL_BINS]/rcc + +QMAKE_CXX = $$QMAKE_CC -lang-c++ + +QMAKE_LINK_C = $$QMAKE_CC +QMAKE_LINK_C_SHLIB = $$QMAKE_CC + +QMAKE_LINK = $$QMAKE_CXX +QMAKE_LINK_SHLIB = $$QMAKE_CXX + +QMAKE_TAR = tar -cf +QMAKE_GZIP = gzip -9f + +QMAKE_COPY = cp -f +QMAKE_COPY_FILE = $(COPY) +QMAKE_COPY_DIR = $(COPY) -r +QMAKE_MOVE = mv -f +QMAKE_DEL_FILE = rm -f +QMAKE_DEL_DIR = rmdir +QMAKE_CHK_DIR_EXISTS = test -d +QMAKE_MKDIR = mkdir -p +QMAKE_STRIPFLAGS_LIB += --strip-unneeded +QMAKE_CHK_DIR_EXISTS = test -d +QMAKE_MKDIR = mkdir -p diff --git a/mkspecs/common/qcc-base.conf b/mkspecs/common/qcc-base.conf new file mode 100644 index 0000000..da006f5 --- /dev/null +++ b/mkspecs/common/qcc-base.conf @@ -0,0 +1,36 @@ +# +# This file is used as a basis for the following compilers: +# +# - The QNX qcc compiler +# +# The only difference between this and gcc-base.conf is that -pipe is removed +# as it's on by default in qcc (and has an analogous -nopipe option) +# + +QMAKE_CFLAGS += +QMAKE_CFLAGS_DEPS += -M +QMAKE_CFLAGS_WARN_ON += -Wall -W +QMAKE_CFLAGS_WARN_OFF += -w +QMAKE_CFLAGS_RELEASE += -O2 +QMAKE_CFLAGS_DEBUG += -g +QMAKE_CFLAGS_SHLIB += -fPIC +QMAKE_CFLAGS_STATIC_LIB += -fPIC +QMAKE_CFLAGS_YACC += -Wno-unused -Wno-parentheses +QMAKE_CFLAGS_HIDESYMS += -fvisibility=hidden + +QMAKE_CXXFLAGS += $$QMAKE_CFLAGS +QMAKE_CXXFLAGS_DEPS += $$QMAKE_CFLAGS_DEPS +QMAKE_CXXFLAGS_WARN_ON += $$QMAKE_CFLAGS_WARN_ON +QMAKE_CXXFLAGS_WARN_OFF += $$QMAKE_CFLAGS_WARN_OFF +QMAKE_CXXFLAGS_RELEASE += $$QMAKE_CFLAGS_RELEASE +QMAKE_CXXFLAGS_DEBUG += $$QMAKE_CFLAGS_DEBUG +QMAKE_CXXFLAGS_SHLIB += $$QMAKE_CFLAGS_SHLIB +QMAKE_CXXFLAGS_STATIC_LIB += $$QMAKE_CFLAGS_STATIC_LIB +QMAKE_CXXFLAGS_YACC += $$QMAKE_CFLAGS_YACC +QMAKE_CXXFLAGS_HIDESYMS += $$QMAKE_CFLAGS_HIDESYMS -fvisibility-inlines-hidden + +QMAKE_LFLAGS += +QMAKE_LFLAGS_DEBUG += +QMAKE_LFLAGS_APP += +QMAKE_LFLAGS_RELEASE += + |