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/ - https://wayland-book.com/
## Compiling ## Compiling
```bash ```bash
mkdir bin mkdir -p build # Create build directory
``` ```
Server
```bash ```bash
cc -o ./bin/server ./src/server.c -lwayland-server cmake -Bbuild -G Ninja # Configure build folder with ninja builder
``` ```
Client
```bash ```bash
cc -o ./bin/client ./src/client.c -lwayland-client ninja -C build
``` ```
## Run ## Run
Server
```bash ```bash
./bin/server & ./build/wayland_test_server &
``` ```
Client
```bash ```bash
WAYLAND_DISPLAY=wayland-1 ./bin/client ./build/wayland_test_client
``` ```