]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[Build-System] Fix build on Windows 11: yasm tool compiled for x86 does not work... 1890/head
authorAndrey Volk <andywolk@gmail.com>
Thu, 8 Dec 2022 00:02:42 +0000 (03:02 +0300)
committerAndrey Volk <andywolk@gmail.com>
Thu, 8 Dec 2022 00:03:04 +0000 (03:03 +0300)
w32/yasm.props

index 3ebcc6c84cd74b9accec7c70f16f8238959eda57..ffc415142672b283034522906118f798b79313bd 100644 (file)
@@ -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=""