Refactor cage into separate source files

This makes Cage much easier to maintain. Not only is it easier where to
look and to maintain a mental model of the code, there is also more
encapsulation, better abstractions and better extendability.
This commit is contained in:
Jente Hidskes 2018-12-31 00:12:33 +01:00
parent e1525a20c8
commit 2cf40f7a9b
No known key found for this signature in database
GPG key ID: 04BE5A29F32D91EA
11 changed files with 1084 additions and 657 deletions

View file

@ -52,12 +52,24 @@ server_protos = declare_dependency(
)
cage_sources = [
'cage.c'
'cage.c',
'output.c',
'seat.c',
'view.c',
'xdg_shell.c',
]
cage_headers = [
'output.h',
'seat.h',
'server.h',
'view.h',
'xdg_shell.h',
]
executable(
meson.project_name(),
cage_sources,
cage_sources + cage_headers,
dependencies: [
server_protos,
wayland_server,