forked from M2Team/NanaZip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BuildAllTargets.proj
74 lines (71 loc) · 5.05 KB
/
BuildAllTargets.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
<?xml version="1.0" encoding="utf-8"?>
<Project
DefaultTargets="Restore;Build;Packaging"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="Restore">
<ItemGroup>
<RestoreProjectReference Include="$(MSBuildThisFileDirectory)NanaZip.sln">
<AdditionalProperties>Configuration=Debug;Platform=x86</AdditionalProperties>
</RestoreProjectReference>
<RestoreProjectReference Include="$(MSBuildThisFileDirectory)NanaZip.sln">
<AdditionalProperties>Configuration=Release;Platform=x86</AdditionalProperties>
</RestoreProjectReference>
<RestoreProjectReference Include="$(MSBuildThisFileDirectory)NanaZip.sln">
<AdditionalProperties>Configuration=Debug;Platform=x64</AdditionalProperties>
</RestoreProjectReference>
<RestoreProjectReference Include="$(MSBuildThisFileDirectory)NanaZip.sln">
<AdditionalProperties>Configuration=Release;Platform=x64</AdditionalProperties>
</RestoreProjectReference>
</ItemGroup>
<MSBuild
Projects="@(RestoreProjectReference)"
Targets="Restore"
StopOnFirstFailure="True"
Properties="PreferredToolArchitecture=x64" />
</Target>
<Target Name="Build">
<MSBuild
Projects="$(MSBuildThisFileDirectory)NanaZipPackage\NanaZipPackage.wapproj"
Targets="Build"
BuildInParallel="True"
StopOnFirstFailure="True"
Properties="PreferredToolArchitecture=x64;Configuration=Debug;Platform=x64" />
<MSBuild
Projects="$(MSBuildThisFileDirectory)NanaZipPackage\NanaZipPackage.wapproj"
Targets="Build"
BuildInParallel="True"
StopOnFirstFailure="True"
Properties="PreferredToolArchitecture=x64;Configuration=Release;Platform=x64" />
</Target>
<Target Name="Packaging">
<PropertyGroup>
<InputBinariesPath>$(MSBuildThisFileDirectory)Output\Binaries\Release\</InputBinariesPath>
<OutputSymbolsPath>$(MSBuildThisFileDirectory)Output\Binaries\Root\Symbols\</OutputSymbolsPath>
<OutputFileNamePrefix>NanaZip_3.1.$([System.DateTime]::Today.Subtract($([System.DateTime]::Parse('2021-08-31'))).TotalDays).0</OutputFileNamePrefix>
</PropertyGroup>
<MakeDir Directories="$(OutputSymbolsPath)arm64" />
<MakeDir Directories="$(OutputSymbolsPath)x64" />
<MakeDir Directories="$(OutputSymbolsPath)x86" />
<Copy SourceFiles="$(MSBuildThisFileDirectory)License.md" DestinationFiles="$(OutputSymbolsPath)License.txt" />
<Copy SourceFiles="$(InputBinariesPath)NanaZipPackage\arm64\NanaZip.Codecs.pdb" DestinationFolder="$(OutputSymbolsPath)arm64" />
<Copy SourceFiles="$(InputBinariesPath)NanaZipPackage\arm64\NanaZip.Console.pdb" DestinationFolder="$(OutputSymbolsPath)arm64" />
<Copy SourceFiles="$(InputBinariesPath)NanaZipPackage\arm64\NanaZip.Core.Console.pdb" DestinationFolder="$(OutputSymbolsPath)arm64" />
<Copy SourceFiles="$(InputBinariesPath)NanaZipPackage\arm64\NanaZip.Core.pdb" DestinationFolder="$(OutputSymbolsPath)arm64" />
<Copy SourceFiles="$(InputBinariesPath)NanaZipPackage\arm64\NanaZip.Core.Windows.pdb" DestinationFolder="$(OutputSymbolsPath)arm64" />
<Copy SourceFiles="$(InputBinariesPath)NanaZipPackage\arm64\NanaZip.Modern.pdb" DestinationFolder="$(OutputSymbolsPath)arm64" />
<Copy SourceFiles="$(InputBinariesPath)NanaZipPackage\arm64\NanaZip.ShellExtension.pdb" DestinationFolder="$(OutputSymbolsPath)arm64" />
<Copy SourceFiles="$(InputBinariesPath)NanaZipPackage\arm64\NanaZip.Windows.pdb" DestinationFolder="$(OutputSymbolsPath)arm64" />
<Copy SourceFiles="$(InputBinariesPath)NanaZipPackage\x64\NanaZip.Codecs.pdb" DestinationFolder="$(OutputSymbolsPath)x64" />
<Copy SourceFiles="$(InputBinariesPath)NanaZipPackage\x64\NanaZip.Console.pdb" DestinationFolder="$(OutputSymbolsPath)x64" />
<Copy SourceFiles="$(InputBinariesPath)NanaZipPackage\x64\NanaZip.Core.Console.pdb" DestinationFolder="$(OutputSymbolsPath)x64" />
<Copy SourceFiles="$(InputBinariesPath)NanaZipPackage\x64\NanaZip.Core.pdb" DestinationFolder="$(OutputSymbolsPath)x64" />
<Copy SourceFiles="$(InputBinariesPath)NanaZipPackage\x64\NanaZip.Core.Windows.pdb" DestinationFolder="$(OutputSymbolsPath)x64" />
<Copy SourceFiles="$(InputBinariesPath)NanaZipPackage\x64\NanaZip.Modern.pdb" DestinationFolder="$(OutputSymbolsPath)x64" />
<Copy SourceFiles="$(InputBinariesPath)NanaZipPackage\x64\NanaZip.ShellExtension.pdb" DestinationFolder="$(OutputSymbolsPath)x64" />
<Copy SourceFiles="$(InputBinariesPath)NanaZipPackage\x64\NanaZip.Windows.pdb" DestinationFolder="$(OutputSymbolsPath)x64" />
<Copy SourceFiles="$(InputBinariesPath)Win32\NanaZip.Core.Console.pdb" DestinationFolder="$(OutputSymbolsPath)x86" />
<Copy SourceFiles="$(InputBinariesPath)Win32\NanaZip.Core.Sfx.Shared.pdb" DestinationFolder="$(OutputSymbolsPath)x86" />
<Copy SourceFiles="$(InputBinariesPath)Win32\NanaZip.Core.Windows.pdb" DestinationFolder="$(OutputSymbolsPath)x86" />
<Exec Command="7z a -r .\Output\$(OutputFileNamePrefix)_DebugSymbols.zip .\Output\Binaries\Root\Symbols\*.*" WorkingDirectory="$(MSBuildThisFileDirectory)"/>
</Target>
</Project>