QtSql: establish removed_api.cpp for upcoming QT_SQL_REMOVED_SINCE
Pick-to: 6.4 Change-Id: I6614ed13deee733e0cc53b3d8bb6514b2c000a9b Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Marc Mutz <marc.mutz@qt.io>
This commit is contained in:
parent
7ba39fff8d
commit
62859ccaa6
@ -10,6 +10,7 @@
|
||||
qt_internal_add_module(Sql
|
||||
PLUGIN_TYPES sqldrivers
|
||||
SOURCES
|
||||
compat/removed_api.cpp
|
||||
kernel/qsqlcachedresult.cpp kernel/qsqlcachedresult_p.h
|
||||
kernel/qsqldatabase.cpp kernel/qsqldatabase.h
|
||||
kernel/qsqldriver.cpp kernel/qsqldriver.h kernel/qsqldriver_p.h
|
||||
@ -32,6 +33,8 @@ qt_internal_add_module(Sql
|
||||
Qt::Core
|
||||
PRIVATE_MODULE_INTERFACE
|
||||
Qt::CorePrivate
|
||||
NO_PCH_SOURCES
|
||||
"compat/removed_api.cpp"
|
||||
PRECOMPILED_HEADER
|
||||
"../corelib/global/qt_pch.h"
|
||||
GENERATE_CPP_EXPORTS
|
||||
|
24
src/sql/compat/removed_api.cpp
Normal file
24
src/sql/compat/removed_api.cpp
Normal file
@ -0,0 +1,24 @@
|
||||
// Copyright (C) 2022 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
#define QT_SQL_BUILD_REMOVED_API
|
||||
|
||||
#include "qtsqlglobal.h"
|
||||
|
||||
QT_USE_NAMESPACE
|
||||
|
||||
#if QT_SQL_REMOVED_SINCE(6, 4)
|
||||
|
||||
// #include <qotherheader.h>
|
||||
// // implement removed functions from qotherheader.h
|
||||
// order sections alphabetically to reduce chances of merge conflicts
|
||||
|
||||
#endif // QT_SQL_REMOVED_SINCE(6, 4)
|
||||
|
||||
#if QT_SQL_REMOVED_SINCE(6, 5)
|
||||
|
||||
// #include <qotherheader.h>
|
||||
// // implement removed functions from qotherheader.h
|
||||
// order sections alphabetically to reduce chances of merge conflicts
|
||||
|
||||
#endif // QT_SQL_REMOVED_SINCE(6, 5)
|
Loading…
Reference in New Issue
Block a user