-
Notifications
You must be signed in to change notification settings - Fork 7
/
DriverTools.Common.props
81 lines (69 loc) · 3.47 KB
/
DriverTools.Common.props
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
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Global configuration settings -->
<PropertyGroup>
<DebugSymbols>true</DebugSymbols>
<NoWarn>0164,1573,1591</NoWarn>
<OutputPath>$(ProjectDir)bin\</OutputPath>
<IntermediateOutputPath>$(ProjectDir)obj\</IntermediateOutputPath>
<DocumentationFile>$(OutputPath)$(AssemblyName).xml</DocumentationFile>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<!-- Platform-specific settings (will not override existing settings) -->
<PropertyGroup Condition="'$(PlatformTarget)' == ''">
<!-- Default to x86 -->
<PlatformTarget>x86</PlatformTarget>
<PlatformTarget Condition="'$(Platform)' == 'x86'">x86</PlatformTarget>
<PlatformTarget Condition="'$(Platform)' == 'x64'">x64</PlatformTarget>
</PropertyGroup>
<!-- Debug configuration settings -->
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<DebugType>full</DebugType>
<DefineConstants>TRACE;DEBUG;LOG</DefineConstants>
<Optimize>false</Optimize>
<UseVSHostingProcess>true</UseVSHostingProcess>
</PropertyGroup>
<!-- Release configuration settings -->
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<DebugType>pdbonly</DebugType>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<UseVSHostingProcess>false</UseVSHostingProcess>
</PropertyGroup>
<!-- Global properties -->
<PropertyGroup>
<SrcDir>$(ProjectDir)Source\</SrcDir>
<DToolsRoot>$(MSBuildThisFileDirectory)</DToolsRoot>
<DToolsSharedDir>$(DToolsRoot)Shared\</DToolsSharedDir>
<DToolsSharedSrcDir>$(DToolsSharedDir)Source\</DToolsSharedSrcDir>
<DToolsSharedLibsDir>$(DToolsSharedDir)Libraries\</DToolsSharedLibsDir>
<FreeImageDir>$(DToolsSharedLibsDir)FreeImage\</FreeImageDir>
<FreeImageNETDir>$(DToolsSharedLibsDir)FreeImage.NET\</FreeImageNETDir>
<FreeImageNETDir Condition="!Exists('$(FreeImageNETDir)')">$(DToolsSharedLibsDir)FreeImageNET\</FreeImageNETDir>
<HelixToolkitDir>$(DToolsSharedLibsDir)HelixToolkit\</HelixToolkitDir>
<libDSCName>DSCript</libDSCName>
<libDSCGuid>{09c8aa4a-afb8-4bdb-866b-b8c88d48d9eb}</libDSCGuid>
<libDSCDir>$(DToolsRoot)$(libDSCName)\</libDSCDir>
<libDSCProjectFile>$(libDSCDir)$(libDSCName).csproj</libDSCProjectFile>
<IncludeDSCLibrary Condition="'$(IncludeDSCLibrary)' == ''">false</IncludeDSCLibrary>
<UsesFreeImage Condition="'$(UsesFreeImage)' == '' and $(IncludeDSCLibrary)">true</UsesFreeImage>
<UsesFreeImage Condition="'$(UsesFreeImage)' == ''">false</UsesFreeImage>
</PropertyGroup>
<ItemGroup Condition="$(IncludeDSCLibrary)">
<ProjectReference Include="$(libDSCProjectFile)">
<Name>$(libDSCName)</Name>
<Project>$(libDSCGuid)</Project>
</ProjectReference>
</ItemGroup>
<Target Name="CopyFIDependencies" AfterTargets="Build" Condition="$(UsesFreeImage)">
<ItemGroup>
<FreeImageFiles Include="$(FreeImageDir)*.*"/>
</ItemGroup>
<Error Text="Couldn't find FreeImage dependencies!" Condition="'@(FreeImageFiles)' == ''" />
<Message Text="Copying FreeImage DLL:" Importance="High" />
<Copy SourceFiles="@(FreeImageFiles)" DestinationFolder="$(OutputPath)">
<Output ItemName="Dependency" TaskParameter="CopiedFiles" />
</Copy>
<Message Text=" - %(Dependency.Identity)" Importance="High" />
</Target>
</Project>