Compare commits

...

1 Commits

Author SHA1 Message Date
Chun-wei Fan
6408dcb27e tools/meson.build: Silence a Meson configuration warning
Just use 'gtk4-update-icon-cache.rc' for the custom target on Windows to
embed the manifest to allow running on 32-bit Windows without triggering
UAC.

Also, only generate and embed this manifest only for 32-bit Windows
builds (we don't support ARM32 builds for GTK, anyways, since we aren't
aiming for any WinRT compliance)
2024-09-30 10:54:29 +08:00

View File

@@ -1,7 +1,7 @@
# Installed tools
extra_update_icon_cache_objs = []
if win32_enabled
if win32_enabled and host_machine.cpu_family() == 'x86'
gen_uac_manifest = find_program('generate-uac-manifest.py')
uac_exe_pkg = 'gtk4'
@@ -11,7 +11,7 @@ if win32_enabled
# 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),
'@0@.rc'.format(uac_exe_name),
output: ['@0@.rc'.format(uac_exe_name)],
command: [gen_uac_manifest,
'-p=@0@'.format(uac_exe_pkg),