3867641d78
Removed the duplicated 'qnx' CONFIG defition from the mkspecs and declared it on the common qcc-base-qnx.conf configuration file. Change-Id: Ie215e3dd794762f20bec9c19afd5936a78a9d963 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com> Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
69 lines
2.1 KiB
Plaintext
69 lines
2.1 KiB
Plaintext
#
|
|
# Base qmake configuration for QCC on *nix-systems
|
|
#
|
|
|
|
include(qcc-base.conf)
|
|
|
|
CONFIG += 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
|
|
|
|
# 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_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
|