summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2021-10-26 23:15:46 +0100
committerPhil Jones <philj56@gmail.com>2021-10-26 23:15:46 +0100
commit42679f7e53364e8de8de665ac7ba9b7e2dd1970b (patch)
tree14e145ea833097aba91f516f4cd124e49f5a2a14 /meson.build
parentc1e7ea47b25cdf7bf316ce522f9aa438b0b657c7 (diff)
Add PNG background.
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build15
1 files changed, 12 insertions, 3 deletions
diff --git a/meson.build b/meson.build
index cdffbdd..5439ee2 100644
--- a/meson.build
+++ b/meson.build
@@ -25,6 +25,12 @@ data_location = join_paths(
'greetd-mini-wl-greeter'
)
+shader_location = join_paths(
+ debug ? '' : data_location,
+ 'shaders',
+ ''
+)
+
add_project_arguments(
[
'-pedantic',
@@ -32,20 +38,23 @@ add_project_arguments(
'-Wshadow',
'-Wno-unused-parameter',
'-D_POSIX_C_SOURCE=200809L',
+ '-DSHADER_PATH="@0@"'.format(shader_location),
],
language: 'c'
)
sources = files(
'src/main.c',
- 'src/log.c',
'src/egl.c',
+ 'src/gl.c',
+ 'src/log.c',
+ 'src/png.c',
'src/xdg-shell-protocol.c',
)
cc = meson.get_compiler('c')
epoxy = dependency('epoxy')
-rt = cc.find_library('rt')
+png = dependency('libpng')
wayland_client = dependency('wayland-client')
wayland_egl = dependency('wayland-egl')
xkbcommon = dependency('xkbcommon')
@@ -53,7 +62,7 @@ xkbcommon = dependency('xkbcommon')
executable(
'greetd-mini-wl-greeter',
sources,
- dependencies: [epoxy, rt, wayland_client, wayland_egl, xkbcommon],
+ dependencies: [epoxy, png, wayland_client, wayland_egl, xkbcommon],
install: true
)