diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-06-05 17:02:52 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-06-08 08:22:42 +0000 |
commit | 5a3e668533450e82d0159596e5c24e738905f5f7 (patch) | |
tree | 87e769d1cd0f6c6d9e83d309eebab46ad634ece8 /tools/qmlplugindump | |
parent | f6f5687032bd6451e52c9ef221fb6a8a5b194389 (diff) |
Port the declarative tools
Also fix up QmlDevTools module to not depend on QtQml,
but instead make it include the headers / cpp files as it is done
in the qmake project.
Change-Id: I240c52d5357db150a7c0c819892fb0a3708ceee4
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tools/qmlplugindump')
-rw-r--r-- | tools/qmlplugindump/.prev_CMakeLists.txt | 40 | ||||
-rw-r--r-- | tools/qmlplugindump/CMakeLists.txt | 41 |
2 files changed, 81 insertions, 0 deletions
diff --git a/tools/qmlplugindump/.prev_CMakeLists.txt b/tools/qmlplugindump/.prev_CMakeLists.txt new file mode 100644 index 0000000000..c9c78e6a55 --- /dev/null +++ b/tools/qmlplugindump/.prev_CMakeLists.txt @@ -0,0 +1,40 @@ +# Generated from qmlplugindump.pro. + +##################################################################### +## qmlplugindump Tool: +##################################################################### + +add_qt_tool(qmlplugindump + SOURCES + main.cpp + qmlstreamwriter.cpp qmlstreamwriter.h + qmltypereader.cpp qmltypereader.h + LIBRARIES + Qt::CorePrivate + Qt::QmlPrivate + Qt::QuickPrivate + PUBLIC_LIBRARIES + Qt::Qml + Qt::Quick +) + +#### Keys ignored in scope 1:.:.:qmlplugindump.pro:<TRUE>: +# QMAKE_TARGET_DESCRIPTION = "QML" "Plugin" "Metadata" "Dumper" +# QTPLUGIN.platforms = "qminimal" +# _LOADED = "qt_tool" + +## Scopes: +##################################################################### + +extend_target(qmlplugindump CONDITION TARGET Qt::Widgets + PUBLIC_LIBRARIES + Qt::Widgets +) + +extend_target(qmlplugindump CONDITION APPLE_OSX + LINK_OPTIONS + "-Wl,-sectcreate,__TEXT,__info_plist,$$shell_quote$$PWD/Info.plist" +) + +#### Keys ignored in scope 3:.:.:qmlplugindump.pro:APPLE_OSX: +# CONFIG = "-app_bundle" diff --git a/tools/qmlplugindump/CMakeLists.txt b/tools/qmlplugindump/CMakeLists.txt new file mode 100644 index 0000000000..67abd0e516 --- /dev/null +++ b/tools/qmlplugindump/CMakeLists.txt @@ -0,0 +1,41 @@ +# Generated from qmlplugindump.pro. + +##################################################################### +## qmlplugindump Tool: +##################################################################### + +add_qt_tool(qmlplugindump + TOOLS_TARGET Qml # special case + SOURCES + main.cpp + qmlstreamwriter.cpp qmlstreamwriter.h + qmltypereader.cpp qmltypereader.h + LIBRARIES + Qt::CorePrivate + Qt::QmlPrivate + Qt::QuickPrivate + PUBLIC_LIBRARIES + Qt::Qml + Qt::Quick +) + +#### Keys ignored in scope 1:.:.:qmlplugindump.pro:<TRUE>: +# QMAKE_TARGET_DESCRIPTION = "QML" "Plugin" "Metadata" "Dumper" +# QTPLUGIN.platforms = "qminimal" +# _LOADED = "qt_tool" + +## Scopes: +##################################################################### + +extend_target(qmlplugindump CONDITION TARGET Qt::Widgets + PUBLIC_LIBRARIES + Qt::Widgets +) + +extend_target(qmlplugindump CONDITION APPLE_OSX + LINK_OPTIONS + "-Wl,-sectcreate,__TEXT,__info_plist,${CMAKE_CURRENT_SOURCE_DIR}/Info.plist" # special case +) + +#### Keys ignored in scope 3:.:.:qmlplugindump.pro:APPLE_OSX: +# CONFIG = "-app_bundle" |