Ignore:
Timestamp:
Apr 20, 2020, 12:26:17 AM (5 years ago)
Author:
bird
Message:

tools/VCC141*: Redist DLLs and stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/tools/VCC141.kmk

    r3326 r3329  
    154154# @param    $(2)        The extension.
    155155TOOL_VCC141_PDB = $(dir $(1))$(tolower $(notdir $(1))).$(2)
     156
     157#
     158# Try find the redist directory.  A little complicated as the build number
     159# doesn't necessarily match that of the compiler.
     160#
     161ifeq ($(tolower $(substr $(qdir u,$(PATH_TOOL_VCC141)), -12)),/tools/msvc/)
     162PATH_TOOL_VCC141_REDIST ?= $(firstfile $(qwildcard ,$(substr $(qdir ,$(PATH_TOOL_VCC141)), 1, -12)/Redist/MSVC/14.1*))
     163else
     164PATH_TOOL_VCC141_REDIST ?= $(PATH_TOOL_VCC141)/Redist
     165endif
     166PATH_TOOL_VCC141_REDIST_DEBUG ?= $(PATH_TOOL_VCC141_REDIST)/debug_nonredist
     167
     168# Updates may add more msvcp140_[0-9].dll images as the product matures.
     169# ASSUMES all platforms end up with the same number of DLLs.
     170TOOL_VCC141_REDIST_CRT_SUBDIR       := Microsoft.VC141.CRT
     171TOOL_VCC141_REDIST_DEBUG_CRT_SUBDIR := Microsoft.VC141.DebugCRT
     172TOOL_VCC141_REDIST_CRT_DLLS    = vcruntime140.dll \
     173        $(sortfiles $(qnotdir ,$(qwildcard ,$(qaddprefix ,$(requote unq,$(PATH_TOOL_VCC141_REDIST)/),\
     174                $(addsuffix /$(TOOL_VCC141_REDIST_CRT_SUBDIR)/vcruntime140_*.dll, x86 x64 arm arm64)))))
     175TOOL_VCC141_REDIST_CONCRT_DLLS = concrt140.dll \
     176        $(sortfiles $(qnotdir ,$(qwildcard ,$(qaddprefix ,$(requote unq,$(PATH_TOOL_VCC141_REDIST)/),\
     177                $(addsuffix /$(TOOL_VCC141_REDIST_CRT_SUBDIR)/concrt140_*.dll, x86 x64 arm arm64)))))
     178TOOL_VCC141_REDIST_CPP_DLLS    = msvcp140.dll \
     179        $(sortfiles $(qnotdir ,$(qwildcard ,$(qaddprefix ,$(requote unq,$(PATH_TOOL_VCC141_REDIST)/),\
     180                $(addsuffix /$(TOOL_VCC141_REDIST_CRT_SUBDIR)/msvcp140_*.dll, x86 x64 arm arm64)))))
     181TOOL_VCC141_REDIST_WINRT_DLLS  = vccorlib140.dll \
     182        $(sortfiles $(qnotdir ,$(qwildcard ,$(qaddprefix ,$(requote unq,$(PATH_TOOL_VCC141_REDIST)/),\
     183                $(addsuffix /$(TOOL_VCC141_REDIST_CRT_SUBDIR)/concrt140_*.dll, x86 x64 arm arm64)))))
     184
     185TOOL_VCC141_REDIST_CXXAMP_SUBDIR := Microsoft.VC141.CXXAMP
     186TOOL_VCC141_REDIST_MFC_SUBDIR    := Microsoft.VC141.MFC
     187TOOL_VCC141_REDIST_MFCLOC_SUBDIR := Microsoft.VC141.MFCLOC
     188TOOL_VCC141_REDIST_OPENMP_SUBDIR := Microsoft.VC141.OpenMP
    156189
    157190
Note: See TracChangeset for help on using the changeset viewer.