2018-08-19 03:41:25 +00:00
|
|
|
# Installed tools
|
2021-02-03 02:16:58 +00:00
|
|
|
|
|
|
|
extra_update_icon_cache_objs = []
|
|
|
|
if win32_enabled
|
|
|
|
gen_uac_manifest = find_program('generate-uac-manifest.py')
|
|
|
|
|
|
|
|
uac_exe_pkg = 'gtk4'
|
|
|
|
uac_exe_name = '@0@-update-icon-cache'.format(uac_exe_pkg)
|
|
|
|
|
|
|
|
# Well, we have to forgo the xxx.exe.manifest in the output listing, since
|
|
|
|
# compile_resources doesn't like to consume targets with multiple outputs,
|
|
|
|
# and the xxx.exe.manifest and xxx.rc are tied together
|
|
|
|
uac_rc = custom_target(
|
|
|
|
'tools/@0@.rc'.format(uac_exe_name),
|
|
|
|
output: ['@0@.rc'.format(uac_exe_name)],
|
|
|
|
command: [gen_uac_manifest,
|
|
|
|
'-p=@0@'.format(uac_exe_pkg),
|
|
|
|
'-n=@0@'.format(uac_exe_name),
|
|
|
|
'--pkg-version=@0@'.format(meson.project_version()),
|
|
|
|
'--output-dir=@OUTDIR@'],
|
|
|
|
)
|
|
|
|
extra_update_icon_cache_objs = import('windows').compile_resources(uac_rc)
|
|
|
|
endif
|
|
|
|
|
2018-08-19 03:41:25 +00:00
|
|
|
gtk_tools = [
|
2023-06-26 12:41:08 +00:00
|
|
|
['gtk4-path-tool', ['gtk-path-tool.c',
|
|
|
|
'gtk-path-tool-decompose.c',
|
|
|
|
'gtk-path-tool-info.c',
|
|
|
|
'gtk-path-tool-render.c',
|
2023-08-12 20:25:03 +00:00
|
|
|
'gtk-path-tool-restrict.c',
|
2023-08-28 04:26:19 +00:00
|
|
|
'gtk-path-tool-reverse.c',
|
2023-06-26 12:41:08 +00:00
|
|
|
'gtk-path-tool-show.c',
|
|
|
|
'gtk-path-tool-utils.c',
|
|
|
|
'path-view.c'], [libgtk_dep]],
|
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',
|
2022-04-17 04:26:25 +00:00
|
|
|
'gtk-builder-tool-screenshot.c',
|
2022-10-19 16:13:29 +00:00
|
|
|
'gtk-builder-tool-preview.c',
|
|
|
|
'fake-scope.c'], [libgtk_dep] ],
|
2023-07-20 19:09:27 +00:00
|
|
|
['gtk4-rendernode-tool', ['gtk-rendernode-tool.c',
|
2024-01-13 16:06:45 +00:00
|
|
|
'gtk-rendernode-tool-benchmark.c',
|
2024-02-22 03:22:30 +00:00
|
|
|
'gtk-rendernode-tool-compare.c',
|
2024-06-03 02:13:05 +00:00
|
|
|
'gtk-rendernode-tool-extract.c',
|
2023-07-20 19:09:27 +00:00
|
|
|
'gtk-rendernode-tool-info.c',
|
|
|
|
'gtk-rendernode-tool-render.c',
|
|
|
|
'gtk-rendernode-tool-show.c',
|
2024-02-22 03:22:30 +00:00
|
|
|
'gtk-rendernode-tool-utils.c',
|
|
|
|
'../testsuite/reftests/reftest-compare.c'], [libgtk_dep] ],
|
2023-05-16 03:06:07 +00:00
|
|
|
['gtk4-update-icon-cache', ['updateiconcache.c', '../gtk/gtkiconcachevalidator.c' ] + extra_update_icon_cache_objs, [ libgtk_dep ] ],
|
2021-01-31 16:03:16 +00:00
|
|
|
['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],
|
2023-05-16 03:06:07 +00:00
|
|
|
c_args: common_cflags + [ '-DBUILD_TOOLS' ],
|
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
|
2021-01-29 23:46:32 +00:00
|
|
|
meson.override_find_program(tool_name, exe)
|
2018-08-19 03:41:25 +00:00
|
|
|
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',
|
|
|
|
)
|