Migrate to meson

This commit is contained in:
Charadon 2024-01-18 00:56:37 +00:00
parent f579dd8668
commit 5995e58759
9 changed files with 37 additions and 2 deletions

View File

@ -11,5 +11,5 @@ DATADIR = $(PREFIX)/share
XWAYLAND =
XLIBS =
# Uncomment to build XWayland support
#XWAYLAND = -DXWAYLAND
#XLIBS = xcb xcb-icccm
XWAYLAND = -DXWAYLAND
XLIBS = xcb xcb-icccm

29
meson.build Normal file
View File

@ -0,0 +1,29 @@
project(
'dwl',
'c',
version: 'v0.5.1',
)
wlroots_sub = subproject('wlroots')
deps = [
dependency('wayland-scanner'),
dependency('wayland-protocols'),
dependency('xcb'),
dependency('xcb-icccm'),
wlroots_sub.get_variable('wlroots')
]
incdir = include_directories('include')
srcs = [
'src/dwl.c',
'src/util.c',
]
executable(
'dwl',
sources: srcs,
include_directories: incdir,
dependencies: deps
)

2
run.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
xfce4-terminal

View File

@ -1,6 +1,9 @@
/*
* See LICENSE file for copyright and license details.
*/
#define WLR_USE_UNSTABLE
#define XWAYLAND
#define VERSION "0.5.1"
#include <getopt.h>
#include <libinput.h>
#include <linux/input-event-codes.h>

View File

1
subprojects/wlroots Submodule

@ -0,0 +1 @@
Subproject commit 3f2aced8c6fd00b0b71da24c790850af2004052b