Update README.md

This commit is contained in:
Florian RICHER 2024-06-06 21:52:52 +02:00
parent 61ed0abaed
commit d441d856d7

View file

@ -2,31 +2,27 @@
- https://wayland-book.com/
## Compiling
```bash
mkdir bin
mkdir -p build # Create build directory
```
Server
```bash
cc -o ./bin/server ./src/server.c -lwayland-server
cmake -Bbuild -G Ninja # Configure build folder with ninja builder
```
Client
```bash
cc -o ./bin/client ./src/client.c -lwayland-client
ninja -C build
```
## Run
Server
```bash
./bin/server &
./build/wayland_test_server &
```
Client
```bash
WAYLAND_DISPLAY=wayland-1 ./bin/client
./build/wayland_test_client
```