| 1 |
|
| 2 |
widgetfactory_sources = [ |
| 3 |
'widget-factory.c' |
| 4 |
] |
| 5 |
|
| 6 |
widgetfactory_resources = gnome.compile_resources( |
| 7 |
'widgetfactory_resources', |
| 8 |
'widget-factory.gresource.xml', |
| 9 |
source_dir: '.' |
| 10 |
) |
| 11 |
|
| 12 |
foreach s: [ '16', '22', '24', '32', '48', '256'] |
| 13 |
icon_destdir = join_paths(gtk_datadir, 'icons', 'hicolor', '@0@x@0@'.format(s), 'apps') |
| 14 |
icons = [join_paths('data', '@0@x@0@'.format(s), 'gtk3-widget-factory.png'), |
| 15 |
join_paths('data', '@0@x@0@'.format(s), 'gtk3-widget-factory-symbolic.symbolic.png')] |
| 16 |
install_data(icons, install_dir: icon_destdir) |
| 17 |
endforeach |
| 18 |
|
| 19 |
widget_factory = executable( |
| 20 |
'gtk3-widget-factory', |
| 21 |
widgetfactory_sources, |
| 22 |
widgetfactory_resources, |
| 23 |
dependencies: libgtk_dep, |
| 24 |
include_directories : confinc, |
| 25 |
install: true |
| 26 |
) |
| 27 |
|
| 28 |
# desktop file |
| 29 |
install_data('gtk3-widget-factory.desktop', install_dir: gtk_applicationsdir) |