This repository has been archived by the owner on Oct 13, 2020. It is now read-only.
/
SQLite.NET.targets
151 lines (130 loc) · 6.48 KB
/
SQLite.NET.targets
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<!--
*
* SQLite.NET.targets -
*
* Written by Joe Mistachkin.
* Released to the public domain, use at your own risk!
*
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--
******************************************************************************
** Load Per-User Settings **
******************************************************************************
-->
<!--
NOTE: If the per-user settings file exists, import it now. The contained
settings, if any, will override the default ones provided below.
-->
<Import Project="$(SQLiteNetDir)\SQLite.NET.targets.user"
Condition="Exists('$(SQLiteNetDir)\SQLite.NET.targets.user')" />
<!--
******************************************************************************
** [Fairly] Generic Targets **
******************************************************************************
-->
<Target Name="EmbedExeManifest"
Condition="'$(EmbedExeManifest)' != 'false' And
'$(MSBuildProjectDirectory)' != '' And
Exists('$(MSBuildProjectDirectory)\Resources\manifest.xml')"
Inputs="$(TargetPath);$(MSBuildProjectDirectory)\Resources\manifest.xml"
Outputs="$(TargetPath).EmbedExeManifest.done">
<GetFrameworkSDKPath>
<Output TaskParameter="Path"
PropertyName="DirForManifestTool" />
</GetFrameworkSDKPath>
<Exec Condition="'$(DirForManifestTool)' != '' And
HasTrailingSlash('$(DirForManifestTool)') And
Exists('$(DirForManifestTool)bin\mt.exe')"
Command=""$(DirForManifestTool)bin\mt.exe" -manifest "$(MSBuildProjectDirectory)\Resources\manifest.xml" -outputresource:"$(TargetPath)";1" />
<Touch AlwaysCreate="true"
Files="$(TargetPath).EmbedExeManifest.done" />
</Target>
<!--
******************************************************************************
-->
<Target Name="StrongNameSign"
Condition="'$(StrongNameSign)' != 'false' And
'$(SignAssembly)' != 'false' And
Exists('$(AssemblyOriginatorKeyFile)')"
Inputs="$(TargetPath)"
Outputs="$(TargetPath).StrongNameSign.done">
<GetFrameworkSDKPath>
<Output TaskParameter="Path"
PropertyName="DirForStrongName" />
</GetFrameworkSDKPath>
<Exec Condition="'$(DirForStrongName)' != '' And
HasTrailingSlash('$(DirForStrongName)') And
Exists('$(DirForStrongName)bin\sn.exe')"
Command=""$(DirForStrongName)bin\sn.exe" -Ra "$(TargetPath)" "$(AssemblyOriginatorKeyFile)"" />
<Touch Condition="'$(DirForStrongName)' != '' And
HasTrailingSlash('$(DirForStrongName)') And
Exists('$(DirForStrongName)bin\sn.exe')"
AlwaysCreate="true"
Files="$(TargetPath).StrongNameSign.done" />
</Target>
<!--
******************************************************************************
-->
<Target Name="StrongNameSign2"
Condition="'$(StrongNameSign)' != 'false' And
'$(SignAssembly)' != 'false' And
Exists('$(AssemblyOriginatorKeyFile)')"
Inputs="$(TargetPath)"
Outputs="$(TargetPath).StrongNameSign.done">
<Exec Condition="'$(TargetFrameworkSDKToolsDirectory)' != '' And
HasTrailingSlash('$(TargetFrameworkSDKToolsDirectory)') And
Exists('$(TargetFrameworkSDKToolsDirectory)sn.exe')"
Command=""$(TargetFrameworkSDKToolsDirectory)sn.exe" -Ra "$(TargetPath)" "$(AssemblyOriginatorKeyFile)"" />
<Touch Condition="'$(TargetFrameworkSDKToolsDirectory)' != '' And
HasTrailingSlash('$(TargetFrameworkSDKToolsDirectory)') And
Exists('$(TargetFrameworkSDKToolsDirectory)sn.exe')"
AlwaysCreate="true"
Files="$(TargetPath).StrongNameSign.done" />
</Target>
<!--
******************************************************************************
-->
<Target Name="Mark32BitOnly"
Condition="'$(Mark32BitOnly)' != 'false'"
Inputs="$(TargetPath)"
Outputs="$(TargetPath).Mark32BitOnly.done">
<GetFrameworkSDKPath>
<Output TaskParameter="Path"
PropertyName="DirForMark32BitOnly" />
</GetFrameworkSDKPath>
<Exec Condition="'$(DirForMark32BitOnly)' != '' And
HasTrailingSlash('$(DirForMark32BitOnly)') And
Exists('$(DirForMark32BitOnly)bin\CorFlags.exe')"
Command=""$(DirForMark32BitOnly)bin\CorFlags.exe" "$(TargetPath)" /32BIT+ /Force" />
<Touch Condition="'$(DirForMark32BitOnly)' != '' And
HasTrailingSlash('$(DirForMark32BitOnly)') And
Exists('$(DirForMark32BitOnly)bin\CorFlags.exe')"
AlwaysCreate="true"
Files="$(TargetPath).Mark32BitOnly.done" />
</Target>
<!--
******************************************************************************
-->
<Target Name="Mark32BitOnly2"
Condition="'$(Mark32BitOnly)' != 'false'"
Inputs="$(TargetPath)"
Outputs="$(TargetPath).Mark32BitOnly.done">
<Exec Condition="'$(TargetFrameworkSDKToolsDirectory)' != '' And
HasTrailingSlash('$(TargetFrameworkSDKToolsDirectory)') And
Exists('$(TargetFrameworkSDKToolsDirectory)CorFlags.exe')"
Command=""$(TargetFrameworkSDKToolsDirectory)CorFlags.exe" "$(TargetPath)" /32BIT+ /Force" />
<Touch Condition="'$(TargetFrameworkSDKToolsDirectory)' != '' And
HasTrailingSlash('$(TargetFrameworkSDKToolsDirectory)') And
Exists('$(TargetFrameworkSDKToolsDirectory)CorFlags.exe')"
AlwaysCreate="true"
Files="$(TargetPath).Mark32BitOnly.done" />
</Target>
<!--
******************************************************************************
-->
<Target Name="MissingVsSdk"
Condition="'$(ProjectName)' != ''">
<Warning Text="The Visual Studio SDK is missing, skipping project "$(ProjectName)"..." />
</Target>
</Project>