From 82435af22634ce7fcd194ea56fc063a76bc66ec3 Mon Sep 17 00:00:00 2001 From: Leander Beernaert Date: Fri, 19 Jul 2019 14:33:14 +0200 Subject: Initial CMake conversion for QtQuickControls2 The CMake setup only covers everything under the src directory. Tests and examples will follow in separate patches. Change-Id: Ic4dbf6efa3128d0eea3af99117ba87690cb51077 Reviewed-by: Simon Hausmann --- src/imports/controls/.prev_CMakeLists.txt | 146 ++++++++++++++++++++++++++++++ 1 file changed, 146 insertions(+) create mode 100644 src/imports/controls/.prev_CMakeLists.txt (limited to 'src/imports/controls/.prev_CMakeLists.txt') diff --git a/src/imports/controls/.prev_CMakeLists.txt b/src/imports/controls/.prev_CMakeLists.txt new file mode 100644 index 00000000..84f9573c --- /dev/null +++ b/src/imports/controls/.prev_CMakeLists.txt @@ -0,0 +1,146 @@ +# Generated from controls.pro. + +##################################################################### +## qtquickcontrols2plugin Plugin: +##################################################################### + +add_qml_module(qtquickcontrols2plugin + CPP_PLUGIN + TARGET_PATH "QtQuick/Controls.2" + URI "QtQuick.Controls" + VERSION "2.${CMAKE_PROJECT_VERSION_MINOR}" + RESOURCE_PREFIX "/qt-project.org/imports" + SOURCES + qquickdefaultbusyindicator.cpp qquickdefaultbusyindicator_p.h + qquickdefaultdial.cpp qquickdefaultdial_p.h + qquickdefaultprogressbar.cpp qquickdefaultprogressbar_p.h + qquickdefaultstyle.cpp qquickdefaultstyle_p.h + qquickdefaulttheme.cpp qquickdefaulttheme_p.h + qtquickcontrols2plugin.cpp + DEFINES + QT_NO_CAST_FROM_ASCII + QT_NO_CAST_TO_ASCII + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + Qt::QmlPrivate + Qt::QuickControls2Private + Qt::QuickPrivate + Qt::QuickTemplates2Private + PUBLIC_LIBRARIES + Qt::Core + Qt::Gui + Qt::Qml + Qt::Quick +) + +# Resources: +add_qt_resource(qtquickcontrols2plugin "qtquickcontrols2plugin" + PREFIX + "/qt-project.org/imports/QtQuick/Controls.2" + FILES + images/arrow-indicator.png + images/arrow-indicator@2x.png + images/arrow-indicator@3x.png + images/arrow-indicator@4x.png + images/check.png + images/check@2x.png + images/check@3x.png + images/check@4x.png + images/dial-indicator.png + images/dial-indicator@2x.png + images/dial-indicator@3x.png + images/dial-indicator@4x.png + images/double-arrow.png + images/double-arrow@2x.png + images/double-arrow@3x.png + images/double-arrow@4x.png + images/drop-indicator.png + images/drop-indicator@2x.png + images/drop-indicator@3x.png + images/drop-indicator@4x.png +) + + +set(qml_files + AbstractButton.qml + Action.qml + ActionGroup.qml + ApplicationWindow.qml + BusyIndicator.qml + Button.qml + ButtonGroup.qml + CheckBox.qml + CheckDelegate.qml + ComboBox.qml + Container.qml + Control.qml + DelayButton.qml + Dial.qml + Dialog.qml + DialogButtonBox.qml + Drawer.qml + Frame.qml + GroupBox.qml + ItemDelegate.qml + Label.qml + Menu.qml + MenuBar.qml + MenuBarItem.qml + MenuItem.qml + MenuSeparator.qml + Page.qml + PageIndicator.qml + Pane.qml + Popup.qml + ProgressBar.qml + RadioButton.qml + RadioDelegate.qml + RangeSlider.qml + RoundButton.qml + ScrollBar.qml + ScrollIndicator.qml + ScrollView.qml + Slider.qml + SpinBox.qml + SplitView.qml + StackView.qml + SwipeDelegate.qml + Switch.qml + SwitchDelegate.qml + SwipeView.qml + TabBar.qml + TabButton.qml + TextArea.qml + TextField.qml + ToolBar.qml + ToolButton.qml + ToolSeparator.qml + ToolTip.qml + Tumbler.qml +) + +add_qt_resource(qtquickcontrols2plugin qmake_QtQuick_Controls_2 + PREFIX + "/qt-project.org/imports/QtQuick/Controls.2" + FILES + ${qml_files} +) + +qt_install_qml_files(qtquickcontrols2plugin + FILES ${qml_files} +) + + +#### Keys ignored in scope 1:.:.:controls.pro:: +# CONFIG = "no_cxx_module" "install_qml_files" "builtin_resources" "qtquickcompiler" +# IMPORT_VERSION = "2.$$QT_MINOR_VERSION" +# OTHER_FILES = "qmldir" "$$QML_FILES" "$$files$$PWD/snippets/*.qml" "$$files$$PWD/src/*.qdoc" "$$files$$PWD/src/calendar/*.qdoc" "$$files$$PWD/src/templates/*.qdoc" +# _LOADED = "qml_plugin" + +## Scopes: +##################################################################### +add_qt_docs( + doc/qtquickcontrols.qdocconf +) + -- cgit v1.2.3