diff options
Diffstat (limited to 'tools/meson.build')
-rw-r--r-- | tools/meson.build | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/tools/meson.build b/tools/meson.build index de724e55f4..7b82caf132 100644 --- a/tools/meson.build +++ b/tools/meson.build @@ -1,4 +1,27 @@ # Installed tools + +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 + gtk_tools = [ ['gtk4-query-settings', ['gtk-query-settings.c'], [libgtk_dep]], ['gtk4-builder-tool', ['gtk-builder-tool.c', @@ -6,7 +29,7 @@ gtk_tools = [ 'gtk-builder-tool-validate.c', 'gtk-builder-tool-enumerate.c', 'gtk-builder-tool-preview.c'], [libgtk_dep] ], - ['gtk4-update-icon-cache', ['updateiconcache.c'], [ libgtk_static_dep ] ], + ['gtk4-update-icon-cache', ['updateiconcache.c'] + extra_update_icon_cache_objs, [ libgtk_static_dep ] ], ['gtk4-encode-symbolic-svg', ['encodesymbolic.c'], [ libgtk_static_dep ] ], ] |