2018-08-19 03:41:25 +00:00
|
|
|
# Installed tools
|
|
|
|
gtk_tools = [
|
2021-01-31 16:03:16 +00:00
|
|
|
['gtk4-query-settings', ['gtk-query-settings.c'], [libgtk_dep]],
|
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',
|
2021-01-31 16:03:16 +00:00
|
|
|
'gtk-builder-tool-preview.c'], [libgtk_dep] ],
|
|
|
|
['gtk4-update-icon-cache', ['updateiconcache.c'], [ libgtk_static_dep ] ],
|
|
|
|
['gtk4-encode-symbolic-svg', ['encodesymbolic.c'], [ libgtk_static_dep ] ],
|
2018-08-19 03:41:25 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
if os_unix
|
2021-01-31 16:03:16 +00:00
|
|
|
gtk_tools += [['gtk4-launch', ['gtk-launch.c'], [libgtk_dep]]]
|
2018-08-19 03:41:25 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
foreach tool: gtk_tools
|
|
|
|
tool_name = tool.get(0)
|
|
|
|
tool_srcs = tool.get(1)
|
2021-01-31 16:03:16 +00:00
|
|
|
tool_deps = tool.get(2)
|
2018-08-19 03:41:25 +00:00
|
|
|
|
2020-12-15 12:31:38 +00:00
|
|
|
exe = executable(tool_name,
|
|
|
|
sources: tool_srcs,
|
|
|
|
include_directories: [confinc],
|
|
|
|
c_args: common_cflags,
|
2021-01-31 16:03:16 +00:00
|
|
|
dependencies: tool_deps,
|
2020-12-15 12:31:38 +00:00
|
|
|
install: true,
|
|
|
|
)
|
2018-08-19 03:41:25 +00:00
|
|
|
|
|
|
|
set_variable(tool_name.underscorify(), exe) # used in testsuites
|
|
|
|
endforeach
|
|
|
|
|
|
|
|
# Data to install
|
2020-12-15 12:31:38 +00:00
|
|
|
install_data('gtk4builder.rng', install_dir: gtk_datadir / 'gtk-4.0')
|
2018-08-19 03:41:25 +00:00
|
|
|
|
2020-12-15 12:31:38 +00:00
|
|
|
install_data([
|
|
|
|
'gtk4builder.loc',
|
|
|
|
'gtk4builder.its',
|
|
|
|
],
|
|
|
|
install_dir: gtk_datadir / 'gettext/its',
|
|
|
|
)
|