[Build-System] Remove Sofia-Sip library from the FreeSWITCH tree and use packages instead.

This commit is contained in:
Andrey Volk
2020-07-28 21:10:23 +04:00
parent 08112e9989
commit 2fc0e3b80a
848 changed files with 252 additions and 322003 deletions

View File

@@ -781,6 +781,9 @@ if not exist "$(OutDir)fonts" xcopy "$(SolutionDir)fonts\*.*" "$(OutDir)fonts\"
<ProjectReference Include="..\..\libs\win32\libyuv\libyuv.2017.vcxproj">
<Project>{b6e22500-3db6-4e6e-8cd5-591b781d7d99}</Project>
</ProjectReference>
<ProjectReference Include="..\..\libs\win32\sofia\libsofia_sip_ua_static.2017.vcxproj">
<Project>{70a49bc2-7500-41d0-b75d-edcc5be987a0}</Project>
</ProjectReference>
<ProjectReference Include="..\..\libs\win32\speex\libspeexdsp.2017.vcxproj">
<Project>{03207781-0d1c-4db3-a71d-45c608f28dbd}</Project>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>

View File

@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets">
<Import Project="downloadpackage.task" Condition=" '$(downloadpackagetask_Imported)' == '' " />
</ImportGroup>
<PropertyGroup>
<downloadSofiaSipPropsImported>true</downloadSofiaSipPropsImported>
</PropertyGroup>
<!--
Download Target.
Name must be unique.
By design, targets are executed only once per project.
Usage:
package: URI
expectfileordirectory: Skips the download and extraction if exists
outputfolder: Folder to store a downloaded file.
By default "$(BaseDir)libs", if empty
outputfilename: If not empty, overrides filename from URI.
.exe files don't get extracted
extractto: Folder to extract an archive to
-->
<Target Name="SofiaSipDownloadTarget" BeforeTargets="CustomBuild;PreBuildEvent;" DependsOnTargets="7za">
<DownloadPackageTask
package="https://github.com/freeswitch/sofia-sip/archive/master.zip"
expectfileordirectory="$(BaseDir)libs\sofia-sip\configure.ac"
outputfolder=""
outputfilename="sofia-sip-$(SofiaSipVersion).zip"
extractto="$(BaseDir)libs\"
moveafter="sofia-sip-$(SofiaSipVersion)|sofia-sip"
/>
</Target>
</Project>

View File

@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets">
<Import Project="basedir.props" Condition=" '$(BaseDirImported)' == ''"/>
</ImportGroup>
<PropertyGroup Label="UserMacros">
<SofiaSipVersion>master</SofiaSipVersion>
</PropertyGroup>
<PropertyGroup>
<SofiaSipVersionImported>true</SofiaSipVersionImported>
</PropertyGroup>
<PropertyGroup />
<ItemDefinitionGroup />
<ItemGroup>
<BuildMacro Include="SofiaSipVersion">
<Value>$(SofiaSipVersion)</Value>
</BuildMacro>
</ItemGroup>
</Project>

14
w32/sofia-sip.props Normal file
View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets">
<Import Project="sofia-sip-version.props" Condition=" '$(SofiaSipVersionImported)' == '' "/>
</ImportGroup>
<PropertyGroup Label="UserMacros">
<SofiaSipLibDir>$(SolutionDir)libs\sofia-sip-$(SofiaSipVersion)</SofiaSipLibDir>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
</ItemDefinitionGroup>
</Project>