1 # This file is a part of Geeqie project (https://www.geeqie.org/).
2 # Copyright (C) 2008 - 2023 The Geeqie Team
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 target_string = '--target=' + meson.current_build_dir() + '/ui.h'
15 ui_resources_h = custom_target('ui_resources_h',
16 input : 'ui.gresource.xml',
18 command : [glib_compile_resources, '--generate-header', target_string, '--sourcedir=@CURRENT_SOURCE_DIR@', '@INPUT@'])
20 target_string = '--target=' + meson.current_build_dir() + '/ui.c'
21 ui_resources_c = custom_target('ui_resources_c',
22 input : 'ui.gresource.xml',
24 command : [glib_compile_resources, '--generate-source', target_string, '--sourcedir=@CURRENT_SOURCE_DIR@', '@INPUT@'])
26 project_sources += ui_resources_h
27 project_sources += ui_resources_c
29 ui_sources += files('search-and-run.ui')