- ci_type = thebuilder.env.GetValue('CI_BUILD_TYPE')\r
- if ci_type != 'host_unit_test':\r
- return 0\r
-\r
- shell_env = shell_environment.GetEnvironment()\r
- # Use the tools lib to determine the correct values for the vars that interest us.\r
- interesting_keys = ["ExtensionSdkDir", "INCLUDE", "LIB", "LIBPATH", "UniversalCRTSdkDir",\r
- "UCRTVersion", "WindowsLibPath", "WindowsSdkBinPath", "WindowsSdkDir", "WindowsSdkVerBinPath",\r
- "WindowsSDKVersion", "VCToolsInstallDir"]\r
- vs_vars = locate_tools.QueryVcVariables(interesting_keys, "amd64")\r
- for (k, v) in vs_vars.items():\r
- if k.upper() == "PATH":\r
- shell_env.append_path(v)\r
- else:\r
- shell_env.set_shell_var(k, v)\r