|
From: <vac...@us...> - 2010-04-19 12:42:06
|
Revision: 182
http://xmlwrapp.svn.sourceforge.net/xmlwrapp/?rev=182&view=rev
Author: vaclavslavik
Date: 2010-04-19 12:42:00 +0000 (Mon, 19 Apr 2010)
Log Message:
-----------
Add win32 msbuild script for downloading dependencies.
This makes it a bit easier to build with VC++.
Modified Paths:
--------------
trunk/platform/Win32/README
trunk/platform/Win32/xmlwrapp.bkl
Added Paths:
-----------
trunk/platform/Win32/master.proj
Modified: trunk/platform/Win32/README
===================================================================
--- trunk/platform/Win32/README 2010-04-10 08:39:59 UTC (rev 181)
+++ trunk/platform/Win32/README 2010-04-19 12:42:00 UTC (rev 182)
@@ -1,3 +1,8 @@
Please use Bakefile (http://www.bakefile.org) to generate Visual C++ project
files.
+
+
+For convience, master.proj msbuild project is included. This downloads all
+dependencies. It requires MSBuild.Community.Tasks from
+http://msbuildtasks.tigris.org/ (just install the MSI package).
Added: trunk/platform/Win32/master.proj
===================================================================
--- trunk/platform/Win32/master.proj (rev 0)
+++ trunk/platform/Win32/master.proj 2010-04-19 12:42:00 UTC (rev 182)
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+
+ <!-- configurable settings -->
+ <PropertyGroup>
+ <VCVersion>9</VCVersion>
+
+ <VersionZlib>1.2.3</VersionZlib>
+ <VersionIconv>1.9.2</VersionIconv>
+ <VersionLibxml2>2.7.6</VersionLibxml2>
+ <VersionLibxslt>1.1.26</VersionLibxslt>
+ </PropertyGroup>
+
+ <PropertyGroup>
+ <LibxmlWinSite>ftp://ftp.zlatkovic.com/libxml</LibxmlWinSite>
+ <DirZlib>zlib-$(VersionZlib).win32</DirZlib>
+ <DirIconv>iconv-$(VersionIconv).win32</DirIconv>
+ <DirLibxml2>libxml2-$(VersionLibxml2).win32</DirLibxml2>
+ <DirLibxslt>libxslt-$(VersionLibxslt).win32</DirLibxslt>
+ <ZipZlib>$(DirZlib).zip</ZipZlib>
+ <ZipIconv>$(DirIconv).zip</ZipIconv>
+ <ZipLibxml2>$(DirLibxml2).zip</ZipLibxml2>
+ <ZipLibxslt>$(DirLibxslt).zip</ZipLibxslt>
+ </PropertyGroup>
+
+ <Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets"/>
+
+ <Target Name="Build" DependsOnTargets="Deps" >
+ <Message Text="Building C++ library with Visual C++ $(VCVersion)..."/>
+ <ItemGroup>
+ <VCProjFiles Include="xmlwrapp_vc$(VCVersion)_*.vcproj"/>
+ </ItemGroup>
+ <VCBuild SolutionFile="xmlwrapp_vc$(VCVersion).sln"
+ Projects="@(VCProjFiles)"
+ Configuration="$(Configuration)"
+ />
+ </Target>
+
+ <Target Name="Deps">
+ <MakeDir Directories="download"/>
+ <WebDownload Condition="!Exists('download\$(ZipZlib)')"
+ FileName="download\$(ZipZlib)"
+ FileUri="$(LibxmlWinSite)//$(ZipZlib)"/>
+ <WebDownload Condition="!Exists('download\$(ZipIconv)')"
+ FileName="download\$(ZipIconv)"
+ FileUri="$(LibxmlWinSite)//$(ZipIconv)"/>
+ <WebDownload Condition="!Exists('download\$(ZipLibxml2)')"
+ FileName="download\$(ZipLibxml2)"
+ FileUri="$(LibxmlWinSite)//$(ZipLibxml2)"/>
+ <WebDownload Condition="!Exists('download\$(ZipLibxslt)')"
+ FileName="download\$(ZipLibxslt)"
+ FileUri="$(LibxmlWinSite)//$(ZipLibxslt)"/>
+
+ <Unzip ZipFileName="download\$(ZipZlib)" TargetDirectory="download"/>
+ <Unzip ZipFileName="download\$(ZipIconv)" TargetDirectory="download"/>
+ <Unzip ZipFileName="download\$(ZipLibxml2)" TargetDirectory="download"/>
+ <Unzip ZipFileName="download\$(ZipLibxslt)" TargetDirectory="download"/>
+
+ <ItemGroup>
+ <BinFiles Include="download\*.win32\bin\*"/>
+ <LibFiles Include="download\*.win32\lib\*"/>
+ <IncludeFiles Include="download\*.win32\include\*"/>
+ <IncludeFilesLibxml Include="download\*.win32\include\libxml\*"/>
+ <IncludeFilesLibxslt Include="download\*.win32\include\libxslt\*"/>
+ <IncludeFilesLibexslt Include="download\*.win32\include\libexslt\*"/>
+ </ItemGroup>
+ <Copy SkipUnchangedFiles="true" SourceFiles="@(BinFiles)" DestinationFolder="bin"/>
+ <Copy SkipUnchangedFiles="true" SourceFiles="@(LibFiles)" DestinationFolder="lib"/>
+ <Copy SkipUnchangedFiles="true" SourceFiles="@(IncludeFiles)" DestinationFolder="include"/>
+ <Copy SkipUnchangedFiles="true" SourceFiles="@(IncludeFilesLibxml)" DestinationFolder="include\libxml"/>
+ <Copy SkipUnchangedFiles="true" SourceFiles="@(IncludeFilesLibxslt)" DestinationFolder="include\libxslt"/>
+ <Copy SkipUnchangedFiles="true" SourceFiles="@(IncludeFilesLibexslt)" DestinationFolder="include\libexslt"/>
+ </Target>
+
+ <Target Name="Clean">
+ <RemoveDir Directories="download;bin;include;lib;Debug;Release"/>
+ </Target>
+</Project>
Modified: trunk/platform/Win32/xmlwrapp.bkl
===================================================================
--- trunk/platform/Win32/xmlwrapp.bkl 2010-04-10 08:39:59 UTC (rev 181)
+++ trunk/platform/Win32/xmlwrapp.bkl 2010-04-19 12:42:00 UTC (rev 182)
@@ -7,6 +7,7 @@
<template id="xmlwrapp_lib" template="simple">
<include>../../include</include>
+ <include>include</include>
</template>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|