2017-03-12 16:54:44 +00:00
|
|
|
# demos/widget-factory
|
2016-08-21 14:00:37 +00:00
|
|
|
|
2017-03-12 16:54:44 +00:00
|
|
|
widgetfactory_resources = gnome.compile_resources('widgetfactory_resources',
|
2017-04-26 16:04:20 +00:00
|
|
|
'widget-factory.gresource.xml',
|
|
|
|
source_dir: '.')
|
2016-08-21 14:00:37 +00:00
|
|
|
|
2017-03-12 16:54:44 +00:00
|
|
|
executable('gtk4-widget-factory',
|
2017-04-26 16:04:20 +00:00
|
|
|
'widget-factory.c', widgetfactory_resources,
|
|
|
|
dependencies: libgtk_dep,
|
|
|
|
include_directories: confinc,
|
|
|
|
gui_app: true,
|
|
|
|
install: true)
|
2017-03-12 16:54:44 +00:00
|
|
|
|
|
|
|
# desktop file
|
2017-04-26 16:04:20 +00:00
|
|
|
install_data('gtk4-widget-factory.desktop', install_dir: gtk_applicationsdir)
|
2017-03-12 16:54:44 +00:00
|
|
|
|
|
|
|
# icons
|
2017-04-26 16:04:20 +00:00
|
|
|
icontheme_dir = join_paths(gtk_datadir, 'icons/hicolor')
|
2017-03-12 16:54:44 +00:00
|
|
|
|
2017-04-26 16:04:20 +00:00
|
|
|
foreach icon_size : ['16x16', '22x22', '24x24', '32x32', '48x48', '256x256', ]
|
2017-03-12 16:54:44 +00:00
|
|
|
icons_dir = join_paths(icontheme_dir, '@0@/apps'.format(icon_size))
|
|
|
|
install_data('data/@0@/gtk4-widget-factory.png'.format(icon_size),
|
2017-04-26 16:04:20 +00:00
|
|
|
install_dir: icons_dir)
|
2017-03-12 16:54:44 +00:00
|
|
|
install_data('data/@0@/gtk4-widget-factory-symbolic.symbolic.png'.format(icon_size),
|
2017-04-26 16:04:20 +00:00
|
|
|
install_dir: icons_dir)
|
2017-03-12 16:54:44 +00:00
|
|
|
endforeach
|