From d08726606f54ba86a76ef3b895f264a8e0fb3ff7 Mon Sep 17 00:00:00 2001 From: arch1t3cht Date: Tue, 10 Jan 2023 21:34:31 +0100 Subject: [PATCH] meson: Also add regen dependencies for bitmaps --- src/libresrc/meson.build | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/libresrc/meson.build b/src/libresrc/meson.build index 0b9414736..3d172673a 100644 --- a/src/libresrc/meson.build +++ b/src/libresrc/meson.build @@ -2,10 +2,20 @@ fs = import('fs') respack = find_program(meson.project_source_root() / 'tools/respack.py') +bitmap_manifest = '../bitmaps/manifest.respack' +bitmap_files = [] +foreach bfile : fs.read(bitmap_manifest).strip().split('\n') + bfile_s = bfile.strip() + if bfile_s != '' + bitmap_files += files('../bitmaps' / bfile_s) + endif +endforeach + resrc = [ custom_target('bitmap.{cpp,h}', command: [respack, '@INPUT@', '@OUTPUT@'], - input: files('../bitmaps/manifest.respack'), + input: files(bitmap_manifest), + depend_files: bitmap_files, output: ['bitmap.cpp', 'bitmap.h']) ]