mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-02 11:55:59 +01:00
6cb25ebad7
This removes the need for the ad-hoc loop. Because udev creates the symlinks in /dev/dri/by-path/, we need to wait for it to consume all pending events before the chmod call. Previously the delay needed for seatd to come up was enough to let udev create the symlinks in time (by chance).
42 lines
1 KiB
YAML
42 lines
1 KiB
YAML
image: archlinux
|
|
packages:
|
|
- clang
|
|
- ffmpeg
|
|
- libinput
|
|
- libxkbcommon
|
|
- mesa
|
|
- meson
|
|
- pixman
|
|
- wayland
|
|
- wayland-protocols
|
|
- xcb-util-errors
|
|
- xcb-util-image
|
|
- xcb-util-renderutil
|
|
- xcb-util-wm
|
|
- xorg-xwayland
|
|
- seatd
|
|
sources:
|
|
- https://github.com/swaywm/wlroots
|
|
tasks:
|
|
- setup: |
|
|
cd wlroots
|
|
CC=gcc meson build-gcc --fatal-meson-warnings --default-library=both -Dauto_features=enabled --prefix /usr
|
|
CC=clang meson build-clang --fatal-meson-warnings -Dauto_features=enabled
|
|
- gcc: |
|
|
cd wlroots/build-gcc
|
|
ninja
|
|
sudo ninja install
|
|
cd ../tinywl
|
|
make
|
|
- clang: |
|
|
cd wlroots/build-clang
|
|
ninja
|
|
- smoke-test: |
|
|
cd wlroots/tinywl
|
|
sudo modprobe vkms
|
|
udevadm settle
|
|
export WLR_BACKENDS=drm
|
|
export WLR_RENDERER=pixman
|
|
export WLR_DRM_DEVICES=/dev/dri/by-path/platform-vkms-card
|
|
sudo chmod ugo+rw /dev/dri/by-path/platform-vkms-card
|
|
sudo -E seatd-launch -- ./tinywl -s 'kill $PPID' || [ $? = 143 ]
|