mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-12-19 03:37:46 +00:00
[Build-System] Remove Sofia-Sip library from the FreeSWITCH tree and use packages instead.
This commit is contained in:
@@ -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>
|
||||
|
||||
41
w32/download_sofia-sip.props
Normal file
41
w32/download_sofia-sip.props
Normal 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>
|
||||
19
w32/sofia-sip-version.props
Normal file
19
w32/sofia-sip-version.props
Normal 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
14
w32/sofia-sip.props
Normal 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>
|
||||
Reference in New Issue
Block a user