VirtualBox

Changeset 96647 in vbox


Ignore:
Timestamp:
Sep 8, 2022 12:37:39 AM (2 years ago)
Author:
vboxsync
Message:

/Config.kmk: Adjusted the SetACP(UTF-8) manifest so it'll work on xp RTM as well and enabled it for x86 targets again. The issue was that it required processorArchitecture to be set, an attribute currently documented as optional. bugref:10261

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r96646 r96647  
    39123912
    39133913
    3914 ## VBOX_UTF8_MANIFEST_FN
    3915 # Adds a manifest resource with ID 1 that tells windows 10 1903 and later to
    3916 # use UTF-8 for the ANSI and OEM code pages.  We only do this when using UCRT
    3917 # as the VCC100 CRT typically ends up with its internal code page not being
    3918 # CP_UTF8 but the default codepage for the locale.
    3919 #
    3920 # @param 1 the output filename.
    3921 #
     3914## VBOX_UTF8_MANIFEST_CMDS
     3915# Wrapper around VBOX_UTF8_MANIFEST_FN that makes sure it's an EXE link target,
     3916# as this UTF-8 manifest doesn't make sense for non-executables.
    39223917ifn1of ($(VBOX_VCC_TOOL_STEM), VCC100 VCC110 VCC120)
     3918 ## VBOX_UTF8_MANIFEST_FN
     3919 # Adds a manifest resource with ID 1 that tells windows 10 1903 and later to
     3920 # use UTF-8 for the ANSI and OEM code pages.  We only do this when using UCRT
     3921 # as the VCC100 CRT typically ends up with its internal code page not being
     3922 # CP_UTF8 but the default codepage for the locale.
    39233923 #
    3924  # We don't use this for old x86-only stuff like NT4, 2K or WinXP,
    3925  # as this breaks loading our binaries.
    3926  # (unless we're also wanting support for exotic stuff like WinXP 64-bit).
     3924 # @param 1 the output filename.
     3925 # @param 2 the architecture (required for xp rtm)
    39273926 #
    3928  ifn1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), win.x86)
    3929   VBOX_UTF8_MANIFEST_FN = \
     3927 VBOX_UTF8_MANIFEST_FN = \
    39303928        $(QUIET)$(APPEND) -tn "$(1).manifest" \
    39313929                '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>' \
    39323930                '<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">' \
    3933                 ' <assemblyIdentity type="win32" name="$(notdir $(1))" version="$(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD).$(expr $(VBOX_SVN_REV) % 50000)"/>' \
     3931                ' <assemblyIdentity type="win32" name="$(notdir $(1))" processorArchitecture="$(2)" version="$(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD).$(expr $(VBOX_SVN_REV) % 50000)" />' \
    39343932                ' <asmv3:application>' \
    39353933                '  <asmv3:windowsSettings>' \
     
    39413939                -nologo -manifest '$(subst /,\,$(1).manifest)' '-outputresource:$(subst /,\,$(1));$(HASH)1' \
    39423940        $(NLTAB)$(QUIET)$(RM) -f -- "$(1).manifest"
    3943   ## VBOX_UTF8_MANIFEST_CMDS
    3944   # Wrapper around VBOX_UTF8_MANIFEST_FN that makes sure it's an EXE link target,
    3945   # as this UTF-8 manifest doesn't make sense for non-executables.
    3946   VBOX_UTF8_MANIFEST_CMDS ?= $(if-expr "$(tool_do)" != "LINK_LIBRARY" && "$(EXT)" == "EXE",$(call VBOX_UTF8_MANIFEST_FN,$(out),),)
    3947  endif
     3941 VBOX_UTF8_MANIFEST_CMDS ?= $(if-expr "$(tool_do)" == "LINK_PROGRAM",$(call VBOX_UTF8_MANIFEST_FN,$(out),$(bld_trg_arch)),)
    39483942else
    39493943 VBOX_UTF8_MANIFEST_CMDS =
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette