Changeset 3552 for trunk


Ignore:
Timestamp:
Jan 29, 2022, 3:59:03 AM (3 years ago)
Author:
bird
Message:

/Config.kmk,kmk/Makefile.kmk: Experimental UTF-8 manifest hack for KBUILD_NEW_VCC (windows).

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r3509 r3552  
    299299  endif
    300300 endif
     301 # HACK ALERT! Using kmk_builting_redirect here to bypass some shell quoting issue.
     302 ifdef KBUILD_NEW_VCC # The OLD CRT will use the codepage default to the locale rather than UTF-8, so APC and CRT ends
     303                      # up using different code pages when a locale other than "C" is used.  Thus, only enable for new compiler.
     304  TEMPLATE_BIN_POST_CMDS.win = \
     305        $(QUIET)$(APPEND) -tn "$(out).manifest" \
     306                '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>' \
     307                '<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">' \
     308                '  <assemblyIdentity type="win32" name="$(notdir $(out))" version="$(KBUILD_VERSION_MAJOR).$(KBUILD_VERSION_MINOR).$(KBUILD_VERSION_PATCH).$(KBUILD_SVN_REV)"/>' \
     309                '  <application>' \
     310                '    <windowsSettings>' \
     311                '      <activeCodePage xmlns="http://schemas.microsoft.com/SMI/2019/WindowsSettings">UTF-8</activeCodePage>' \
     312                '    </windowsSettings>' \
     313                '  </application>' \
     314                '</assembly>' \
     315        $(NLTAB)$(QUIET)$(REDIRECT) -- $(requote sh,$(PATH_SDK_$(firstword $(TEMPLATE_$($(target)_TEMPLATE)_SDKS))_BIN)/mt.exe) \
     316                -nologo -manifest '$(subst /,\,$(out).manifest)' '-outputresource:$(subst /,\,$(out));$(HASH)1' \
     317        $(NLTAB)$(QUIET)$(RM) -f -- "$(out).manifest"
     318 endif
    301319
    302320else # !os2, !win, !nt
     
    431449# for LIB_KDEP
    432450TEMPLATE_LIB_TOOL    = $(TEMPLATE_BIN_TOOL)
    433 
     451TEMPLATE_LIB_CLEAN.win     = $(NO_SUCH_VARIABLE)
     452TEMPLATE_LIB_LNK_DEPS.win  = $(NO_SUCH_VARIABLE)
     453TEMPLATE_LIB_POST_CMDS.win = $(NO_SUCH_VARIABLE)
    434454
    435455#
     
    457477TEMPLATE_LIB-STATIC-THREADED_EXTENDS  = BIN-STATIC-THREADED
    458478TEMPLATE_LIB-STATIC-THREADED_INST     = lib/
    459 
     479TEMPLATE_LIB-STATIC-THREADED_POST_CMDS.win = $(NO_SUCH_VARIABLE)
    460480
    461481#
  • trunk/src/kmk/Makefile.kmk

    r3431 r3552  
    8787
    8888#
     89# Library version of the above.
     90#
     91TEMPLATE_LIB-KMK = Template for src/gmake libraries
     92TEMPLATE_LIB-KMK_EXTENDS = BIN-KMK
     93TEMPLATE_LIB-KMK_POST_CMDS.win = $(NO_SUCH_VARIABLE)
     94
     95#
    8996# Template for building standalone built-in utilities.
    9097#
     
    100107#
    101108LIBRARIES += kmkmissing
    102 kmkmissing_TEMPLATE = BIN-KMK
     109kmkmissing_TEMPLATE = LIB-KMK
    103110kmkmissing_DEFS = KMK
    104111kmkmissing_NOINST = 1
Note: See TracChangeset for help on using the changeset viewer.