]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11298: [Build-System] Fix Win32 build under Visual Studio.
authorAndrey Volk <andywolk@gmail.com>
Tue, 31 Jul 2018 21:18:09 +0000 (00:18 +0300)
committerAndrey Volk <andywolk@gmail.com>
Tue, 31 Jul 2018 21:18:09 +0000 (00:18 +0300)
libs/win32/sofia/libsofia_sip_ua_static.2017.vcxproj
w32/sound_tools.props

index 9e379430362d3f6151b6eb4011221013d1b45d9e..40bead239f28eed3e5cbe17f3dc70921a21a4d96 100644 (file)
@@ -143,7 +143,7 @@ if not exist "$(ProjectDir)$(IntDir)\auth_client.obj" "autogen.cmd"
   </ItemDefinitionGroup>
   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
     <PreBuildEvent>
-      <Command>icd /D "$(ProjectDir)..\..\sofia-sip\win32\"
+      <Command>cd /D "$(ProjectDir)..\..\sofia-sip\win32\"
 set AWK="$(ProjectDir)..\..\sofia-sip\win32\gawk.exe"
 if not exist "$(ProjectDir)..\..\sofia-sip\libsofia-sip-ua\http\http_parser_table.c"  "autogen.cmd"
 if not exist "$(ProjectDir)$(IntDir)\auth_client.obj" "autogen.cmd"
index 6e947feeb6d6dc1752e0e82d9b20497386a806af..f45d682a101c488a3322e653a9c4be51a08f31fc 100644 (file)
@@ -33,7 +33,9 @@ using Microsoft.Build.Framework;
             /*SoundsDir = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData);
             SoundsDir += "\\FreeSWITCH\\sounds"; */
 
-            SoundsDir = @"$(SolutionDir)$(Platform)\$(Configuration)\sounds";
+            string platform = (@"$(Platform)" == "x86") ? "Win32" : @"$(Platform)";
+
+            SoundsDir = @"$(SolutionDir)" + platform + @"\$(Configuration)\sounds";
 
             Directory.CreateDirectory(SoundsDir);