• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2016 and later: Unicode, Inc. and others. License & terms of use: http://www.unicode.org/copyright.html -->
3<!--
4  This file is used to copy all of the header files (*.h) from a project's "unicode" folder to a common output folder.
5-->
6<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
7  <PropertyGroup>
8    <!-- This is the location of the common output folder. -->
9    <CopyDestionationPath>$(SolutionDir)\..\..\include\unicode</CopyDestionationPath>
10    <BuildDependsOn>
11      $(BuildDependsOn);
12      CopyUnicodeHeaderFiles;
13    </BuildDependsOn>
14  </PropertyGroup>
15  <Target Name="CopyUnicodeHeaderFiles">
16    <ItemGroup>
17      <!-- Generate a list of all files that end in .h from the 'unicode' folder, relative to the current project. -->
18      <OutputFiles Include=".\unicode\**\*.h" />
19    </ItemGroup>
20    <!-- This message will be logged in the project's build output. -->
21    <Message Text="Copying @(OutputFiles->Count()) header files to $(CopyDestionationPath). Files copied: @(OutputFiles)" Importance="high"/>
22    <!-- Perform the copy. -->
23    <Copy SourceFiles="@(OutputFiles)"
24          DestinationFolder="$(CopyDestionationPath)\%(RecursiveDir)"
25          SkipUnchangedFiles="false"></Copy>
26  </Target>
27</Project>