[Build-System] Fix build on Windows 11: yasm tool compiled for x86 does not work on x64 system. Download yasm.exe 64bit instead.
This commit is contained in:
parent
62d3e52cf9
commit
52e97e8d0a
|
@ -5,6 +5,9 @@
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<YasmPropsImported>true</YasmPropsImported>
|
<YasmPropsImported>true</YasmPropsImported>
|
||||||
|
<Is64yasm Condition="$([System.Environment]::Is64BitProcess)">true</Is64yasm>
|
||||||
|
<PackageToDownload Condition="'$(Is64yasm)' == 'true'">http://files.freeswitch.org/downloads/win64/yasm.exe</PackageToDownload>
|
||||||
|
<PackageToDownload Condition="'$(Is64yasm)' != 'true'">http://files.freeswitch.org/downloads/win32/yasm.exe</PackageToDownload>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
@ -28,8 +31,9 @@
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<Target Name="YasmDownloadTarget" BeforeTargets="CustomBuild" DependsOnTargets="">
|
<Target Name="YasmDownloadTarget" BeforeTargets="CustomBuild" DependsOnTargets="">
|
||||||
|
<Message Text="System is 64 bit." Condition="'$(Is64yasm)' == 'true'" Importance="High" />
|
||||||
<DownloadPackageTask
|
<DownloadPackageTask
|
||||||
package="http://files.freeswitch.org/downloads/win32/yasm.exe"
|
package="$(PackageToDownload)"
|
||||||
expectfileordirectory="$(ProjectDir)\yasm.exe"
|
expectfileordirectory="$(ProjectDir)\yasm.exe"
|
||||||
outputfolder="$(ProjectDir)\"
|
outputfolder="$(ProjectDir)\"
|
||||||
outputfilename=""
|
outputfilename=""
|
||||||
|
|
Loading…
Reference in New Issue