@@ -7,6 +7,10 @@ set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
77include (GNUInstallDirs)
88find_package (PkgConfig)
99
10+ # Add path for custom CMake modules.
11+ list (APPEND CMAKE_MODULE_PATH
12+ "${CMAKE_CURRENT_SOURCE_DIR} /cmake/modules" )
13+
1014execute_process (
1115 COMMAND git log -1 --format=%h
1216 WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
@@ -50,7 +54,7 @@ list(APPEND COMBINED_LDFLAGS ${LOGIN_LIBS_LDFLAGS})
5054# Optional dependencies
5155
5256# Needed to eventually build wayland protocols
53- add_subdirectory (protocol )
57+ include (WaylandProtocols )
5458
5559# Helper macro for dealing correctly with optional pkg-config dependencies.
5660# There are a number of issues when using pkg-config with cmake (as compared to
@@ -98,9 +102,9 @@ macro(optional_dep name modules description)
98102 endif ()
99103endmacro ()
100104
101- optional_dep(GAMMA "x11;xrandr;libdrm;wayland-client" "Gamma correction" src/modules/gamma_plugins protocol/ wlr-gamma-control-unstable-v1.xml)
102- optional_dep(DPMS "x11;xext;libdrm;wayland-client" "DPMS" src/modules/dpms_plugins protocol/org_kde_kwin_dpms. xml;protocol /wlr-output -power-management-unstable-v1.xml)
103- optional_dep(SCREEN "x11" "screen emitted brightness" src/modules/screen_plugins protocol /wlr-screencopy-unstable-v1.xml)
105+ optional_dep(GAMMA "x11;xrandr;libdrm;wayland-client" "Gamma correction" src/modules/gamma_plugins https://gitlab.freedesktop.org/wlroots/ wlr-protocols/-/raw/master/unstable/wlr- gamma-control-unstable-v1.xml;https://raw.githubusercontent.com/KDE/plasma-wayland-protocols/master/src/protocols/outputdevice.xml;https://raw.githubusercontent.com/KDE/plasma-wayland-protocols/master/src/protocols/ output -management .xml)
106+ optional_dep(DPMS "x11;xext;libdrm;wayland-client" "DPMS" src/modules/dpms_plugins https://raw.githubusercontent.com/KDE/plasma-wayland-protocols/master/src/protocols/dpms. xml;https://gitlab.freedesktop.org/wlroots/wlr-protocols/-/raw/master/unstable /wlr-output -power-management-unstable-v1.xml)
107+ optional_dep(SCREEN "x11" "screen emitted brightness" src/modules/screen_plugins https://gitlab.freedesktop.org/wlroots/wlr-protocols/-/raw/master/unstable /wlr-screencopy-unstable-v1.xml)
104108optional_dep(DDC "ddcutil>=0.9.5" "external monitor backlight" )
105109optional_dep(YOCTOLIGHT "libusb-1.0" "Yoctolight usb als devices support" )
106110optional_dep(PIPEWIRE "libpipewire-0.3" "Enable pipewire camera sensor support" )
0 commit comments