From 992d97e94d2ebd32ac3e1901910050fae1954ed0 Mon Sep 17 00:00:00 2001 From: Jeremy Attali Date: Sun, 17 May 2020 12:52:01 -0400 Subject: [PATCH] fix(dependencies): include glib2 Closes #11 --- README.md | 5 +++-- meson.build | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bf41548..bc2373e 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,7 @@ The following lines can be used as swappy's default: ## Building from source -Install dependencies: +Install dependencies (on Arch, name can vary for other distros): - meson - ninja @@ -118,13 +118,14 @@ Install dependencies: - cairo - pango - gtk +- glib2 +- scdoc Optional dependencies: - wayland-protocols (for the `-g` option to work with [wlr-screencopy-unstable-v1] protocol) - wl-clipboard (to make sure the copy is saved if you close swappy) - libnotify (not get notified when swappshot is copied or saved) -- scdoc to generate the man page Then run: diff --git a/meson.build b/meson.build index e154955..c4b0bd1 100644 --- a/meson.build +++ b/meson.build @@ -27,6 +27,7 @@ pango = dependency('pango') math = cc.find_library('m') realtime = cc.find_library('rt') gtk = dependency('gtk+-3.0', version: '>=3.20.0') +gio = cc.find_library('gio-2.0') wayland_client = dependency('wayland-client') wayland_cursor = dependency('wayland-cursor') wayland_protos = dependency('wayland-protocols', version: '>=1.14', required: false) @@ -67,6 +68,7 @@ executable( cairo, pango, client_protos, + gio, gtk, libnotify, math,