2012-01-24 17:05:07 +00:00
|
|
|
#
|
|
|
|
# Base qmake configuration for QCC on *nix-systems
|
|
|
|
#
|
|
|
|
|
|
|
|
include(qcc-base.conf)
|
|
|
|
|
2015-09-30 09:05:23 +00:00
|
|
|
QMAKE_PLATFORM = qnx $$QMAKE_PLATFORM
|
2012-03-30 13:31:44 +00:00
|
|
|
|
2013-03-19 01:57:31 +00:00
|
|
|
QMAKE_LFLAGS_SHLIB += -shared
|
|
|
|
QMAKE_LFLAGS_PLUGIN += $$QMAKE_LFLAGS_SHLIB
|
|
|
|
QMAKE_LFLAGS_SONAME += -Wl,-soname,
|
|
|
|
QMAKE_LFLAGS_THREAD +=
|
|
|
|
QMAKE_LFLAGS_RPATH = -Wl,-rpath,
|
|
|
|
QMAKE_LFLAGS_RPATHLINK = -Wl,-rpath-link,
|
2012-01-24 17:05:07 +00:00
|
|
|
|
|
|
|
# -Bsymbolic-functions (ld) support
|
|
|
|
QMAKE_LFLAGS_BSYMBOLIC_FUNC = -Wl,-Bsymbolic-functions
|
|
|
|
QMAKE_LFLAGS_DYNAMIC_LIST = -Wl,--dynamic-list,
|
2015-06-02 18:10:22 +00:00
|
|
|
QMAKE_LFLAGS_VERSION_SCRIPT = -Wl,--version-script,
|
2012-01-24 17:05:07 +00:00
|
|
|
|
2015-10-15 13:24:54 +00:00
|
|
|
# Generic options for all QNX qcc mkspecs
|
2012-01-24 17:05:07 +00:00
|
|
|
QMAKE_CFLAGS_THREAD = -D_REENTRANT
|
|
|
|
QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD
|
2013-03-19 01:57:31 +00:00
|
|
|
QMAKE_COMPILER_DEFINES += __QNXNTO__
|
2012-01-24 17:05:07 +00:00
|
|
|
|
|
|
|
QMAKE_LIBS = -lm
|
|
|
|
QMAKE_LIBS_NETWORK = -lsocket
|
|
|
|
|
|
|
|
# OpenGL libraries have a dependency on libEGL
|
|
|
|
QMAKE_LIBS_OPENGL_ES2 = -lGLESv2 -lEGL
|
2012-04-12 12:54:45 +00:00
|
|
|
QMAKE_LIBS_EGL = -lEGL
|
2012-01-24 17:05:07 +00:00
|
|
|
|
|
|
|
# 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) {
|
2013-03-19 13:46:31 +00:00
|
|
|
error("QNX_TARGET environment variable not set")
|
2012-01-24 17:05:07 +00:00
|
|
|
}
|
|
|
|
|
2017-05-16 15:28:22 +00:00
|
|
|
QMAKE_INCDIR_POST = $${QNX_DIR}/usr/include $${QNX_DIR}/usr/include/freetype2
|
|
|
|
QMAKE_LIBDIR_POST = $${QNX_DIR}/$${QNX_CPUDIR}/lib $${QNX_DIR}/$${QNX_CPUDIR}/usr/lib
|
2017-05-16 16:06:24 +00:00
|
|
|
QMAKE_RPATHLINKDIR_POST += $${QNX_DIR}/$${QNX_CPUDIR}/lib $${QNX_DIR}/$${QNX_CPUDIR}/usr/lib
|
2012-01-24 17:05:07 +00:00
|
|
|
|
2018-03-29 16:44:11 +00:00
|
|
|
QMAKE_CXXFLAGS_CXX11 =
|
|
|
|
QMAKE_CXXFLAGS_CXX14 =
|
|
|
|
QMAKE_CXXFLAGS_CXX1Z =
|
|
|
|
|
|
|
|
QMAKE_CXXFLAGS_GNUCXX11 = -Wc,-std=gnu++11
|
|
|
|
QMAKE_CXXFLAGS_GNUCXX14 = -Wc,-std=gnu++1y
|
|
|
|
QMAKE_CXXFLAGS_GNUCXX1Z = -Wc,-std=gnu++1z
|
2012-01-24 17:05:07 +00:00
|
|
|
|
|
|
|
QMAKE_LINK_C = $$QMAKE_CC
|
|
|
|
QMAKE_LINK_C_SHLIB = $$QMAKE_CC
|
|
|
|
|
|
|
|
QMAKE_LINK = $$QMAKE_CXX
|
|
|
|
QMAKE_LINK_SHLIB = $$QMAKE_CXX
|
|
|
|
|
2013-03-19 01:57:31 +00:00
|
|
|
QMAKE_STRIPFLAGS_LIB += --strip-unneeded
|
2012-07-13 09:11:55 +00:00
|
|
|
|
|
|
|
equals(QMAKE_HOST.os, Windows) {
|
|
|
|
isEmpty(QMAKE_SH): error("This mkspec requires an MSYS environment.")
|
|
|
|
QMAKE_DIR_SEP = /
|
2014-04-29 18:25:43 +00:00
|
|
|
QMAKE_DIRLIST_SEP = :
|
2012-07-13 09:11:55 +00:00
|
|
|
}
|