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/qmlcachegen | |
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/qmlcachegen')
-rw-r--r-- | tools/qmlcachegen/.prev_CMakeLists.txt | 49 | ||||
-rw-r--r-- | tools/qmlcachegen/CMakeLists.txt | 50 |
2 files changed, 99 insertions, 0 deletions
diff --git a/tools/qmlcachegen/.prev_CMakeLists.txt b/tools/qmlcachegen/.prev_CMakeLists.txt new file mode 100644 index 0000000000..d4ad2adb6d --- /dev/null +++ b/tools/qmlcachegen/.prev_CMakeLists.txt @@ -0,0 +1,49 @@ +# Generated from qmlcachegen.pro. + +##################################################################### +## qmlcachegen Tool: +##################################################################### + +add_qt_tool(qmlcachegen + SOURCES + generateloader.cpp + qmlcachegen.cpp + resourcefilemapper.cpp resourcefilemapper.h + resourcefilter.cpp + DEFINES + QT_NO_CAST_FROM_ASCII + QT_NO_CAST_TO_ASCII + LIBRARIES + Qt::QmlDevToolsPrivate + PUBLIC_LIBRARIES + Qt::QmlDevTools +) + +#### Keys ignored in scope 1:.:.:qmlcachegen.pro:<TRUE>: +# CMAKE_BIN_DIR = "$$cmakeRelativePath$$[QT_HOST_BINS],$$[QT_INSTALL_PREFIX]" +# QMAKE_SUBSTITUTES = "cmake_config_file" +# QMAKE_TARGET_DESCRIPTION = "QML" "Cache" "Generator" +# _LOADED = "cmake_functions" "qt_build_paths" "qt_tool" +# _OPTION = "host_build" +# build_integration.files = "qmlcache.prf" "qtquickcompiler.prf" +# build_integration.path = "$$[QT_HOST_DATA]/mkspecs/features" +# cmake_build_integration.files = "$$cmake_config_file.output" +# cmake_build_integration.path = "$$[QT_INSTALL_LIBS]/cmake/Qt5QuickCompiler" +# cmake_config_file.input = "$$PWD/Qt5QuickCompilerConfig.cmake.in" +# cmake_config_file.output = "$$MODULE_BASE_OUTDIR/lib/cmake/Qt5QuickCompiler/Qt5QuickCompilerConfig.cmake" + +## Scopes: +##################################################################### + +#### Keys ignored in scope 2:.:.:qmlcachegen.pro:prefix_build: +# INSTALLS = "build_integration" "cmake_build_integration" + +#### Keys ignored in scope 3:.:.:qmlcachegen.pro:else: +# COPIES = "build_integration" "cmake_build_integration" + +#### Keys ignored in scope 4:.:.:qmlcachegen.pro:CMAKE_BIN_DIR___contains___^\\.\\./._x_: +# CMAKE_BIN_DIR = "$$[QT_HOST_BINS]/" +# CMAKE_BIN_DIR_IS_ABSOLUTE = "True" + +#### Keys ignored in scope 5:.:.:qmlcachegen.pro:QMAKE_HOST.os___equals___Windows: +# CMAKE_BIN_SUFFIX = ".exe" diff --git a/tools/qmlcachegen/CMakeLists.txt b/tools/qmlcachegen/CMakeLists.txt new file mode 100644 index 0000000000..253421bbc4 --- /dev/null +++ b/tools/qmlcachegen/CMakeLists.txt @@ -0,0 +1,50 @@ +# Generated from qmlcachegen.pro. + +##################################################################### +## qmlcachegen Tool: +##################################################################### + +add_qt_tool(qmlcachegen + TOOLS_TARGET Qml # special case + SOURCES + generateloader.cpp + qmlcachegen.cpp + resourcefilemapper.cpp resourcefilemapper.h + resourcefilter.cpp + DEFINES + QT_NO_CAST_FROM_ASCII + QT_NO_CAST_TO_ASCII + LIBRARIES + Qt::QmlDevToolsPrivate + PUBLIC_LIBRARIES + Qt::QmlDevTools +) + +#### Keys ignored in scope 1:.:.:qmlcachegen.pro:<TRUE>: +# CMAKE_BIN_DIR = "$$cmakeRelativePath$$[QT_HOST_BINS],$$[QT_INSTALL_PREFIX]" +# QMAKE_SUBSTITUTES = "cmake_config_file" +# QMAKE_TARGET_DESCRIPTION = "QML" "Cache" "Generator" +# _LOADED = "cmake_functions" "qt_build_paths" "qt_tool" +# _OPTION = "host_build" +# build_integration.files = "qmlcache.prf" "qtquickcompiler.prf" +# build_integration.path = "$$[QT_HOST_DATA]/mkspecs/features" +# cmake_build_integration.files = "$$cmake_config_file.output" +# cmake_build_integration.path = "$$[QT_INSTALL_LIBS]/cmake/Qt5QuickCompiler" +# cmake_config_file.input = "$$PWD/Qt5QuickCompilerConfig.cmake.in" +# cmake_config_file.output = "$$MODULE_BASE_OUTDIR/lib/cmake/Qt5QuickCompiler/Qt5QuickCompilerConfig.cmake" + +## Scopes: +##################################################################### + +#### Keys ignored in scope 2:.:.:qmlcachegen.pro:prefix_build: +# INSTALLS = "build_integration" "cmake_build_integration" + +#### Keys ignored in scope 3:.:.:qmlcachegen.pro:else: +# COPIES = "build_integration" "cmake_build_integration" + +#### Keys ignored in scope 4:.:.:qmlcachegen.pro:CMAKE_BIN_DIR___contains___^\\.\\./._x_: +# CMAKE_BIN_DIR = "$$[QT_HOST_BINS]/" +# CMAKE_BIN_DIR_IS_ABSOLUTE = "True" + +#### Keys ignored in scope 5:.:.:qmlcachegen.pro:QMAKE_HOST.os___equals___Windows: +# CMAKE_BIN_SUFFIX = ".exe" |