Clean up tinycbor handling

Now that pro2cmake handles the include path resolution more like qmake,
the tinycbor wrapper target is not needed anymore.

Re-generated some CMakeLists.txt to complete that step.

Change-Id: I032b2e9bdf9e26f63f3c550d7bca5df93369a82a
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Qt CMake Build Bot
This commit is contained in:
Simon Hausmann 2019-10-08 09:38:43 +02:00
parent d56e627427
commit a48a3e95cf
7 changed files with 91 additions and 15 deletions

View File

@ -1,4 +1,3 @@
add_subdirectory(tinycbor)
add_subdirectory(harfbuzz)
add_subdirectory(double-conversion)

View File

@ -1,6 +0,0 @@
add_library(tinycbor INTERFACE)
target_include_directories(tinycbor
INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>)
qt_install_3rdparty_library(tinycbor)

View File

@ -238,6 +238,7 @@ add_qt_module(Core
QT_NO_USING_NAMESPACE
INCLUDE_DIRECTORIES
${CMAKE_CURRENT_BINARY_DIR}/global # special case
../3rdparty/tinycbor/src
# special case: remove ../3rdparty/...
PRECOMPILED_HEADER
global/qt_pch.h
@ -249,7 +250,6 @@ add_qt_module(Core
Qt::GlobalConfigPrivate # special case
QtHarfBuzz # special case
Threads::Threads # special case
tinycbor # special case
WrapDoubleConversion::WrapDoubleConversion # special case
PUBLIC_LIBRARIES # special case:
Qt::Platform # special case:

View File

@ -0,0 +1,33 @@
# Generated from moc.pro.
#####################################################################
## moc Tool:
#####################################################################
add_qt_tool(moc
BOOTSTRAP
SOURCES
cbordevice.h
generator.cpp generator.h
moc.cpp moc.h
outputrevision.h
parser.cpp parser.h
preprocessor.cpp preprocessor.h
symbols.h
token.cpp token.h
utils.h
DEFINES
QT_MOC
QT_NO_CAST_FROM_ASCII
QT_NO_CAST_FROM_BYTEARRAY
QT_NO_COMPRESS
QT_NO_FOREACH
INCLUDE_DIRECTORIES
${CMAKE_CURRENT_SOURCE_DIR}
../../3rdparty/tinycbor/src
)
#### Keys ignored in scope 1:.:.:moc.pro:<TRUE>:
# QMAKE_TARGET_DESCRIPTION = "Qt Meta Object Compiler"
# _LOADED = "qt_tool"
# _OPTION = "host_build"

View File

@ -24,10 +24,12 @@ add_qt_tool(moc
QT_NO_CAST_FROM_BYTEARRAY
QT_NO_COMPRESS
QT_NO_FOREACH
LIBRARIES
tinycbor
# CONFIG = "force_bootstrap"
# QMAKE_TARGET_DESCRIPTION = "Qt Meta Object Compiler"
# _LOADED = "qt_tool"
# _OPTION = "host_build"
INCLUDE_DIRECTORIES
${CMAKE_CURRENT_SOURCE_DIR}
../../3rdparty/tinycbor/src
)
#### Keys ignored in scope 1:.:.:moc.pro:<TRUE>:
# QMAKE_TARGET_DESCRIPTION = "Qt Meta Object Compiler"
# _LOADED = "qt_tool"
# _OPTION = "host_build"

View File

@ -0,0 +1,48 @@
# Generated from qdbuscpp2xml.pro.
#####################################################################
## qdbuscpp2xml Tool:
#####################################################################
add_qt_tool(qdbuscpp2xml
SOURCES
../moc/cbordevice.h
../moc/generator.cpp ../moc/generator.h
../moc/moc.cpp ../moc/moc.h
../moc/outputrevision.h
../moc/parser.cpp ../moc/parser.h
../moc/preprocessor.cpp ../moc/preprocessor.h
../moc/symbols.h
../moc/token.cpp ../moc/token.h
../moc/utils.h
DEFINES
QT_NO_CAST_FROM_ASCII
QT_NO_FOREACH
INCLUDE_DIRECTORIES
../moc
../moc/../../3rdparty/tinycbor/src
LIBRARIES
Qt::CorePrivate
)
#### Keys ignored in scope 1:.:.:qdbuscpp2xml.pro:<TRUE>:
# QMAKE_TARGET_DESCRIPTION = "Qt D-Bus C++ to XML Compiler"
# _LOADED = "qt_tool"
# _OPTION = "host_build"
## Scopes:
#####################################################################
extend_target(qdbuscpp2xml CONDITION force_bootstrap
LIBRARIES
bootstrap_dbusPrivate
PUBLIC_LIBRARIES
bootstrap_dbus
)
extend_target(qdbuscpp2xml CONDITION NOT force_bootstrap
LIBRARIES
Qt::DBusPrivate
PUBLIC_LIBRARIES
Qt::DBus
)

View File

@ -22,8 +22,8 @@ add_qt_tool(qdbuscpp2xml
QT_NO_FOREACH
INCLUDE_DIRECTORIES
../moc
../moc/../../3rdparty/tinycbor/src
LIBRARIES
tinycbor # special case
Qt::CorePrivate
Qt::DBusPrivate
# COMPILE_OPTIONS # special case