forked from dblock/msiext
-
Notifications
You must be signed in to change notification settings - Fork 0
/
msi.proj
96 lines (96 loc) · 5.17 KB
/
msi.proj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<Project DefaultTargets="all" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" >
<Import Project="externals\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets"/>
<Import Project="version.proj"/>
<PropertyGroup Condition="'$(Configuration)'==''">
<Configuration>Debug</Configuration>
</PropertyGroup>
<PropertyGroup>
<MajorVersion>1</MajorVersion>
<MinorVersion>4</MinorVersion>
<RevisionVersion>0</RevisionVersion>
<ObjDir>target\$(Configuration)\obj</ObjDir>
<BinDir>target\$(Configuration)\bin</BinDir>
<DropDir>target\$(Configuration)\drop</DropDir>
<ProductName>MSI Extensions</ProductName>
<CompanyName>Application Security Inc.</CompanyName>
<Copyright>Copyright (c) Application Security Inc.</Copyright>
<Trademark>All Rights Reserved</Trademark>
</PropertyGroup>
<Target Name="all">
<Message Importance="high" Text="Building project ..." />
<CallTarget Targets="clean" />
<CallTarget Targets="version" />
<CallTarget Targets="build" />
<CallTarget Targets="doc" />
<CallTarget Targets="drop" />
<CallTarget Targets="zip" />
<CallTarget Targets="test" />
</Target>
<Target Name="clean">
<MSBuild Projects="Msi.sln" Targets="Clean" />
<Delete Files="src\Version\Version.h
;src\Version\GlobalAssemblyInfo.cs" />
<Delete Files="doc\Doxyfile" />
<DeleteTree Directories="target" />
<DeleteTree Directories="src\**\bin;src\**\obj;externals\**\obj" Recursive="true" />
<Delete Files="src\Version\Version.wxi" />
</Target>
<Target Name="build" DependsOnTargets="version">
<MSBuild Projects="Msi.sln" Targets="Build" />
</Target>
<Target Name="drop" DependsOnTargets="version">
<CreateItem Include="$(BinDir)\*.dll" Exclude="$(BinDir)\*Extension.dll;$(BinDir)\wix.dll;$(BinDir)\Microsoft.Deployment.*.dll">
<Output TaskParameter="Include" ItemName="CustomActionBinaries" />
</CreateItem>
<CreateItem Include="$(BinDir)\*Extension.dll">
<Output TaskParameter="Include" ItemName="WixExtensionBinaries" />
</CreateItem>
<CreateItem Include="$(BinDir)\*.msi">
<Output TaskParameter="Include" ItemName="DemoMsis" />
</CreateItem>
<CreateItem Include="$(BinDir)\*.exe" Exclude="$(BinDir)\*UnitTests.exe;$(BinDir)\DemoService.exe">
<Output TaskParameter="Include" ItemName="ToolBinaries" />
</CreateItem>
<MakeDir Directories="$(DropDir)\msiext-$(Major).$(Minor)\CustomActions" />
<Copy DestinationFolder="$(DropDir)\msiext-$(Major).$(Minor)\CustomActions" SourceFiles="@(CustomActionBinaries)" />
<MakeDir Directories="$(DropDir)\msiext-$(Major).$(Minor)\Symbols" />
<Copy DestinationFolder="$(DropDir)\msiext-$(Major).$(Minor)\Symbols" SourceFiles="$(BinDir)\%(CustomActionBinaries.Filename).pdb" />
<MakeDir Directories="$(DropDir)\msiext-$(Major).$(Minor)\WixExtensions" />
<Copy DestinationFolder="$(DropDir)\msiext-$(Major).$(Minor)\WixExtensions" SourceFiles="@(WixExtensionBinaries)" />
<MakeDir Directories="$(DropDir)\msiext-$(Major).$(Minor)\Demos" />
<Copy DestinationFolder="$(DropDir)\msiext-$(Major).$(Minor)\Demos" SourceFiles="@(DemoMsis)" />
<MakeDir Directories="$(DropDir)\msiext-$(Major).$(Minor)\Tools" />
<Copy DestinationFolder="$(DropDir)\msiext-$(Major).$(Minor)\Tools" SourceFiles="@(ToolBinaries)" />
<Copy DestinationFiles="$(DropDir)\msiext-$(Major).$(Minor)\LICENSE" SourceFiles="LICENSE" />
<Copy DestinationFiles="$(DropDir)\msiext-$(Major).$(Minor)\CHANGELOG.md" SourceFiles="CHANGELOG.md" />
</Target>
<Target Name="doc" DependsOnTargets="version">
<Message Text="Building Documentation ..." />
<MakeDir Directories="$(DropDir)\Docs" />
<TemplateFile Template="doc\Doxyfile.template" OutputFilename="Doxyfile" Tokens="@(AssemblyInfoTokens)"/>
<Exec WorkingDirectory="doc" Command="doxygen.exe Doxyfile" />
<CreateItem Include="$(DropDir)\Docs\**">
<Output TaskParameter="Include" ItemName="DocFiles" />
</CreateItem>
<MakeDir Directories="$(DropDir)\msiext-$(Major).$(Minor)\Docs" />
<MV SourceFiles="@(DocFiles)" DestinationFolder="$(DropDir)\msiext-$(Major).$(Minor)\Docs\%(RecursiveDir)" />
<RemoveDir Directories="$(DropDir)\Docs" />
</Target>
<Target Name="test" DependsOnTargets="version">
<CreateItem Include="$(BinDir)\**\*UnitTests.exe">
<Output TaskParameter="Include" ItemName="UnitTests" />
</CreateItem>
<Message Text="Running %(UnitTests.Filename)%(UnitTests.Extension) ..." />
<Exec WorkingDirectory="$(BinDir)" Command="%(UnitTests.Filename)%(UnitTests.Extension)" />
</Target>
<Target Name="slnfix">
<Copy SourceFiles="msi.sln" DestinationFiles="msi.bak" />
<Exec Command="build\tools\SlnDependencyReorder.exe msi.bak > msi.sln" />
</Target>
<Target Name="zip" DependsOnTargets="version">
<CreateItem Include="$(DropDir)\**\*" Exclude="$(DropDir)\*.zip">
<Output TaskParameter="Include" ItemName="PackageFiles" />
</CreateItem>
<Zip WorkingDirectory="$(DropDir)" ZipFileName="$(DropDir)\msiext-$(Major).$(Minor).zip" Files="@(PackageFiles)" ParallelCompression="false" />
</Target>
</Project>