summaryrefslogtreecommitdiff
path: root/BaseTools/set_vsprefix_envs.bat
diff options
context:
space:
mode:
authorSean Brogan <sean.brogan@microsoft.com>2019-10-07 19:54:21 -0700
committerMichael D Kinney <michael.d.kinney@intel.com>2019-11-11 13:01:46 -0800
commit7569e35bc9f965c4b385d7cc91118228c1d93716 (patch)
tree88c67bc816d5c402de6bbba5c2182532bbf64c22 /BaseTools/set_vsprefix_envs.bat
parentab5892f260b0a49f85038e9cab7da4576b8b1874 (diff)
downloadedk2-7569e35bc9f965c4b385d7cc91118228c1d93716.zip
edk2-7569e35bc9f965c4b385d7cc91118228c1d93716.tar.gz
edk2-7569e35bc9f965c4b385d7cc91118228c1d93716.tar.bz2
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>
Diffstat (limited to 'BaseTools/set_vsprefix_envs.bat')
-rw-r--r--BaseTools/set_vsprefix_envs.bat10
1 files changed, 10 insertions, 0 deletions
diff --git a/BaseTools/set_vsprefix_envs.bat b/BaseTools/set_vsprefix_envs.bat
index 6dff25d..9966a5a 100644
--- a/BaseTools/set_vsprefix_envs.bat
+++ b/BaseTools/set_vsprefix_envs.bat
@@ -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 (