Skip to content

Commit 21a4347

Browse files
committed
all: add DEPENDENCIES entries to qml modules
Fixes some qmlls/qmllint issues.
1 parent 3ebaf00 commit 21a4347

File tree

17 files changed

+27
-2
lines changed

17 files changed

+27
-2
lines changed

src/core/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ target_link_libraries(quickshell-core PRIVATE quickshell-build)
4444
qt_add_qml_module(quickshell-core
4545
URI Quickshell
4646
VERSION 0.1
47+
DEPENDENCIES QtQuick
4748
OPTIONAL_IMPORTS Quickshell._Window
4849
DEFAULT_IMPORTS Quickshell._Window
4950
)

src/dbus/dbusmenu/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ qt_add_library(quickshell-dbusmenu STATIC
1414
${DBUS_INTERFACES}
1515
)
1616

17-
qt_add_qml_module(quickshell-dbusmenu URI Quickshell.DBusMenu VERSION 0.1)
17+
qt_add_qml_module(quickshell-dbusmenu
18+
URI Quickshell.DBusMenu
19+
VERSION 0.1
20+
DEPENDENCIES QtQml Quickshell
21+
)
1822

1923
# dbus headers
2024
target_include_directories(quickshell-dbusmenu PRIVATE ${CMAKE_CURRENT_BINARY_DIR})

src/io/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ endif()
1616
qt_add_qml_module(quickshell-io
1717
URI Quickshell.Io
1818
VERSION 0.1
19+
DEPENDENCIES QtQml
1920
QML_FILES
2021
FileView.qml
2122
)

src/services/greetd/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ qt_add_library(quickshell-service-greetd STATIC
66
qt_add_qml_module(quickshell-service-greetd
77
URI Quickshell.Services.Greetd
88
VERSION 0.1
9+
DEPENDENCIES QtQml
910
)
1011

1112
target_link_libraries(quickshell-service-greetd PRIVATE ${QT_DEPS})

src/services/mpris/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ target_include_directories(quickshell-service-mpris PRIVATE ${CMAKE_CURRENT_BINA
3030
qt_add_qml_module(quickshell-service-mpris
3131
URI Quickshell.Services.Mpris
3232
VERSION 0.1
33+
DEPENDENCIES QtQml Quickshell
3334
)
3435

3536
target_link_libraries(quickshell-service-mpris PRIVATE ${QT_DEPS} quickshell-dbus)

src/services/notifications/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ target_include_directories(quickshell-service-notifications PRIVATE ${CMAKE_CURR
2020
qt_add_qml_module(quickshell-service-notifications
2121
URI Quickshell.Services.Notifications
2222
VERSION 0.1
23+
DEPENDENCIES QtQml Quickshell
2324
)
2425

2526
target_link_libraries(quickshell-service-notifications PRIVATE ${QT_DEPS} quickshell-dbus)

src/services/pam/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ qt_add_library(quickshell-service-pam STATIC
88
qt_add_qml_module(quickshell-service-pam
99
URI Quickshell.Services.Pam
1010
VERSION 0.1
11+
DEPENDENCIES QtQml
1112
)
1213

1314
target_link_libraries(quickshell-service-pam PRIVATE ${QT_DEPS} pam ${PAM_LIBRARIES})

src/services/pipewire/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ qt_add_library(quickshell-service-pipewire STATIC
1616
qt_add_qml_module(quickshell-service-pipewire
1717
URI Quickshell.Services.Pipewire
1818
VERSION 0.1
19+
DEPENDENCIES QtQml Quickshell
1920
)
2021

2122
target_link_libraries(quickshell-service-pipewire PRIVATE ${QT_DEPS} PkgConfig::pipewire)

src/services/status_notifier/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ target_include_directories(quickshell-service-statusnotifier PRIVATE ${CMAKE_CUR
4141
qt_add_qml_module(quickshell-service-statusnotifier
4242
URI Quickshell.Services.SystemTray
4343
VERSION 0.1
44+
DEPENDENCIES QtQml Quickshell Quickshell.DBusMenu
4445
)
4546

4647
target_link_libraries(quickshell-service-statusnotifier PRIVATE ${QT_DEPS} quickshell-dbus quickshell-dbusmenuplugin)

src/services/upower/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ target_include_directories(quickshell-service-upower PRIVATE ${CMAKE_CURRENT_BIN
3030
qt_add_qml_module(quickshell-service-upower
3131
URI Quickshell.Services.UPower
3232
VERSION 0.1
33+
DEPENDENCIES QtQml Quickshell
3334
)
3435

3536
target_link_libraries(quickshell-service-upower PRIVATE ${QT_DEPS} quickshell-dbus)

src/wayland/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ target_link_libraries(quickshell-wayland-init PRIVATE ${QT_DEPS})
106106
qt_add_qml_module(quickshell-wayland
107107
URI Quickshell.Wayland
108108
VERSION 0.1
109+
DEPENDENCIES QtQuick Quickshell
109110
IMPORTS ${WAYLAND_MODULES}
110111
)
111112

src/wayland/hyprland/focus_grab/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ qt_add_library(quickshell-hyprland-focus-grab STATIC
77
qt_add_qml_module(quickshell-hyprland-focus-grab
88
URI Quickshell.Hyprland._FocusGrab
99
VERSION 0.1
10+
DEPENDENCIES QtQml Quickshell
1011
)
1112

1213
wl_proto(quickshell-hyprland-focus-grab

src/wayland/hyprland/global_shortcuts/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ qt_add_library(quickshell-hyprland-global-shortcuts STATIC
77
qt_add_qml_module(quickshell-hyprland-global-shortcuts
88
URI Quickshell.Hyprland._GlobalShortcuts
99
VERSION 0.1
10+
DEPENDENCIES QtQml
1011
)
1112

1213
wl_proto(quickshell-hyprland-global-shortcuts

src/wayland/hyprland/ipc/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ qt_add_library(quickshell-hyprland-ipc STATIC
88
qt_add_qml_module(quickshell-hyprland-ipc
99
URI Quickshell.Hyprland._Ipc
1010
VERSION 0.1
11+
DEPENDENCIES QtQml Quickshell
1112
)
1213

1314
target_link_libraries(quickshell-hyprland-ipc PRIVATE ${QT_DEPS})

src/wayland/toplevel_management/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ qt_add_library(quickshell-wayland-toplevel-management STATIC
77
qt_add_qml_module(quickshell-wayland-toplevel-management
88
URI Quickshell.Wayland._ToplevelManagement
99
VERSION 0.1
10+
DEPENDENCIES QtQml Quickshell Quickshell.Wayland
1011
)
1112

1213
wl_proto(quickshell-wayland-toplevel-management

src/wayland/wlr_layershell/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ qt_add_library(quickshell-wayland-layershell STATIC
44
window.cpp
55
)
66

7-
qt_add_qml_module(quickshell-wayland-layershell URI Quickshell.Wayland._WlrLayerShell VERSION 0.1)
7+
qt_add_qml_module(quickshell-wayland-layershell
8+
URI Quickshell.Wayland._WlrLayerShell
9+
VERSION 0.1
10+
# Quickshell.Wayland currently creates a dependency cycle, add it here once the main
11+
# ls class is moved to this module.
12+
DEPENDENCIES QtQuick Quickshell
13+
)
814

915
wl_proto(quickshell-wayland-layershell wlr-layer-shell-unstable-v1 "${CMAKE_CURRENT_SOURCE_DIR}/wlr-layer-shell-unstable-v1.xml")
1016
target_link_libraries(quickshell-wayland-layershell PRIVATE ${QT_DEPS} wayland-client)

src/window/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ qt_add_library(quickshell-window STATIC
99
qt_add_qml_module(quickshell-window
1010
URI Quickshell._Window
1111
VERSION 0.1
12+
DEPENDENCIES QtQuick Quickshell
1213
)
1314

1415
add_library(quickshell-window-init OBJECT init.cpp)

0 commit comments

Comments
 (0)