2016-06-28 01:26:57 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<Project ToolsVersion="14.0" DefaultTargets="Layout" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
2017-02-23 18:37:48 +00:00
|
|
|
<PropertyGroup>
|
|
|
|
<ArchiveOutputDirectory>$(PackagesDirectory)</ArchiveOutputDirectory>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
2016-07-22 23:01:32 +00:00
|
|
|
<Target Name="GenerateArchives"
|
|
|
|
DependsOnTargets="Init;
|
|
|
|
Layout;
|
|
|
|
SetupGenerateArchivesInputsOutputs;
|
|
|
|
MakePackagesDir;"
|
|
|
|
Inputs="%(GenerateArchivesInputsOutputs.Inputs)"
|
|
|
|
Outputs="%(GenerateArchivesInputsOutputs.Outputs)">
|
|
|
|
|
2016-06-28 01:26:57 +00:00
|
|
|
<PropertyGroup>
|
2016-07-22 23:01:32 +00:00
|
|
|
<GenerateArchivesDestinationArchive>$(ArchiveOutputDirectory)/%(GenerateArchivesInputsOutputs.OutFileName)$(ArchiveExtension)</GenerateArchivesDestinationArchive>
|
2016-06-28 01:26:57 +00:00
|
|
|
</PropertyGroup>
|
|
|
|
|
2016-07-22 23:01:32 +00:00
|
|
|
<ZipFileCreateFromDirectory
|
|
|
|
Condition=" '$(OSName)' == 'win' "
|
|
|
|
SourceDirectory="%(GenerateArchivesInputsOutputs.InputDirectory)"
|
2017-02-15 01:21:37 +00:00
|
|
|
DestinationArchive="$(GenerateArchivesDestinationArchive)"
|
2017-06-21 15:48:12 +00:00
|
|
|
OverwriteDestination="true"
|
2017-06-22 05:27:28 +00:00
|
|
|
ExcludePatterns="%(GenerateArchivesInputsOutputs.ExcludePatterns)" />
|
2016-07-22 23:01:32 +00:00
|
|
|
|
|
|
|
<TarGzFileCreateFromDirectory
|
|
|
|
Condition=" '$(OSName)' != 'win' "
|
|
|
|
SourceDirectory="%(GenerateArchivesInputsOutputs.InputDirectory)"
|
2017-02-15 01:21:37 +00:00
|
|
|
DestinationArchive="$(GenerateArchivesDestinationArchive)"
|
2017-06-21 15:48:12 +00:00
|
|
|
OverwriteDestination="true"
|
2017-06-22 05:27:28 +00:00
|
|
|
ExcludePatterns="%(GenerateArchivesInputsOutputs.ExcludePatterns)" />
|
2016-07-22 23:01:32 +00:00
|
|
|
|
2016-06-28 01:26:57 +00:00
|
|
|
<ItemGroup>
|
2016-07-22 23:01:32 +00:00
|
|
|
<Archives Include="$(GenerateArchivesDestinationArchive)" />
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
</Target>
|
2016-07-01 14:04:40 +00:00
|
|
|
|
2016-07-26 04:29:59 +00:00
|
|
|
<Target Name="SetupGenerateArchivesInputsOutputs"
|
2016-07-22 23:01:32 +00:00
|
|
|
DependsOnTargets="Init">
|
|
|
|
<ItemGroup>
|
2017-06-27 23:49:34 +00:00
|
|
|
<GenerateArchivesInputsOutputs Condition=" '%(LayoutDefinition.Name)' != '' " Include="%(LayoutDefinition.Name)">
|
2016-07-01 14:04:40 +00:00
|
|
|
<Inputs>%(LayoutDefinition.OutputFiles)</Inputs>
|
|
|
|
<Outputs>$(ArchiveOutputDirectory)/%(LayoutDefinition.NameWithVersion)$(ArchiveExtension)</Outputs>
|
|
|
|
<InputDirectory>$(LayoutDirectory)/%(LayoutDefinition.Name)</InputDirectory>
|
|
|
|
<OutFileName>%(LayoutDefinition.NameWithVersion)</OutFileName>
|
2017-06-22 05:27:28 +00:00
|
|
|
<ExcludePatterns>%(LayoutDefinition.ExcludePatterns)</ExcludePatterns>
|
2016-07-01 14:04:40 +00:00
|
|
|
</GenerateArchivesInputsOutputs>
|
2016-06-28 01:26:57 +00:00
|
|
|
</ItemGroup>
|
|
|
|
</Target>
|
|
|
|
|
2016-07-22 23:01:32 +00:00
|
|
|
<Target Name="MakePackagesDir">
|
|
|
|
<MakeDir Directories="$(PackagesDirectory)" />
|
2016-06-28 01:26:57 +00:00
|
|
|
</Target>
|
|
|
|
|
|
|
|
</Project>
|