2014-01-14 05:04:03 -05:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
|
|
<ImportGroup Label="PropertySheets">
|
2014-01-21 06:34:14 -05:00
|
|
|
<Import Project="v8-version.props" Condition=" '$(V8VersionImported)' == '' "/>
|
2017-10-17 14:40:08 -04:00
|
|
|
<Import Project="downloadpackage.task" Condition=" '$(downloadpackagetask_Imported)' == '' " />
|
2014-01-14 05:04:03 -05:00
|
|
|
</ImportGroup>
|
2017-10-17 14:40:08 -04:00
|
|
|
|
|
|
|
<PropertyGroup Label="UserMacros">
|
|
|
|
<V8libDir>$(BaseDir)libs\v8-$(V8Version)</V8libDir>
|
|
|
|
</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
|
|
|
|
-->
|
|
|
|
|
2018-03-27 17:03:28 -04:00
|
|
|
<Target Name="v8BinariesDownloadTarget" BeforeTargets="CustomBuild" DependsOnTargets="7za">
|
2017-10-17 14:40:08 -04:00
|
|
|
<DownloadPackageTask
|
2018-03-27 17:03:28 -04:00
|
|
|
package="http://files.freeswitch.org/windows/packages/v8/$(V8Version)/v8-$(V8Version)-binaries-$(Platform.ToLower())-$(Configuration.ToLower()).zip"
|
|
|
|
expectfileordirectory="$(V8libDir)\binaries\$(Platform)\$(Configuration)\v8.dll"
|
2017-10-17 14:40:08 -04:00
|
|
|
outputfolder=""
|
|
|
|
outputfilename=""
|
2018-03-27 17:03:28 -04:00
|
|
|
extractto="$(BaseDir)libs\"
|
2017-10-17 14:40:08 -04:00
|
|
|
/>
|
|
|
|
</Target>
|
2018-03-27 17:03:28 -04:00
|
|
|
<Target Name="v8HeadersDownloadTarget" BeforeTargets="CustomBuild" DependsOnTargets="7za">
|
2017-10-17 14:40:08 -04:00
|
|
|
<DownloadPackageTask
|
2018-03-27 17:03:28 -04:00
|
|
|
package="http://files.freeswitch.org/windows/packages/v8/$(V8Version)/v8-$(V8Version)-headers.zip"
|
|
|
|
expectfileordirectory="$(V8libDir)\include\v8.h"
|
2017-10-17 14:40:08 -04:00
|
|
|
outputfolder=""
|
|
|
|
outputfilename=""
|
2018-03-27 17:03:28 -04:00
|
|
|
extractto="$(BaseDir)libs\"
|
2017-10-17 14:40:08 -04:00
|
|
|
/>
|
|
|
|
</Target>
|
|
|
|
|
2018-03-27 17:03:28 -04:00
|
|
|
<Target Name="v8copyTarget" BeforeTargets="CustomBuild" DependsOnTargets="v8BinariesDownloadTarget">
|
|
|
|
<Message Text="Copying v8 libraries to the freeswitch output folder." Importance="High" />
|
|
|
|
<ItemGroup>
|
|
|
|
<v8Files Include="$(V8libDir)\binaries\$(Platform)\$(Configuration)\*.dll"/>
|
|
|
|
</ItemGroup>
|
|
|
|
<Copy Condition="!exists('$(BaseDir)\$(Platform)\$(Configuration)\v8.dll')"
|
|
|
|
SourceFiles="@(v8Files)"
|
|
|
|
DestinationFiles="@(v8Files->'$(BaseDir)\$(Platform)\$(Configuration)\%(Filename)%(Extension)')"
|
|
|
|
/>
|
|
|
|
</Target>
|
|
|
|
|
2014-01-14 05:04:03 -05:00
|
|
|
<ItemDefinitionGroup>
|
|
|
|
<ClCompile>
|
|
|
|
<WarningLevel>Level3</WarningLevel>
|
|
|
|
<TreatWarningAsError>true</TreatWarningAsError>
|
2014-01-21 06:34:14 -05:00
|
|
|
<AdditionalIncludeDirectories>$(SolutionDir)libs\v8-$(V8Version)\include;$(SolutionDir)src\mod\languages\mod_v8;$(SolutionDir)src\mod\languages\mod_v8\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
2014-01-14 05:04:03 -05:00
|
|
|
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
|
|
</ClCompile>
|
|
|
|
<Link>
|
2018-03-27 17:03:28 -04:00
|
|
|
<AdditionalLibraryDirectories>$(SolutionDir)libs\v8-$(V8Version)\binaries\$(Platform)\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
|
|
|
<AdditionalDependencies>v8.dll.lib;v8_libbase.dll.lib;v8_libplatform.dll.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
2014-01-14 05:04:03 -05:00
|
|
|
</Link>
|
|
|
|
</ItemDefinitionGroup>
|
|
|
|
</Project>
|