BaseTools: Add RC_PATH define for VS2017/2019

https://bugzilla.tianocore.org/show_bug.cgi?id=2315

Add use of RC_PATH define that provides the path to the resource
compiler that is typically provided in a Windows SDK.  The path
changes with different Windows SDK releases.  This define is set
to the WINSDK_PATH_FOR_RC_EXE environment variable.  This
environment variable must be set to the path to the currently
installed resource compiler (rc.exe).

Update set_vsprefix_envs.bat to set WINSDK_PATH_FOR_RC_EXE
if a Windows SDK is detected.

Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
Sean Brogan
2019-10-07 19:54:21 -07:00
committed by Michael D Kinney
parent ab5892f260
commit 7569e35bc9
2 changed files with 26 additions and 2 deletions

View File

@@ -158,6 +158,11 @@ if defined VCToolsInstallDir (
)
)
)
if not defined WINSDK_PATH_FOR_RC_EXE (
if defined WINSDK10_PREFIX (
set "WINSDK_PATH_FOR_RC_EXE=%WINSDK10_PREFIX%x86"
)
)
:SetVS2017
if not defined VS150COMNTOOLS (
@@ -209,6 +214,11 @@ if defined VCToolsInstallDir (
)
)
)
if not defined WINSDK_PATH_FOR_RC_EXE (
if defined WINSDK10_PREFIX (
set "WINSDK_PATH_FOR_RC_EXE=%WINSDK10_PREFIX%x86"
)
)
:SetWinDDK
if not defined WINDDK3790_PREFIX (