Move duplicated code between two headers to include qconfig.h
Change-Id: I76216ced393445a4ae2dfffd17297e2b059350d3 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>bb10
parent
18def77d27
commit
61935786c3
|
|
@ -85,6 +85,7 @@ qt_internal_add_module(Core
|
|||
global/qsysinfo.cpp global/qsysinfo.h
|
||||
global/qsystemdetection.h
|
||||
global/qtclasshelpermacros.h
|
||||
global/qtconfiginclude.h
|
||||
global/qtconfigmacros.h
|
||||
global/qtdeprecationmarkers.h
|
||||
global/qtenvironmentvariables.cpp global/qtenvironmentvariables.h
|
||||
|
|
|
|||
|
|
@ -0,0 +1,21 @@
|
|||
// Copyright (C) 2022 Intel Corporation
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
#ifndef QTCONFIGINCLUDE_H
|
||||
#define QTCONFIGINCLUDE_H
|
||||
|
||||
#if 0
|
||||
# pragma qt_sync_stop_processing
|
||||
#endif
|
||||
|
||||
#ifdef QT_BOOTSTRAPPED
|
||||
// qconfig-bootstrapped.h is not supposed to be a part of the synced header files. So we find it by
|
||||
// the include path specified for Bootstrap library in the source tree instead of the build tree as
|
||||
// it's done for regular header files.
|
||||
#include "qconfig-bootstrapped.h"
|
||||
#else
|
||||
#include <QtCore/qconfig.h>
|
||||
#include <QtCore/qtcore-config.h>
|
||||
#endif
|
||||
|
||||
#endif // QTCONFIGINCLUDE_H
|
||||
|
|
@ -7,15 +7,8 @@
|
|||
#if 0
|
||||
# pragma qt_sync_stop_processing
|
||||
#endif
|
||||
#ifdef QT_BOOTSTRAPPED
|
||||
// qconfig-bootstrapped.h is not supposed to be a part of the synced header files. So we find it by
|
||||
// the include path specified for Bootstrap library in the source tree instead of the build tree as
|
||||
// it's done for regular header files.
|
||||
#include "qconfig-bootstrapped.h"
|
||||
#else
|
||||
#include <QtCore/qconfig.h>
|
||||
#include <QtCore/qtcore-config.h>
|
||||
#endif
|
||||
|
||||
#include <QtCore/qtconfiginclude.h>
|
||||
|
||||
/*
|
||||
The Qt modules' export macros.
|
||||
|
|
|
|||
|
|
@ -9,15 +9,7 @@
|
|||
#pragma qt_sync_stop_processing
|
||||
#endif
|
||||
|
||||
#ifdef QT_BOOTSTRAPPED
|
||||
// qconfig-bootstrapped.h is not supposed to be a part of the synced header files. So we find it by
|
||||
// the include path specified for Bootstrap library in the source tree instead of the build tree as
|
||||
// it's done for regular header files.
|
||||
#include "qconfig-bootstrapped.h"
|
||||
#else
|
||||
#include <QtCore/qconfig.h>
|
||||
#include <QtCore/qtcore-config.h>
|
||||
#endif
|
||||
#include <QtCore/qtconfiginclude.h>
|
||||
|
||||
/*
|
||||
QT_VERSION is (major << 16) | (minor << 8) | patch.
|
||||
|
|
|
|||
Loading…
Reference in New Issue