From 81145064de936e9ec401a50deca315891c6068f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Thu, 16 Dec 2021 02:11:07 +0100 Subject: Generate TIFF structs/enums from a text file This is to make the tables much easier to maintain. --- meson.build | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index a33cbd7..c511d6a 100644 --- a/meson.build +++ b/meson.build @@ -96,6 +96,13 @@ resources = gnome.compile_resources('resources', c_name : 'resources', ) +tiff_tables = custom_target('tiff-tables.h', + output : 'tiff-tables.h', + input : 'tiff-tables.db', + command : ['tiff-tables.awk', '@INPUT@'], + capture : true, +) + exe = executable('fiv', 'fiv.c', 'fiv-view.c', 'fiv-io.c', 'fiv-browser.c', 'fiv-sidebar.c', 'fiv-thumbnail.c', 'xdg.c', resources, install : true, @@ -122,7 +129,7 @@ if get_option('tools').enabled() tools_c_args = cc.get_supported_arguments( '-Wno-unused-function', '-Wno-unused-parameter') foreach tool : ['pnginfo', 'jpeginfo', 'tiffinfo', 'webpinfo', 'bmffinfo'] - executable(tool, 'tools/' + tool + '.c', + executable(tool, 'tools/' + tool + '.c', tiff_tables, dependencies : tools_dependencies, c_args: tools_c_args) endforeach -- cgit v1.2.3