|
4 | 4 |
|
5 | 5 | <PropertyGroup> |
6 | 6 | <EmscriptenSdkToolsPath>$([MSBuild]::EnsureTrailingSlash($(EMSDK_PATH)))</EmscriptenSdkToolsPath> |
7 | | - <EmscriptenUpstreamBinPath>$([MSBuild]::NormalizeDirectory($(EmscriptenSdkToolsPath), 'upstream', 'bin'))</EmscriptenUpstreamBinPath> |
8 | | - <EmscriptenUpstreamEmscriptenPath>$([MSBuild]::NormalizeDirectory($(EmscriptenSdkToolsPath), 'upstream', 'emscripten'))</EmscriptenUpstreamEmscriptenPath> |
9 | | - |
10 | | - <_NodeToolsBasePath>$(EmscriptenSdkToolsPath)node</_NodeToolsBasePath> |
| 7 | + <EmscriptenUpstreamBinPath>$([MSBuild]::NormalizeDirectory($(EmscriptenSdkToolsPath), 'bin'))</EmscriptenUpstreamBinPath> |
| 8 | + <EmscriptenUpstreamEmscriptenPath>$([MSBuild]::NormalizeDirectory($(EmscriptenSdkToolsPath), 'emscripten'))</EmscriptenUpstreamEmscriptenPath> |
11 | 9 |
|
12 | 10 | <!-- gets the path like emsdk/python/3.7.4-2_64bit --> |
13 | | - <_NodeToolsVersionedPath Condition="Exists($(_NodeToolsBasePath))">$([System.IO.Directory]::GetDirectories($(_NodeToolsBasePath)))</_NodeToolsVersionedPath> |
14 | | - <EmscriptenNodeToolsPath Condition="'$(_NodeToolsVersionedPath)' != ''">$(_NodeToolsVersionedPath)</EmscriptenNodeToolsPath> |
15 | | - <EmscriptenNodeToolsPath Condition="'$(EmscriptenNodeToolsPath)' != ''">$([MSBuild]::NormalizeDirectory($(EmscriptenNodeToolsPath)))</EmscriptenNodeToolsPath> |
| 11 | + <EmscriptenNodeToolsPath Condition="'$(EmscriptenNodeToolsPath)' == ''">$([MSBuild]::NormalizeDirectory($(EmscriptenSdkToolsPath), 'node', 'bin'))</EmscriptenNodeToolsPath> |
16 | 12 |
|
17 | 13 | <_UsingEMSDK_PATH>true</_UsingEMSDK_PATH> |
18 | 14 | </PropertyGroup> |
19 | 15 |
|
20 | 16 | <!-- Emscripten uses system python on Linux, so we don't need $(EmscriptenPythonToolsPath) --> |
21 | 17 | <PropertyGroup Condition="!$([MSBuild]::IsOSPlatform('linux'))"> |
22 | | - <_PythonToolsBasePath>$(EmscriptenSdkToolsPath)python</_PythonToolsBasePath> |
23 | | - <_PythonToolsVersionedPath Condition="Exists($(_PythonToolsBasePath))">$([System.IO.Directory]::GetDirectories($(_PythonToolsBasePath)))</_PythonToolsVersionedPath> |
24 | | - <EmscriptenPythonToolsPath Condition="'$(_PythonToolsVersionedPath)' != ''">$(_PythonToolsVersionedPath)</EmscriptenPythonToolsPath> |
25 | | - <EmscriptenPythonToolsPath Condition="'$(EmscriptenPythonToolsPath)' != ''">$([MSBuild]::NormalizeDirectory($(EmscriptenPythonToolsPath)))</EmscriptenPythonToolsPath> |
| 18 | + <EmscriptenPythonToolsPath>$([MSBuild]::NormalizeDirectory($(EmscriptenSdkToolsPath)python))</EmscriptenPythonToolsPath> |
26 | 19 |
|
27 | 20 | <_EMSDKMissingPaths Condition="'$(_EMSDKMissingPaths)' == '' and ('$(EmscriptenPythonToolsPath)' == '' or !Exists('$(EmscriptenPythonToolsPath)'))">%24(EmscriptenPythonToolsPath)=$(EmscriptenPythonToolsPath) </_EMSDKMissingPaths> |
28 | 21 | </PropertyGroup> |
|
31 | 24 | <ItemGroup> |
32 | 25 | <EmscriptenPrependPATH Include="$(EmscriptenSdkToolsPath)" /> |
33 | 26 | <EmscriptenPrependPATH Include="$(EmscriptenUpstreamBinPath)" /> |
34 | | - <EmscriptenPrependPATH Include="$([MSBuild]::NormalizeDirectory($(EmscriptenSdkToolsPath), 'upstream', 'emscripten'))" /> |
| 27 | + <EmscriptenPrependPATH Include="$([MSBuild]::NormalizeDirectory($(EmscriptenSdkToolsPath), 'emscripten'))" /> |
35 | 28 |
|
36 | | - <EmscriptenPrependPATH Include="$(EmscriptenNodeToolsPath)bin" /> |
| 29 | + <EmscriptenPrependPATH Include="$(EmscriptenNodeToolsPath)" /> |
37 | 30 | </ItemGroup> |
38 | 31 |
|
39 | 32 | <ItemGroup Condition="'$(EmscriptenPythonToolsPath)' != ''"> |
|
0 commit comments