2014-01-14 10:04:03 +00: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">
|
|
|
|
<Import Project="curl.props" Condition=" '$(CurlPropsImported)' == '' "/>
|
2014-01-21 11:34:14 +00:00
|
|
|
<Import Project="v8-version.props" Condition=" '$(V8VersionImported)' == '' "/>
|
2017-10-17 18:40:08 +00:00
|
|
|
<Import Project="downloadpackage.task" Condition=" '$(downloadpackagetask_Imported)' == '' " />
|
2014-01-14 10:04:03 +00:00
|
|
|
</ImportGroup>
|
2017-10-17 18:40:08 +00: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
|
|
|
|
-->
|
|
|
|
|
|
|
|
<Target Name="v8libTarget" BeforeTargets="CustomBuild" DependsOnTargets="7za">
|
|
|
|
<DownloadPackageTask
|
|
|
|
package="http://files.freeswitch.org/downloads/libs/v8-$(V8Version).tar.bz2"
|
|
|
|
expectfileordirectory="$(V8libDir)\include\v8.h"
|
|
|
|
outputfolder=""
|
|
|
|
outputfilename=""
|
|
|
|
extractto="$(BaseDir)libs"
|
|
|
|
/>
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
<Target Name="v8libwinTarget" BeforeTargets="CustomBuild" DependsOnTargets="7za">
|
|
|
|
<DownloadPackageTask
|
|
|
|
package="http://files.freeswitch.org/downloads/libs/v8-$(V8Version)-win.tar.bz2"
|
|
|
|
expectfileordirectory="$(V8libDir)\third_party\cygwin"
|
|
|
|
outputfolder=""
|
|
|
|
outputfilename=""
|
|
|
|
extractto="$(BaseDir)libs"
|
|
|
|
/>
|
|
|
|
</Target>
|
|
|
|
|
2014-01-14 10:04:03 +00:00
|
|
|
<ItemDefinitionGroup>
|
|
|
|
<ClCompile>
|
|
|
|
<WarningLevel>Level3</WarningLevel>
|
|
|
|
<TreatWarningAsError>true</TreatWarningAsError>
|
2014-01-21 11:34:14 +00: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 10:04:03 +00:00
|
|
|
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
|
|
</ClCompile>
|
|
|
|
<Link>
|
2014-01-21 11:34:14 +00:00
|
|
|
<AdditionalLibraryDirectories>$(SolutionDir)libs\v8-$(V8Version)\build\$(Configuration)\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
2017-06-29 00:04:18 +00:00
|
|
|
<AdditionalDependencies>icui18n.lib;icuuc.lib;v8.lib;v8_libplatform.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
2014-01-14 10:04:03 +00:00
|
|
|
</Link>
|
|
|
|
</ItemDefinitionGroup>
|
|
|
|
</Project>
|