2011-04-27 10:05:43 +00:00
|
|
|
# Qt kernel library base module
|
|
|
|
|
|
|
|
HEADERS += \
|
|
|
|
global/qglobal.h \
|
2016-04-23 03:54:51 +00:00
|
|
|
global/qoperatingsystemversion.h \
|
|
|
|
global/qoperatingsystemversion_p.h \
|
2012-02-03 19:26:24 +00:00
|
|
|
global/qsystemdetection.h \
|
2012-02-04 13:20:32 +00:00
|
|
|
global/qcompilerdetection.h \
|
Add qprocessordetection.h
This detects the target processor based on preprocessor #defines,
setting Q_PROCESSOR_${FAMILY} accordingly. Optional
Q_PROCESSOR_${FAMILY}_${REVISION/VARIANT} #defines are also provided,
usually dependent on how the compiler is invoked.
Currently detected families (and variants) include:
ARM (v5, v6, and v7)
X86 (i386 and x86_64, as X86_32 and X86_64 respectively)
IA-64
MIPS (I, II, III, IV, 32, 64)
Other families that currently are not detected, but Qt has (or had)
support for include:
Alpha
AVR32
Blackfin
PA-RISC
PowerPC (optional 64-bit variant)
S390 (and S390X 64-bit variant)
SH (and SH-4A)
SPARC (SPARC V9)
Detection for these is currently commented out, and can
be easily enabled later.
Change-Id: I571f245c189b9d80c7c3a5369ac595a271f37c8b
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2012-02-05 12:10:55 +00:00
|
|
|
global/qprocessordetection.h \
|
2011-04-27 10:05:43 +00:00
|
|
|
global/qnamespace.h \
|
|
|
|
global/qendian.h \
|
|
|
|
global/qnumeric_p.h \
|
QtDebug: Include file, line, function information
Record the file, line, and function where a qDebug, qWarning, qCritical
or qFatal call happens, and make this information available in a custom
message handler.
The patch uses the C preprocessor to replace qDebug, qWarning, ... with
a line that also records the current file, line, and function. Custom
message handlers can access this information via a new QMessageLogContext
argument.
Change-Id: I0a9b89c1d137e41775932d3b1a35da4ebf12d18d
Reviewed-by: David Faure <faure@kde.org>
2012-01-17 15:20:45 +00:00
|
|
|
global/qnumeric.h \
|
2013-06-23 00:43:46 +00:00
|
|
|
global/qfloat16_p.h \
|
|
|
|
global/qfloat16.h \
|
2012-02-24 17:44:17 +00:00
|
|
|
global/qglobalstatic.h \
|
2012-10-15 20:48:07 +00:00
|
|
|
global/qlibraryinfo.h \
|
2012-02-04 13:32:16 +00:00
|
|
|
global/qlogging.h \
|
2012-02-20 08:41:09 +00:00
|
|
|
global/qtypeinfo.h \
|
2012-02-07 02:25:07 +00:00
|
|
|
global/qsysinfo.h \
|
|
|
|
global/qisenum.h \
|
2012-03-28 19:54:15 +00:00
|
|
|
global/qtypetraits.h \
|
2014-04-15 11:11:40 +00:00
|
|
|
global/qflags.h \
|
2015-06-02 18:30:57 +00:00
|
|
|
global/qhooks_p.h \
|
|
|
|
global/qversiontagging.h
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
SOURCES += \
|
2014-03-06 20:58:21 +00:00
|
|
|
global/archdetect.cpp \
|
2011-04-27 10:05:43 +00:00
|
|
|
global/qglobal.cpp \
|
2013-01-23 02:26:25 +00:00
|
|
|
global/qglobalstatic.cpp \
|
2011-04-27 10:05:43 +00:00
|
|
|
global/qlibraryinfo.cpp \
|
|
|
|
global/qmalloc.cpp \
|
QtDebug: Include file, line, function information
Record the file, line, and function where a qDebug, qWarning, qCritical
or qFatal call happens, and make this information available in a custom
message handler.
The patch uses the C preprocessor to replace qDebug, qWarning, ... with
a line that also records the current file, line, and function. Custom
message handlers can access this information via a new QMessageLogContext
argument.
Change-Id: I0a9b89c1d137e41775932d3b1a35da4ebf12d18d
Reviewed-by: David Faure <faure@kde.org>
2012-01-17 15:20:45 +00:00
|
|
|
global/qnumeric.cpp \
|
2013-06-23 00:43:46 +00:00
|
|
|
global/qfloat16.cpp \
|
2016-04-23 03:54:51 +00:00
|
|
|
global/qoperatingsystemversion.cpp \
|
2014-04-15 11:11:40 +00:00
|
|
|
global/qlogging.cpp \
|
2016-05-18 17:30:45 +00:00
|
|
|
global/qhooks.cpp
|
|
|
|
|
|
|
|
VERSIONTAGGING_SOURCES = global/qversiontagging.cpp
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2016-04-23 03:54:51 +00:00
|
|
|
darwin: SOURCES += global/qoperatingsystemversion_darwin.mm
|
|
|
|
win32: SOURCES += global/qoperatingsystemversion_win.cpp
|
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
# qlibraryinfo.cpp includes qconfig.cpp
|
|
|
|
INCLUDEPATH += $$QT_BUILD_TREE/src/corelib/global
|
|
|
|
|
|
|
|
# Only used on platforms with CONFIG += precompile_header
|
|
|
|
PRECOMPILED_HEADER = global/qt_pch.h
|
|
|
|
|
2014-12-30 17:26:09 +00:00
|
|
|
# qlogging.cpp uses backtrace(3), which is in a separate library on the BSDs.
|
2015-01-27 01:02:59 +00:00
|
|
|
LIBS_PRIVATE += $$QMAKE_LIBS_EXECINFO
|
2014-12-30 17:26:09 +00:00
|
|
|
|
2014-12-30 12:04:39 +00:00
|
|
|
if(linux*|hurd*):!cross_compile:!static:!*-armcc* {
|
2011-04-27 10:05:43 +00:00
|
|
|
QMAKE_LFLAGS += -Wl,-e,qt_core_boilerplate
|
|
|
|
prog=$$quote(if (/program interpreter: (.*)]/) { print $1; })
|
2015-07-11 02:42:47 +00:00
|
|
|
DEFINES += ELF_INTERPRETER=\\\"$$system(LC_ALL=C readelf -l /bin/ls | perl -n -e \'$$prog\')\\\"
|
2011-04-27 10:05:43 +00:00
|
|
|
}
|
|
|
|
|
2016-11-18 11:57:53 +00:00
|
|
|
qtConfig(slog2): \
|
2012-09-18 18:15:18 +00:00
|
|
|
LIBS_PRIVATE += -lslog2
|
2014-01-01 16:36:24 +00:00
|
|
|
|
2016-11-18 11:57:53 +00:00
|
|
|
qtConfig(journald): \
|
2016-10-25 13:22:01 +00:00
|
|
|
QMAKE_USE_PRIVATE += journald
|
2016-05-18 17:30:45 +00:00
|
|
|
|
|
|
|
gcc:ltcg {
|
|
|
|
versiontagging_compiler.commands = $$QMAKE_CXX -c $(CXXFLAGS) $(INCPATH)
|
|
|
|
|
|
|
|
# Disable LTO, as the symbols disappear somehow under GCC
|
|
|
|
versiontagging_compiler.commands += -fno-lto
|
|
|
|
|
|
|
|
versiontagging_compiler.commands += -o ${QMAKE_FILE_OUT} ${QMAKE_FILE_IN}
|
|
|
|
versiontagging_compiler.dependency_type = TYPE_C
|
|
|
|
versiontagging_compiler.output = ${QMAKE_VAR_OBJECTS_DIR}${QMAKE_FILE_BASE}$${first(QMAKE_EXT_OBJ)}
|
|
|
|
versiontagging_compiler.input = VERSIONTAGGING_SOURCES
|
|
|
|
versiontagging_compiler.variable_out = OBJECTS
|
|
|
|
versiontagging_compiler.name = compiling[versiontagging] ${QMAKE_FILE_IN}
|
|
|
|
silent: versiontagging_compiler.commands = @echo compiling[versiontagging] ${QMAKE_FILE_IN} && $$versiontagging_compiler.commands
|
|
|
|
QMAKE_EXTRA_COMPILERS += versiontagging_compiler
|
|
|
|
} else {
|
|
|
|
SOURCES += $$VERSIONTAGGING_SOURCES
|
|
|
|
}
|
2013-06-23 00:43:46 +00:00
|
|
|
|
2017-02-24 15:26:30 +00:00
|
|
|
# On AARCH64 the fp16 extension is mandatory, so we don't need the conversion tables.
|
|
|
|
!contains(QT_ARCH, "arm64") {
|
|
|
|
QMAKE_QFLOAT16_TABLES_GENERATE = global/qfloat16.h
|
|
|
|
|
|
|
|
qtPrepareTool(QMAKE_QFLOAT16_TABLES, qfloat16-tables)
|
|
|
|
|
|
|
|
qfloat16_tables.commands = $$QMAKE_QFLOAT16_TABLES ${QMAKE_FILE_OUT}
|
|
|
|
qfloat16_tables.output = global/qfloat16tables.cpp
|
|
|
|
qfloat16_tables.depends = $$QMAKE_QFLOAT16_TABLES
|
|
|
|
qfloat16_tables.input = QMAKE_QFLOAT16_TABLES_GENERATE
|
|
|
|
qfloat16_tables.variable_out = SOURCES
|
|
|
|
QMAKE_EXTRA_COMPILERS += qfloat16_tables
|
|
|
|
}
|