Merge pull request #1559 in FS/freeswitch from ~ANDYWOLK/freeswitch:bugfix/FS-11298-fix-win32-build-under-visual-studio to master

* commit '13421eea17e76568df3d289f8c00f91d33c30e7a':
  FS-11298: [Build-System] Fix Win32 build under Visual Studio.
This commit is contained in:
Mike Jerris 2018-07-31 21:37:33 +00:00
commit 263c699f61
2 changed files with 4 additions and 2 deletions

View 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"

View 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);