build: only install necessary qml module files

This commit is contained in:
outfoxxed 2024-11-04 14:13:37 -08:00
parent 2e18340995
commit 1168879d6d
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
22 changed files with 130 additions and 19 deletions

View file

@ -110,6 +110,8 @@ qt_add_qml_module(quickshell-wayland
IMPORTS ${WAYLAND_MODULES}
)
install_qml_module(quickshell-wayland)
qs_pch(quickshell-wayland)
qs_pch(quickshell-waylandplugin)
qs_pch(quickshell-wayland-init)

View file

@ -25,6 +25,8 @@ qt_add_qml_module(quickshell-hyprland
IMPORTS ${HYPRLAND_MODULES}
)
install_qml_module(quickshell-hyprland)
qs_pch(quickshell-hyprland)
qs_pch(quickshell-hyprlandplugin)

View file

@ -10,6 +10,8 @@ qt_add_qml_module(quickshell-hyprland-focus-grab
DEPENDENCIES QtQml Quickshell
)
install_qml_module(quickshell-hyprland-focus-grab)
wl_proto(quickshell-hyprland-focus-grab
hyprland-focus-grab-v1
"${CMAKE_CURRENT_SOURCE_DIR}/hyprland-focus-grab-v1.xml"

View file

@ -10,6 +10,8 @@ qt_add_qml_module(quickshell-hyprland-global-shortcuts
DEPENDENCIES QtQml
)
install_qml_module(quickshell-hyprland-global-shortcuts)
wl_proto(quickshell-hyprland-global-shortcuts
hyprland-global-shortcuts-v1
"${CMAKE_CURRENT_SOURCE_DIR}/hyprland-global-shortcuts-v1.xml"

View file

@ -11,6 +11,8 @@ qt_add_qml_module(quickshell-hyprland-ipc
DEPENDENCIES QtQml Quickshell
)
install_qml_module(quickshell-hyprland-ipc)
target_link_libraries(quickshell-hyprland-ipc PRIVATE ${QT_DEPS})
qs_pch(quickshell-hyprland-ipc)

View file

@ -10,6 +10,8 @@ qt_add_qml_module(quickshell-wayland-toplevel-management
DEPENDENCIES QtQml Quickshell Quickshell.Wayland
)
install_qml_module(quickshell-wayland-toplevel-management)
wl_proto(quickshell-wayland-toplevel-management
wlr-foreign-toplevel-management-unstable-v1
"${CMAKE_CURRENT_SOURCE_DIR}/wlr-foreign-toplevel-management-unstable-v1.xml"

View file

@ -12,6 +12,8 @@ qt_add_qml_module(quickshell-wayland-layershell
DEPENDENCIES QtQuick Quickshell
)
install_qml_module(quickshell-wayland-layershell)
wl_proto(quickshell-wayland-layershell wlr-layer-shell-unstable-v1 "${CMAKE_CURRENT_SOURCE_DIR}/wlr-layer-shell-unstable-v1.xml")
target_link_libraries(quickshell-wayland-layershell PRIVATE ${QT_DEPS} wayland-client)