genode/repos/libports/lib/mk/qt5_core.mk
Norman Feske 366bba0227 Exclude higher-level repos from strict warnings
This is a follow-up commit to "Increase default warning level", which
overrides Genode's new default warning level for targets contained in
higher-level repositories. By explicitly whitelisting all those targets,
we can selectively adjust them to the new strictness over time - by
looking out for 'CC_CXX_WARN_STRICT' in the target description files.

Issue #465
2018-01-17 12:14:36 +01:00

41 lines
1.2 KiB
Makefile

include $(REP_DIR)/lib/import/import-qt5_core.mk
SHARED_LIB = yes
# use default warning level to avoid noise when compiling contrib code
CC_WARN = -Wno-unused-but-set-variable -Wno-deprecated-declarations
include $(REP_DIR)/lib/mk/qt5_core_generated.inc
# add Genode-specific sources
QT_SOURCES += qthread_genode.cpp
# remove unsupported UNIX-specific files
QT_SOURCES_FILTER_OUT = \
forkfd_qt.cpp \
moc_qfilesystemwatcher_inotify_p.cpp \
qfilesystemwatcher_inotify.cpp \
qthread_unix.cpp
# remove unneeded files to prevent moc warnings
COMPILER_MOC_HEADER_MAKE_ALL_FILES_FILTER_OUT = \
moc_qobjectdefs.cpp \
moc_qprocess.cpp \
moc_qsharedmemory.cpp
include $(REP_DIR)/lib/mk/qt5.inc
# reduce 'not implemented yet' noise
SRC_CC += libc_dummies.cc
vpath libc_dummies.cc $(REP_DIR)/src/lib/qt5
INC_DIR += $(REP_DIR)/include/qt5/qtbase/QtCore/private \
$(REP_DIR)/src/lib/qt5/qtbase/src/corelib/thread \
$(QT5_CONTRIB_DIR)/qtbase/include/QtCore/$(QT_VERSION) \
$(QT5_CONTRIB_DIR)/qtbase/include/QtCore/$(QT_VERSION)/QtCore \
$(QT5_CONTRIB_DIR)/qtbase/include/QtCore/$(QT_VERSION)/QtCore/private
LIBS += qt5_host_tools zlib pcre16 libc libm libc_pipe pthread
CC_CXX_WARN_STRICT =