Skip to content

Commit ba3557d

Browse files
committed
moved the wayland generation code inside wayland
for easier reuse
1 parent a1a1c2f commit ba3557d

23 files changed

+24
-16
lines changed

Makefile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22

33
.DELETE_ON_ERROR:
44

5-
server_files := $(shell find ./server)
65

7-
protocols_files := $(shell find ./cmd/protocols)
6+
protocols_files := $(shell find ./wayland/generate)
87

9-
xml_protocols := $(shell find ./cmd/protocols -name "*.xml")
8+
xml_protocols := $(shell find ./wayland/generate -name "*.xml")
109

11-
generated_protocols := $(patsubst ./cmd/protocols/protocols/%,./wayland/protocols/%.go,$(xml_protocols))
10+
generated_protocols := $(patsubst ./wayland/generate/resources/%,./wayland/protocols/%.go,$(xml_protocols))
1211

13-
generated_helpers := $(patsubst ./cmd/protocols/protocols/%,./wayland/%.helper.go,$(xml_protocols))
12+
generated_helpers := $(patsubst ./wayland/generate/resources/%,./wayland/%.helper.go,$(xml_protocols))
1413

1514
# TODO add term.everything to build
1615
build: $(generated_protocols) $(generated_helpers)

terminal/Readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
In this package we do everything you need to interact with a Wayland compositor from a terminal application. This includes handling input events, rendering to surfaces, and managing windows.
File renamed without changes.

wayland/Readme.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
In this package, we provide utilities for working with Wayland protocol over Unix domain sockets. This will hopefully be a resulable package for custom go Wayland compositiors.
2-
3-
## How to use
4-
TODO
1+
In this package, we provide utilities for working with Wayland protocol over Unix domain sockets. This will hopefully be a reusable package for custom go Wayland compositors (that I will use at least).

wayland/generate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
package wayland
22

3-
//go:generate go run ../cmd/protocols ./protocols . github.com/mmulet/term.everything/wayland/protocols WlSurface XdgPositioner XdgSurface WlPointer WlSubsurface XdgToplevel
3+
//go:generate bash -c "go run ./generate ./protocols . $(go list) WlSurface XdgPositioner XdgSurface WlPointer WlSubsurface XdgToplevel"

0 commit comments

Comments
 (0)