forked from Mirrors/freeswitch
Merge pull request #1890 from signalwire/yasm64
[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:
commit
32525e5901
|
@ -5,6 +5,9 @@
|
|||
</ImportGroup>
|
||||
<PropertyGroup>
|
||||
<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>
|
||||
|
||||
<!--
|
||||
|
@ -28,8 +31,9 @@
|
|||
-->
|
||||
|
||||
<Target Name="YasmDownloadTarget" BeforeTargets="CustomBuild" DependsOnTargets="">
|
||||
<Message Text="System is 64 bit." Condition="'$(Is64yasm)' == 'true'" Importance="High" />
|
||||
<DownloadPackageTask
|
||||
package="http://files.freeswitch.org/downloads/win32/yasm.exe"
|
||||
package="$(PackageToDownload)"
|
||||
expectfileordirectory="$(ProjectDir)\yasm.exe"
|
||||
outputfolder="$(ProjectDir)\"
|
||||
outputfilename=""
|
||||
|
|
Loading…
Reference in New Issue