Update README.md
This commit is contained in:
parent
61ed0abaed
commit
d441d856d7
1 changed files with 6 additions and 10 deletions
16
README.md
16
README.md
|
@ -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
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue