summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-12-04 17:45:04 +0100
committerSimon Ser <contact@emersion.fr>2022-12-04 17:45:04 +0100
commita67361ed48bd63d7f1bda7e61140c64aecc72b9a (patch)
tree54f199cb178d115f2aac5a9eb2d628f78973c895 /meson.build
parent2662ceb621feb049978ce2e5f99dd726f238742c (diff)
downloadswaybg-a67361ed48bd63d7f1bda7e61140c64aecc72b9a.tar.gz
swaybg-a67361ed48bd63d7f1bda7e61140c64aecc72b9a.tar.bz2
build: drop intermediate protocols library
Diffstat (limited to '')
-rw-r--r--meson.build57
1 files changed, 20 insertions, 37 deletions
diff --git a/meson.build b/meson.build
index 45ec81c..7467805 100644
--- a/meson.build
+++ b/meson.build
@@ -68,8 +68,7 @@ wayland_scanner_client = generator(
arguments: ['client-header', '@INPUT@', '@OUTPUT@'],
)
-client_protos_src = []
-client_protos_headers = []
+protos_src = []
client_protocols = [
wl_protocol_dir / 'stable/xdg-shell/xdg-shell.xml',
@@ -79,43 +78,27 @@ client_protocols = [
]
foreach filename : client_protocols
- client_protos_src += wayland_scanner_code.process(filename)
- client_protos_headers += wayland_scanner_client.process(filename)
+ protos_src += wayland_scanner_code.process(filename)
+ protos_src += wayland_scanner_client.process(filename)
endforeach
-lib_client_protos = static_library(
- 'client_protos',
- client_protos_src + client_protos_headers,
- dependencies: [wayland_client]
-) # for the include directory
-
-client_protos = declare_dependency(
- link_with: lib_client_protos,
- sources: client_protos_headers,
-)
-
-dependencies = [
- cairo,
- client_protos,
- rt,
- gdk_pixbuf,
- wayland_client,
-]
-
-sources = [
- 'background-image.c',
- 'cairo.c',
- 'log.c',
- 'main.c',
- 'pool-buffer.c',
-]
-
-swaybg_inc = include_directories('include')
-
-executable('swaybg',
- sources,
- include_directories: [swaybg_inc],
- dependencies: dependencies,
+executable(
+ 'swaybg',
+ [
+ 'background-image.c',
+ 'cairo.c',
+ 'log.c',
+ 'main.c',
+ 'pool-buffer.c',
+ protos_src,
+ ],
+ include_directories: 'include',
+ dependencies: [
+ cairo,
+ rt,
+ gdk_pixbuf,
+ wayland_client,
+ ],
install: true
)