StephaneLenclud@36: <!--
StephaneLenclud@36: ***********************************************************************************************
StephaneLenclud@36: LibMiniDisplay.targets
StephaneLenclud@36: 
StephaneLenclud@36: WARNING:  DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
StephaneLenclud@36:           created a backup copy.  Incorrect changes to this file will make it
StephaneLenclud@36:           impossible to load or build your projects from the command-line or the IDE.
StephaneLenclud@36: 
StephaneLenclud@36: Copyright (c) Stephane Lenclud. All rights reserved.
StephaneLenclud@36: ***********************************************************************************************
StephaneLenclud@36: -->
StephaneLenclud@36: 
StephaneLenclud@36: <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
StephaneLenclud@36:   <PropertyGroup>
StephaneLenclud@36:     <LibMiniDisplayDllPath Condition=" '$(LibMiniDisplayPath)' == '' ">$(MSBuildThisFileDirectory)..\native\$(Platform)\MiniDisplay.dll</LibMiniDisplayDllPath>
StephaneLenclud@36:   </PropertyGroup>  
StephaneLenclud@36: 
StephaneLenclud@36:   <Target Name="CopyLibMiniDisplayNativeReference">
StephaneLenclud@36:     <!-- Make sure the platform has been set appropriately before trying to copy the native reference. -->
StephaneLenclud@36:     <Error Code="LH0001" Text="The project platform must be set to x86 or x64. Please change your target platform and try again." Condition=" !Exists('$(LibMiniDisplayDllPath)') " 
StephaneLenclud@36:            File="$(MSBuildProjectFile)"/>
StephaneLenclud@36:     
StephaneLenclud@36:     <Copy SourceFiles="$(LibMiniDisplayDllPath)" DestinationFolder="$(OutDir)" SkipUnchangedFiles="true"/>
StephaneLenclud@36:   </Target>
StephaneLenclud@36: 
StephaneLenclud@36:   <PropertyGroup>
StephaneLenclud@36:     <AfterBuildDependsOn>
StephaneLenclud@36:       CopyLibMiniDisplayNativeReference;
StephaneLenclud@36:     </AfterBuildDependsOn>
StephaneLenclud@36:   </PropertyGroup>
StephaneLenclud@36:   
StephaneLenclud@36:   <Target Name="AfterBuild" DependsOnTargets="$(AfterBuildDependsOn)"/>
StephaneLenclud@36: </Project>