-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCom.InteropPlatform.props
46 lines (42 loc) · 2.47 KB
/
Com.InteropPlatform.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
<?xml version="1.0" encoding="utf-8"?>
<!-- This property sheet resolves the 'Platform to InteropPlatform' mapping for C# and C++ (supports override in zou.cfg folder). -->
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
InitialTargets="ComInteropPlatformTrace"
TreatAsLocalProperty="InteropPlatform">
<ImportGroup>
<Import Project="$(MSBuildProjectDirectory)\..\..\..\..\..\..\..\$(ZouCfg)**\$(MSBuildThisFileName)*$(MSBuildThisFileExtension)" />
<Import Project="$(MSBuildProjectDirectory)\..\..\..\..\..\..\$(ZouCfg)**\$(MSBuildThisFileName)*$(MSBuildThisFileExtension)" />
<Import Project="$(MSBuildProjectDirectory)\..\..\..\..\..\$(ZouCfg)**\$(MSBuildThisFileName)*$(MSBuildThisFileExtension)" />
<Import Project="$(MSBuildProjectDirectory)\..\..\..\..\$(ZouCfg)**\$(MSBuildThisFileName)*$(MSBuildThisFileExtension)" />
<Import Project="$(MSBuildProjectDirectory)\..\..\..\$(ZouCfg)**\$(MSBuildThisFileName)*$(MSBuildThisFileExtension)" />
<Import Project="$(MSBuildProjectDirectory)\..\..\$(ZouCfg)**\$(MSBuildThisFileName)*$(MSBuildThisFileExtension)" />
<Import Project="$(MSBuildProjectDirectory)\..\$(ZouCfg)**\$(MSBuildThisFileName)*$(MSBuildThisFileExtension)" />
<Import Project="$(MSBuildProjectDirectory)\$(ZouCfg)**\$(MSBuildThisFileName)*$(MSBuildThisFileExtension)" />
<Import Project="$(ZouPrivateDir)$(MSBuildThisFileName).Default$(MSBuildThisFileExtension)" />
</ImportGroup>
<Choose>
<When Condition="'$(InteropPlatform)' == 'x86'">
<PropertyGroup>
<_PropertySheetDisplayName>Interop Platform = x86</_PropertySheetDisplayName>
</PropertyGroup>
</When>
<When Condition="'$(InteropPlatform)' == 'x64'">
<PropertyGroup>
<_PropertySheetDisplayName>Interop Platform = x64</_PropertySheetDisplayName>
</PropertyGroup>
</When>
<When Condition="'$(InteropPlatform)' == 'Win32'">
<PropertyGroup>
<_PropertySheetDisplayName>Interop Platform = Win32</_PropertySheetDisplayName>
</PropertyGroup>
</When>
<Otherwise>
<PropertyGroup>
<_PropertySheetDisplayName>ERROR: interop platform not supported</_PropertySheetDisplayName>
</PropertyGroup>
</Otherwise>
</Choose>
<Target Name="ComInteropPlatformTrace" Condition="'$(ZouTrace)' == 'true' Or '$(MSBuildProjectFile)' == '$(MSBuildThisFile)'">
<Message Importance="normal" Text="InteropPlatform = $(InteropPlatform)" />
</Target>
</Project>