gtk-update-icon-cache: give the manifest resource its numbers
The .rc took the names from winbase.h, which does not define them (they are in winuser.h), so windres made a resource named "RT_MANIFEST" that Windows never looks at, and the program, "update" in its name, could ask for elevation. The numbers need no header, and the mingw-w64 headers that warned about a macro defined twice are gone too.
This commit is contained in:
parent
7834820bdf
commit
33979d7381
1 changed files with 4 additions and 1 deletions
|
|
@ -1192,8 +1192,11 @@ $(GTK_UPDATE_ICON_CACHE_MANIFEST):
|
|||
echo ' </trustInfo>' ; \
|
||||
echo '</assembly>' ) >$@
|
||||
|
||||
# 1 and 24 are CREATEPROCESS_MANIFEST_RESOURCE_ID and RT_MANIFEST, whose
|
||||
# headers some mingw-w64 releases can't take twice without warnings
|
||||
$(GTK_UPDATE_ICON_CACHE_RC):
|
||||
(echo -e '#include <winbase.h>\nCREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "'$(GTK_UPDATE_ICON_CACHE_MANIFEST)'"') >$@
|
||||
(echo '/* the manifest of the program */' ; \
|
||||
echo '1 24 "'$(GTK_UPDATE_ICON_CACHE_MANIFEST)'"') >$@
|
||||
|
||||
$(GTK_UPDATE_ICON_CACHE_MANIFEST_OBJECT): $(GTK_UPDATE_ICON_CACHE_RC) $(GTK_UPDATE_ICON_CACHE_MANIFEST)
|
||||
$(WINDRES) --input $< --output $@ --output-format=coff
|
||||
|
|
|
|||
Loading…
Reference in a new issue