Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HiveStatistics/sources/packages/jqPlot.1.0.0/build.proj @ 10083

Last change on this file since 10083 was 9617, checked in by pfleck, 11 years ago

#2063:
Started integrating Hive statistics into statistics web project.
Added jqPlot library for charting.

File size: 4.7 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
4  <!--
5    This script will stage NuPack folders for Prism V4.
6    Usage: msbuild build.proj
7   
8    The build script points to the default, Bin folder relative to this proj file.  For final
9    release you should build with the signed binaries.  Use the /p:AssemblyBaseDir=[signedir]
10    option for this.
11  -->
12  <PropertyGroup>
13    <BuildToolsDir>$(MSBuildProjectDirectory)\..\Tools\</BuildToolsDir>
14    <WorkingDir>$(MSBuildProjectDirectory)\..\..\..\NuGetStaging\</WorkingDir>
15    <AssemblyBaseDir>$(MSBuildProjectDirectory)\..\..\Source\Bin\</AssemblyBaseDir>
16    <NuGetExe>$(BuildToolsDir)NuGet.exe</NuGetExe>
17    <PackageVersion>4.0.0.0</PackageVersion>
18  </PropertyGroup>
19
20  <ItemGroup>
21    <NuSpecFile Include="$(MSBuildProjectDirectory)\prism.nuspec">
22      <NuPackPackage>Prism.Core</NuPackPackage>
23    </NuSpecFile>
24    <NuPackFile Include="$(AssemblyBaseDir)\Desktop\Microsoft.Practices.Prism.dll;
25                          $(AssemblyBaseDir)\Desktop\Microsoft.Practices.Prism.Interactivity.dll;
26                          $(AssemblyBaseDir)\Desktop\Microsoft.Practices.Prism.xml;
27                          $(AssemblyBaseDir)\Desktop\Microsoft.Practices.Prism.Interactivity.xml;">
28      <NuPackPackage>Prism.Core</NuPackPackage>
29      <NuPackTargetDir>lib\NET40</NuPackTargetDir>
30    </NuPackFile>
31    <NuPackFile Include="$(AssemblyBaseDir)\Silverlight\Microsoft.Practices.Prism.dll;
32                          $(AssemblyBaseDir)\Silverlight\Microsoft.Practices.Prism.Interactivity.dll;
33                          $(AssemblyBaseDir)\Silverlight\Microsoft.Practices.Prism.xml;
34                          $(AssemblyBaseDir)\Silverlight\Microsoft.Practices.Prism.Interactivity.xml;">
35      <NuPackPackage>Prism.Core</NuPackPackage>
36      <NuPackTargetDir>lib\SL4</NuPackTargetDir>
37    </NuPackFile>
38  </ItemGroup>
39 
40 <ItemGroup>
41    <NuSpecFile Include="$(MSBuildProjectDirectory)\prism.mefextensions.nuspec">
42      <NuPackPackage>Prism.MEFExtensions</NuPackPackage>
43    </NuSpecFile>
44    <NuPackFile Include="$(AssemblyBaseDir)\Desktop\Microsoft.Practices.Prism.MefExtensions.dll;
45                          $(AssemblyBaseDir)\Desktop\Microsoft.Practices.Prism.MefExtensions.xml;">
46      <NuPackPackage>Prism.MEFExtensions</NuPackPackage>
47      <NuPackTargetDir>lib\NET40</NuPackTargetDir>
48    </NuPackFile>
49    <NuPackFile Include="$(AssemblyBaseDir)\Silverlight\Microsoft.Practices.Prism.MefExtensions.dll;
50                          $(AssemblyBaseDir)\Silverlight\Microsoft.Practices.Prism.MefExtensions.xml;">
51      <NuPackPackage>Prism.MEFExtensions</NuPackPackage>
52      <NuPackTargetDir>lib\SL4</NuPackTargetDir>
53    </NuPackFile>
54  </ItemGroup>
55 
56 <ItemGroup>
57    <NuSpecFile Include="$(MSBuildProjectDirectory)\prism.unityextensions.nuspec">
58      <NuPackPackage>Prism.UnityExtensions</NuPackPackage>
59    </NuSpecFile>
60    <NuPackFile Include=" $(AssemblyBaseDir)\Desktop\Microsoft.Practices.Prism.UnityExtensions.dll;
61                          $(AssemblyBaseDir)\Desktop\Microsoft.Practices.Prism.UnityExtensions.xml;">
62      <NuPackPackage>Prism.UnityExtensions</NuPackPackage>
63      <NuPackTargetDir>lib\NET40</NuPackTargetDir>
64    </NuPackFile>
65    <NuPackFile Include=" $(AssemblyBaseDir)\Silverlight\Microsoft.Practices.Prism.UnityExtensions.dll;
66                          $(AssemblyBaseDir)\Silverlight\Microsoft.Practices.Prism.UnityExtensions.xml;">
67      <NuPackPackage>Prism.UnityExtensions</NuPackPackage>
68      <NuPackTargetDir>lib\SL4</NuPackTargetDir>
69    </NuPackFile>
70  </ItemGroup>
71 
72  <Target Name="Build" DependsOnTargets="StageFiles;CompilePackage;CollectPackages">
73   
74  </Target>
75
76  <Target Name="StageFiles">
77    <RemoveDir Directories="$(WorkingDir)" Condition="EXISTS('$(WorkingDir)')" />
78    <MakeDir Directories="$(WorkingDir)" />
79   
80    <Copy SourceFiles="@(NuSpecFile)" DestinationFiles="$(WorkingDir)%(NuPackPackage)\$(PackageVersion)\%(Filename)%(Extension)" />
81    <Copy SourceFiles="@(NuPackFile)" DestinationFiles="$(WorkingDir)%(NuPackPackage)\$(PackageVersion)\%(NuPackTargetDir)\%(Filename)%(Extension)" />
82  </Target>
83
84  <Target Name="CompilePackage">
85    <ItemGroup>
86      <Compile Include="$(WorkingDir)**\*.nuspec" />
87    </ItemGroup>
88    <Exec Command="$(NuGetExe) pack @(Compile)" WorkingDirectory="%(RootDir)%(Directory)" />
89  </Target>
90 
91  <Target Name="CollectPackages">
92    <ItemGroup>
93      <Packages Include="$(WorkingDir)**\*.nupkg" />
94    </ItemGroup>
95   
96    <Copy SourceFiles="@(Packages)" DestinationFolder="$(WorkingDir)\packages" />
97  </Target>
98</Project>
Note: See TracBrowser for help on using the repository browser.