Debian Codegraph @

src/imports/Components/CMakeLists.txt

raw
1 set_source_files_properties(2.0/LomiriColors.qml
2 PROPERTIES
3 QT_QML_SINGLETON_TYPE TRUE
4 )
5
6 set_source_files_properties(2.0/dateUtils.js
7 PROPERTIES
8 QT_QML_SOURCE_TYPENAME DateUtils
9 )
10
11 qt_add_qml_module(LomiriComponents
12 URI Lomiri.Components
13 VERSION 2.0
14 PLUGIN_TARGET LomiriComponents
15 CLASS_NAME LomiriComponentsPlugin
16 OUTPUT_DIRECTORY "${QML_BUILD_DIR}/Lomiri/Components"
17 NO_GENERATE_EXTRA_QMLDIRS
18 NO_GENERATE_QMLTYPES
19 NO_GENERATE_PLUGIN_SOURCE
20 NO_PLUGIN_OPTIONAL
21 SOURCES
22 plugin/plugin.cpp
23 QML_FILES
24 2.0/ActionBar.qml
25 2.0/ActionList.qml
26 2.0/ActivityIndicator.qml
27 2.0/AdaptivePageLayout.qml
28 2.0/AnimatedItem.qml
29 2.0/AppHeader.qml
30 2.0/Button.qml
31 2.0/Captions.qml
32 2.0/CheckBox.qml
33 2.0/ComboButton.qml
34 2.0/CrossFadeImage.qml
35 2.0/DraggingArea.qml
36 2.0/Icon.qml
37 2.0/InputHandler.qml
38 2.0/Internal__Haptics.qml # fails to load in uchaptics.cpp if marked internal
39 2.0/Internal__ListItemPopover.qml
40 2.0/LomiriColors.qml
41 2.0/LomiriListView.qml
42 2.0/LomiriNumberAnimation.qml
43 2.0/MainView.qml
44 2.0/OptionSelector.qml
45 2.0/OptionSelectorDelegate.qml
46 2.0/OrientationHelper.qml
47 2.0/Page.qml
48 2.0/PageColumn.qml
49 2.0/PageColumnsLayout.qml
50 2.0/PageHeadConfiguration.qml
51 2.0/PageHeader.qml
52 2.0/PageHeadSections.qml
53 2.0/PageHeadState.qml
54 2.0/PageStack.qml
55 2.0/Panel.qml
56 2.0/ProgressBar.qml
57 2.0/ProgressionSlot.qml
58 2.0/PullToRefresh.qml
59 2.0/Scrollbar.qml
60 2.0/ScrollView.qml
61 2.0/Sections.qml
62 2.0/Slider.qml
63 2.0/Switch.qml
64 2.0/Tab.qml
65 2.0/TabBar.qml
66 2.0/Tabs.qml
67 2.0/TextArea.qml
68 2.0/TextCursor.qml
69 2.0/TextField.qml
70 2.0/TextInputPopover.qml
71 2.0/Toolbar.qml
72 2.0/ToolbarButton.qml
73 2.0/ToolbarItems.qml
74 2.0/dateUtils.js
75 2.0/pageUtils.js
76 2.0/stack.js
77 RESOURCES
78 artwork/[email protected]
79 artwork/[email protected]
80 artwork/[email protected]
81 )
82
83 target_link_libraries(LomiriComponents PRIVATE
84 LomiriToolkit
85 Qt::Core
86 Qt::CorePrivate
87 Qt::Gui
88 Qt::GuiPrivate
89 Qt::Qml
90 Qt::Quick
91 )
92
93 qt6_add_shaders(LomiriComponents "LomiriComponents_shaders"
94 PRECOMPILE
95 OPTIMIZED
96 FILES
97 "2.0/shaders/colorizeimage.frag"
98 "2.0/shaders/colourshader.frag"
99 "Themes/Ambiance/shaders/magnifier.frag"
100 "Themes/Ambiance/shaders/magnifier.vert"
101 "Themes/Ambiance/shaders/partialcolorize.frag"
102 )
103
104 install_qml_module(LomiriComponents)
105
106 # Woraround for https://qt-project.atlassian.net/browse/QTBUG-144829
107 # The qmldir "prefer" directive is ignored for scripts in some cases,
108 # so for now we install the JavaScript file.
109 install(FILES "2.0/dateUtils.js"
110 DESTINATION "${QML_INSTALL_DIR}/Lomiri/Components/2.0"
111 )
112
113 add_subdirectory(Labs)
114 add_subdirectory(ListItems)
115 add_subdirectory(Pickers)
116 add_subdirectory(Popups)
117 add_subdirectory(Styles)
118 add_subdirectory(Themes)