From 13421eea17e76568df3d289f8c00f91d33c30e7a Mon Sep 17 00:00:00 2001 From: Andrey Volk Date: Wed, 1 Aug 2018 00:18:09 +0300 Subject: [PATCH] FS-11298: [Build-System] Fix Win32 build under Visual Studio. --- libs/win32/sofia/libsofia_sip_ua_static.2017.vcxproj | 2 +- w32/sound_tools.props | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/win32/sofia/libsofia_sip_ua_static.2017.vcxproj b/libs/win32/sofia/libsofia_sip_ua_static.2017.vcxproj index 9e37943036..40bead239f 100644 --- a/libs/win32/sofia/libsofia_sip_ua_static.2017.vcxproj +++ b/libs/win32/sofia/libsofia_sip_ua_static.2017.vcxproj @@ -143,7 +143,7 @@ if not exist "$(ProjectDir)$(IntDir)\auth_client.obj" "autogen.cmd" - icd /D "$(ProjectDir)..\..\sofia-sip\win32\" + 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" diff --git a/w32/sound_tools.props b/w32/sound_tools.props index 6e947feeb6..f45d682a10 100644 --- a/w32/sound_tools.props +++ b/w32/sound_tools.props @@ -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);