2016-08-21 14:00:37 +00:00
|
|
|
iconbrowser_sources = [
|
|
|
|
'main.c',
|
|
|
|
'iconbrowserapp.c',
|
|
|
|
'iconbrowserwin.c',
|
2020-06-08 18:25:54 +00:00
|
|
|
'iconbrowsericon.c',
|
|
|
|
'iconbrowsercontext.c'
|
2016-08-21 14:00:37 +00:00
|
|
|
]
|
|
|
|
|
2017-03-12 16:54:44 +00:00
|
|
|
iconbrowser_resources = gnome.compile_resources('iconbrowser_resources',
|
2020-12-15 12:31:38 +00:00
|
|
|
'iconbrowser.gresource.xml',
|
2023-03-07 21:59:50 +00:00
|
|
|
source_dir: meson.current_source_dir(),
|
2020-12-15 12:31:38 +00:00
|
|
|
)
|
2016-08-21 14:00:37 +00:00
|
|
|
|
2017-03-12 16:54:44 +00:00
|
|
|
executable('gtk4-icon-browser',
|
2020-12-15 12:31:38 +00:00
|
|
|
sources: [iconbrowser_sources, iconbrowser_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,
|
2021-12-24 15:51:11 +00:00
|
|
|
win_subsystem: 'windows',
|
2020-12-15 12:31:38 +00:00
|
|
|
link_args: extra_demo_ldflags,
|
|
|
|
install: true,
|
|
|
|
)
|
2020-07-29 21:42:49 +00:00
|
|
|
|
|
|
|
# icons
|
|
|
|
icontheme_dir = join_paths(gtk_datadir, 'icons/hicolor')
|
|
|
|
|
|
|
|
foreach size: ['scalable', 'symbolic']
|
2020-12-15 12:31:38 +00:00
|
|
|
install_subdir('data/' + size, install_dir: icontheme_dir)
|
2020-07-29 21:42:49 +00:00
|
|
|
endforeach
|
|
|
|
|
|
|
|
# desktop file
|
|
|
|
install_data('org.gtk.IconBrowser4.desktop', install_dir: gtk_applicationsdir)
|
|
|
|
|
|
|
|
# appdata
|
2021-06-01 12:16:27 +00:00
|
|
|
configure_file(
|
|
|
|
input: 'org.gtk.IconBrowser4.appdata.xml.in',
|
|
|
|
output: 'org.gtk.IconBrowser4.appdata.xml',
|
|
|
|
configuration: appdata_config,
|
|
|
|
install_dir: gtk_appdatadir
|
|
|
|
)
|
2020-07-29 21:42:49 +00:00
|
|
|
|