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',
|
2020-12-15 12:31:38 +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',
|
2020-12-15 12:31:38 +00:00
|
|
|
sources: ['widget-factory.c', widgetfactory_resources],
|
|
|
|
c_args: common_cflags,
|
2021-02-12 04:35:26 +00:00
|
|
|
dependencies: [ libgtk_dep, demo_conf_h ],
|
2020-12-15 12:31:38 +00:00
|
|
|
include_directories: confinc,
|
|
|
|
gui_app: true,
|
|
|
|
link_args: extra_demo_ldflags,
|
|
|
|
install: true,
|
|
|
|
)
|
2017-03-12 16:54:44 +00:00
|
|
|
|
|
|
|
# desktop file
|
2019-04-01 23:58:30 +00:00
|
|
|
install_data('org.gtk.WidgetFactory4.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
|
|
|
|
2019-02-06 14:37:25 +00:00
|
|
|
foreach size: ['scalable', 'symbolic']
|
2020-12-15 12:31:38 +00:00
|
|
|
install_subdir('data/' + size, install_dir: icontheme_dir)
|
2017-03-12 16:54:44 +00:00
|
|
|
endforeach
|
2018-03-21 00:04:20 +00:00
|
|
|
|
|
|
|
# appdata
|
2021-06-01 12:16:27 +00:00
|
|
|
configure_file(
|
|
|
|
input: 'org.gtk.WidgetFactory4.appdata.xml.in',
|
|
|
|
output: 'org.gtk.WidgetFactory4.appdata.xml',
|
|
|
|
configuration: appdata_config,
|
|
|
|
install_dir: gtk_appdatadir
|
|
|
|
)
|