a51da49d0b0c52a57438bba2257504134706e8f1
[geeqie.git] / src / ui / meson.build
1 # This file is a part of Geeqie project (https://www.geeqie.org/).
2 # Copyright (C) 2008 - 2023 The Geeqie Team
3 #
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.
8 #
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
12 #
13
14 target_string = '--target=' + meson.current_build_dir() + '/ui.h'
15 ui_resources_h = custom_target('ui_resources_h',
16                 input : 'ui.gresource.xml',
17                 output : 'ui.h',
18                 command : [glib_compile_resources, '--generate-header', target_string, '--sourcedir=@CURRENT_SOURCE_DIR@', '@INPUT@'])
19
20 target_string = '--target=' + meson.current_build_dir() + '/ui.c'
21 ui_resources_c = custom_target('ui_resources_c',
22                 input : 'ui.gresource.xml',
23                 output : 'ui.c',
24                 command : [glib_compile_resources, '--generate-source', target_string, '--sourcedir=@CURRENT_SOURCE_DIR@', '@INPUT@'])
25
26 project_sources += ui_resources_h
27 project_sources += ui_resources_c
28
29 ui_sources += files('search-and-run.ui')