From 7297ac5d9cac676ed6cd4552a6b47204f9db2512 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Sun, 31 Oct 2021 18:24:07 +0000 Subject: Include shaders in install. --- meson.build | 5 +++++ src/image.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/meson.build b/meson.build index 27c8144..e1b1a38 100644 --- a/meson.build +++ b/meson.build @@ -31,6 +31,11 @@ shader_location = join_paths( '' ) +install_subdir( + 'shaders', + install_dir: data_location +) + add_project_arguments( [ '-pedantic', diff --git a/src/image.c b/src/image.c index e05353c..5e8c511 100644 --- a/src/image.c +++ b/src/image.c @@ -11,6 +11,7 @@ void image_load(struct image *image, const char *filename) { + log_debug("Loading image %s\n", filename); FILE *fp = fopen(filename, "rb"); uint8_t header[HEADER_BYTES]; if (!fp) { @@ -91,4 +92,5 @@ void image_load(struct image *image, const char *filename) image->width = width; image->height = height; image->buffer = buffer; + log_debug("Image loaded.\n"); } -- cgit v1.2.3