-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathNEsper.proj
executable file
·215 lines (173 loc) · 11.6 KB
/
NEsper.proj
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
<?xml version="1.0" encoding="UTF-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Distribution">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Release</Configuration>
<Platform Condition=" '$(Platform)' == '' ">Any CPU</Platform>
<Framework Condition=" '$(Framework)' == '' ">net6.0</Framework>
<SolutionDir>$(MSBuildProjectDirectory)</SolutionDir>
<!-- Distribution version -->
<Version Condition=" '$(CCNetLabel)' != '' ">$(CCNetLabel)</Version>
<Version Condition=" '$(Version)' == '' ">8.9.0</Version>
<!-- Build Directories -->
<BuildPath>$(MSBuildProjectDirectory)\build</BuildPath>
<BuildRoot>$(BuildPath)\NEsper-$(Version)</BuildRoot>
<BuildSourceDir>$(BuildRoot)\src</BuildSourceDir>
<BuildSourceZip>$(BuildRoot)\src.zip</BuildSourceZip>
<!-- Test Directories -->
<TestDir>test</TestDir>
<LicenseFile>NEsper.Install\License.rtf</LicenseFile>
</PropertyGroup>
<Target Name="Info">
<Message Text="MSBuildBinPath: $(MSBuildBinPath)" />
<Message Text="MSBuildExtensionsPath: $(MSBuildExtensionsPath)" />
<Message Text="MSBuildExtensionsPath32: $(MSBuildExtensionsPath32)" />
<Message Text="MSBuildExtensionsPath64: $(MSBuildExtensionsPath64)" />
<Message Text="MSBuildProgramFiles32: $(MSBuildProgramFiles32)" />
<Message Text="MSBuildProjectDirectory: $(MSBuildProjectDirectory)" />
<Message Text="MSBuildRuntimeType: $(MSBuildRuntimeType)" />
<Message Text="MSBuildStartupDirectory: $(MSBuildStartupDirectory)" />
<Message Text="MSBuildToolsPath: $(MSBuildToolsPath)" />
<Message Text="MSBuildToolsVersion: $(MSBuildToolsVersion)" />
<Message Text="MSBuildVersion: $(MSBuildVersion)" />
</Target>
<Target Name="Rebuild">
<Message Text="Rebuilding NEsper $(Configuration)" />
<MSBuild Projects="NEsperAll.sln" Targets="Rebuild" Properties="Configuration=$(Configuration);Platform=$(Platform);Framework=$(Framework)" />
</Target>
<Target Name="Clean">
<Message Text="Cleaning NEsper $(Configuration)" />
<MSBuild Projects="NEsperAll.sln" Targets="Clean" />
<RemoveDir Directories="$(OutputDir)" ContinueOnError="true" />
</Target>
<Target Name="VeryClean">
<Delete Files="$(BuildPath)\NEsper-$(Version).zip" />
<MSBuild Projects="NEsper.proj" Properties="Configuration=Debug;Platform=Any CPU" Targets="Clean"/>
<MSBuild Projects="NEsper.proj" Properties="Configuration=Release;Platform=Any CPU" Targets="Clean"/>
<MSBuild Projects="NEsper.proj" Properties="Configuration=Debug;Platform=x86" Targets="Clean"/>
<MSBuild Projects="NEsper.proj" Properties="Configuration=Release;Platform=x86" Targets="Clean"/>
<MSBuild Projects="NEsper.proj" Properties="Configuration=Debug;Platform=x64" Targets="Clean"/>
<MSBuild Projects="NEsper.proj" Properties="Configuration=Release;Platform=x64" Targets="Clean"/>
</Target>
<Target Name="Restore">
<MSBuild Projects="NEsperAll.sln" Targets="Restore" />
</Target>
<!-- SECTION BREAK -->
<Target Name="Release-All">
<MSBuild Projects="NEsper.proj" Properties="Configuration=$(Configuration);Platform=Any CPU" Targets="Clean;Release-Target;Clean"/>
</Target>
<Target Name="Build-AnyCPU">
<MSBuild Projects="NEsper.proj" Properties="Configuration=Debug;Platform=Any CPU" Targets="Restore"/>
<MSBuild Projects="NEsper.proj" Properties="Configuration=Release;Platform=Any CPU" Targets="Restore"/>
<MSBuild Projects="NEsper.proj" Properties="Configuration=Debug;Platform=Any CPU" Targets="Build"/>
<MSBuild Projects="NEsper.proj" Properties="Configuration=Release;Platform=Any CPU" Targets="Build"/>
</Target>
<Target Name="Build">
<Message Text="Building NEsper $(Configuration)" />
<MSBuild Projects="NEsperAll.sln" Targets="Restore" />
<MSBuild Projects="NEsperAll.sln" Targets="Build" />
</Target>
<Target Name="Copy-License">
<MakeDir Directories="$(BuildRoot)\docs" />
<ItemGroup>
<License Include="NEsper.Install\License.rtf"/>
</ItemGroup>
<Copy SourceFiles="$(LicenseFile)" DestinationFolder="$(BuildRoot)/docs" Condition="Exists('$(LicenseFile)')"/>
</Target>
<Target Name="Copy-Source-Main">
<MakeDir Directories="$(BuildRoot)\src" />
<!-- src -->
<ItemGroup>
<NEsperTop Include="NEsper.sln"/>
<NEsperTop Include="NEsperAll.sln"/>
</ItemGroup>
<ItemGroup>
<CoreSource Include="src\**\*.cs" Exclude="src\**\bin\**\*"/>
<CoreSource Include="src\**\*.xml" Exclude="src\**\bin\**\*"/>
<CoreSource Include="src\**\*.xsl" Exclude="src\**\bin\**\*"/>
<CoreSource Include="src\**\*.xslt" Exclude="src\**\bin\**\*"/>
<CoreSource Include="src\**\*.xsd" Exclude="src\**\bin\**\*"/>
<CoreSource Include="src\**\*.sql" Exclude="src\**\bin\**\*"/>
<CoreSource Include="src\**\*.config" Exclude="src\**\bin\**\*"/>
<CoreSource Include="src\**\*.csproj" Exclude="src\**\bin\**\*"/>
<CoreSource Include="src\**\*.proj" Exclude="src\**\bin\**\*"/>
<CoreSource Include="src\**\*.sln" Exclude="src\**\bin\**\*"/>
<CoreSource Include="src\**\*.g4" Exclude="src\**\bin\**\*"/>
</ItemGroup>
<Copy SourceFiles="@(CoreSource)" DestinationFiles="@(CoreSource->'$(BuildRoot)\src\%(RecursiveDir)%(Filename)%(Extension)')" SkipUnchangedFiles="True" />
<Copy SourceFiles="@(NEsperTop)" DestinationFiles="@(NEsperTop->'$(BuildRoot)\src\%(RecursiveDir)%(Filename)%(Extension)')" SkipUnchangedFiles="True" />
</Target>
<Target Name="Copy-Source-Examples">
<MakeDir Directories="$(BuildRoot)\examples" />
<!-- examples -->
<ItemGroup>
<NEsperExamplesSource Include="examples\**\*.cs" Exclude="examples\**\bin\**\*"/>
<NEsperExamplesSource Include="examples\**\*.xml" Exclude="examples\**\bin\**\*"/>
<NEsperExamplesSource Include="examples\**\*.csv" Exclude="examples\**\bin\**\*"/>
<NEsperExamplesSource Include="examples\**\*.xsl" Exclude="examples\**\bin\**\*"/>
<NEsperExamplesSource Include="examples\**\*.config" Exclude="examples\**\bin\**\*"/>
<NEsperExamplesSource Include="examples\**\*.settings" Exclude="examples\**\bin\**\*"/>
<NEsperExamplesSource Include="examples\**\*.csproj" Exclude="examples\**\bin\**\*"/>
</ItemGroup>
<Copy SourceFiles="@(NEsperExamplesSource)" DestinationFiles="@(NEsperExamplesSource->'$(BuildRoot)\examples\%(RecursiveDir)%(Filename)%(Extension)')" SkipUnchangedFiles="True" />
</Target>
<Target Name="Copy-Source-All" DependsOnTargets="Copy-Source-Main;Copy-Source-Examples" />
<!-- SECTION BREAK -->
<Target Name="Copy-Binaries-Main">
<Message Text="Copying NEsper Binaries for $(Configuration), $(Platform), $(Framework)" />
<MakeDir Directories="$(BuildRoot)" />
<MakeDir Directories="$(BuildRoot)\lib\$(Framework)" />
<!-- NEsper // bin -->
<ItemGroup>
<Binaries Include="src\NEsper.Compat\bin\$(Configuration)\$(Framework)\NEsper.Compat.xml" Condition="Exists('NEsper\NEsper.Compat\bin\$(Configuration)\$(Framework)\NEsper.Compat.xml')" />
<Binaries Include="src\NEsper.Compat\bin\$(Configuration)\$(Framework)\NEsper.Compat.dll"/>
<Binaries Include="src\NEsper.Common\bin\$(Configuration)\$(Framework)\NEsper.Common.xml" Condition="Exists('NEsper\NEsper.Common\bin\$(Configuration)\$(Framework)\NEsper.Common.xml')" />
<Binaries Include="src\NEsper.Common\bin\$(Configuration)\$(Framework)\NEsper.Common.dll"/>
<Binaries Include="src\NEsper.Compiler\bin\$(Configuration)\$(Framework)\NEsper.Compiler.xml" Condition="Exists('NEsper\NEsper.Compiler\bin\$(Configuration)\$(Framework)\NEsper.Compiler.xml')" />
<Binaries Include="src\NEsper.Compiler\bin\$(Configuration)\$(Framework)\NEsper.Compiler.dll"/>
<Binaries Include="src\NEsper.Grammar\bin\$(Configuration)\$(Framework)\NEsper.Grammar.xml" Condition="Exists('NEsper\NEsper.Grammar\bin\$(Configuration)\$(Framework)\NEsper.Grammar.xml')" />
<Binaries Include="src\NEsper.Grammar\bin\$(Configuration)\$(Framework)\NEsper.Grammar.dll"/>
<Binaries Include="src\NEsper.Runtime\bin\$(Configuration)\$(Framework)\NEsper.Runtime.xml" Condition="Exists('NEsper\NEsper.Runtime\bin\$(Configuration)\$(Framework)\NEsper.Runtime.xml')" />
<Binaries Include="src\NEsper.Runtime\bin\$(Configuration)\$(Framework)\NEsper.Runtime.dll"/>
<Binaries Include="src\NEsper.Data.SQLServer\bin\$(Configuration)\$(Framework)\NEsper.Data.SQLServer.dll" Condition="Exists('NEsper\NEsper.Data.SQLServer\bin\$(Configuration)\$(Framework)\NEsper.Data.SQLServer.dll')" />
<Binaries Include="src\NEsper.Data.MySQL\bin\$(Configuration)\$(Framework)\NEsper.Data.MySQL.dll" Condition="Exists('NEsper\NEsper.Data.MySQL\bin\$(Configuration)\$(Framework)\NEsper.Data.MySQL.dll')" />
<Binaries Include="src\NEsper.Data.PgSQL\bin\$(Configuration)\$(Framework)\NEsper.Data.PgSQL.dll" Condition="Exists('NEsper\NEsper.Data.PgSQL\bin\$(Configuration)\$(Framework)\NEsper.Data.PgSQL.dll')" />
<Binaries Include="src\NEsper.Data.SQLite\bin\$(Configuration)\$(Framework)\NEsper.Data.SQLite.dll" Condition="Exists('NEsper\NEsper.Data.SQLite\bin\$(Configuration)\$(Framework)\NEsper.Data.SQLite.dll')" />
<Binaries Include="src\NEsper.Data.ODBC\bin\$(Configuration)\$(Framework)\NEsper.Data.ODBC.dll" Condition="Exists('NEsper\NEsper.Data.ODBC\bin\$(Configuration)\$(Framework)\NEsper.Data.ODBC.dll')" />
<Binaries Include="src\NEsper.Log.NLog\bin\$(Configuration)\$(Framework)\NEsper.Log.NLog.dll" Condition="Exists('NEsper\NEsper.Log.NLog\bin\$(Configuration)\$(Framework)\NEsper.Log.NLog.dll')" />
<Binaries Include="src\NEsper.IO\bin\$(Configuration)\$(Framework)\NEsper.IO.xml" Condition="Exists('NEsper.IO\bin\$(Configuration)\$(Framework)\NEsper.IO.xml')" />
<Binaries Include="src\NEsper.IO\bin\$(Configuration)\$(Framework)\NEsper.IO.dll"/>
<Binaries Include="src\bin\$(Configuration)\$(Framework)\NEsper.Avro.dll" Condition="Exists('NEsper.Avro\bin\$(Configuration)\$(Framework)\NEsper.Avro.xml')" />
</ItemGroup>
<Copy SourceFiles="@(Binaries)" DestinationFolder="$(BuildRoot)\lib\$(Framework)" SkipUnchangedFiles="True" />
</Target>
<Target Name="Copy-Binaries-All">
<MSBuild Projects="NEsper.proj" Properties="Configuration=$(Configuration);Platform=$(Platform);Framework=net6.0" Targets="Copy-Binaries-Main"/>
<MSBuild Projects="NEsper.proj" Properties="Configuration=$(Configuration);Platform=$(Platform);Framework=net7.0" Targets="Copy-Binaries-Main"/>
</Target>
<!-- SECTION BREAK -->
<Target Name="Copy-Artifacts">
<CallTarget Targets="Copy-Binaries-All" />
<CallTarget Targets="Copy-License" />
<CallTarget Targets="Copy-Source-All" />
</Target>
<Target Name="Release-Target" DependsOnTargets="Build">
<Message Text="Building NEsper Release for $(Platform)" />
<MakeDir Directories="$(BuildRoot)" />
<CallTarget Targets="Copy-Artifacts" />
</Target>
<Target Name="Packages" DependsOnTargets="">
<ItemGroup>
<Packages Include="src\**\bin\$(Configuration)\*.nupkg" />
</ItemGroup>
<Copy SourceFiles="@(Packages)" DestinationFolder="$(BuildPath)\packages" SkipUnchangedFiles="True" />
</Target>
<Target Name="ZipDistribution">
<ZipDirectory SourceDirectory="$(BuildRoot)" DestinationFile="$(BuildPath)\NEsper-$(Version).zip" />
</Target>
<Target Name="Distribution">
<Message Text="Building NEsper $(Version)" />
<CallTarget Targets="Release-All" />
<CallTarget Targets="ZipDistribution" />
<CallTarget Targets="Packages" />
</Target>
</Project>