2018-08-19 03:41:25 +00:00
|
|
|
# Installed tools
|
|
|
|
gtk_tools = [
|
|
|
|
['gtk4-query-settings', ['gtk-query-settings.c']],
|
2019-02-07 09:12:09 +00:00
|
|
|
['gtk4-builder-tool', ['gtk-builder-tool.c',
|
|
|
|
'gtk-builder-tool-simplify.c',
|
|
|
|
'gtk-builder-tool-validate.c',
|
|
|
|
'gtk-builder-tool-enumerate.c',
|
|
|
|
'gtk-builder-tool-preview.c']],
|
2018-08-19 03:41:25 +00:00
|
|
|
['gtk4-update-icon-cache', ['updateiconcache.c', 'gtkiconcachevalidator.c']],
|
|
|
|
['gtk4-encode-symbolic-svg', ['encodesymbolic.c', 'gdkpixbufutils.c']],
|
|
|
|
]
|
|
|
|
|
|
|
|
if os_unix
|
|
|
|
gtk_tools += [['gtk4-launch', ['gtk-launch.c']]]
|
|
|
|
endif
|
|
|
|
|
|
|
|
foreach tool: gtk_tools
|
|
|
|
tool_name = tool.get(0)
|
|
|
|
tool_srcs = tool.get(1)
|
|
|
|
|
|
|
|
exe = executable(tool_name, tool_srcs,
|
|
|
|
include_directories: [confinc],
|
2020-05-18 10:04:15 +00:00
|
|
|
c_args: common_cflags,
|
2018-08-19 03:41:25 +00:00
|
|
|
dependencies: libgtk_dep,
|
|
|
|
install: true)
|
|
|
|
|
|
|
|
set_variable(tool_name.underscorify(), exe) # used in testsuites
|
|
|
|
endforeach
|
|
|
|
|
|
|
|
# Data to install
|
2019-04-01 12:52:27 +00:00
|
|
|
install_data('gtk4builder.rng',
|
2018-08-19 03:41:25 +00:00
|
|
|
install_dir: join_paths(gtk_datadir, 'gtk-4.0'))
|
|
|
|
|
2019-04-01 12:52:27 +00:00
|
|
|
install_data('gtk4builder.loc', 'gtk4builder.its',
|
2018-08-19 03:41:25 +00:00
|
|
|
install_dir: join_paths(gtk_datadir, 'gettext/its'))
|
|
|
|
|