forked from JoergRue/Ares
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAres.build
191 lines (175 loc) · 8.57 KB
/
Ares.build
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
<project name="Ares" default="rebuild">
<property name="configuration" value="Release"/>
<property name="monoConfiguration" value="Mono_Release"/>
<property name="nant.settings.currentframework" value="net-4.0" />
<property name="framework4" value="net-4.0" />
<property name="xbuild" value="C:\Program Files (x86)\Xamarin Studio\bin\mdtool.exe" />
<property name="build.dir" value="build" />
<property name="temp.dir" value="${build.dir}/temp" />
<property name="output.dir" value="${build.dir}/Ares/Player_Editor" />
<property name="monooutput.dir" value="${build.dir}/Ares/Player" />
<property name="monooutput64.dir" value="${build.dir}/Ares/Player64" />
<property name="libraries.dir" value="Libraries" />
<property name="mgoutput.dir" value="${build.dir}/MGPlugin" />
<target name="clean" description="Delete all previously compiled binaries.">
<delete>
<fileset>
<include name="bin/**" />
<include name="**/obj/**" />
<exclude name="**/bass.dll" />
<exclude name="**/bass_fx.dll" />
</fileset>
</delete>
</target>
<property name="solutionFile" value="Ares.sln" />
<property name="mgSolutionFile" value="Ares.Controllers.sln" />
<property name="mpSolutionFile" value="Ares_MediaPortal.sln" />
<property name="monoSolutionFile" value="Ares.MonoPlayer.sln" />
<target name="build" description="Build all targets.">
<!--
<msbuild project="${solutionFile}" >
<property name="Configuration" value="${configuration}" />
</msbuild>
-->
<exec program="${framework::get-framework-directory(framework::get-target-framework())}\msbuild.exe"
commandline="${solutionFile} /t:Build /p:Configuration=${configuration} /v:m" workingdir="."
/>
<property name="expected.output" value="bin/${configuration}" />
<property name="Ares.Player" value="${expected.output}/Ares.Player.exe" />
<property name="Ares.Editor" value="${expected.output}/Ares.Editor.exe" />
<property name="Ares.CmdLinePlayer" value="${expected.output}/Ares.CmdLinePlayer.exe" />
<fail unless="${file::exists(Ares.Player)}">Output file doesn't exist in ${expected.output}</fail>
<fail unless="${file::exists(Ares.Editor)}">Output file doesn't exist in ${expected.output}</fail>
<fail unless="${file::exists(Ares.CmdLinePlayer)}">Output file doesn't exist in ${expected.output}</fail>
<exec program="${framework::get-framework-directory(framework4)}\msbuild.exe"
commandline="${mgSolutionFile} /t:Build /p:Configuration=${configuration} /v:q" workingdir="."
/>
<property name="Ares.MGPlugin" value="bin/Release_MG/Ares.MeisterGeisterPlugin.dll" />
<fail unless="${file::exists(Ares.MGPlugin)}">Output file doesn't exist in bin/Release_MG</fail>
<exec program="${xbuild}" commandline="build --target:build --configuration:${monoConfiguration} --project:Ares.Data_Mono ${monoSolutionFile}" workingdir="." />
<exec program="${xbuild}" commandline="build --target:build --configuration:${monoConfiguration} --project:Ares.Settings_Mono ${monoSolutionFile}" workingdir="." />
<exec program="${xbuild}" commandline="build --target:build --configuration:${monoConfiguration} --project:Ares.Tags_Mono ${monoSolutionFile}" workingdir="." />
<exec program="${xbuild}" commandline="build --target:build --configuration:${monoConfiguration} --project:Ares.ModelInfo_Mono ${monoSolutionFile}" workingdir="." />
<exec program="${xbuild}" commandline="build --target:build --configuration:${monoConfiguration} --project:Ares.CommonGUI_Mono ${monoSolutionFile}" workingdir="." />
<exec program="${xbuild}" commandline="build --target:build --configuration:${monoConfiguration} --project:Ares.Playing_Mono ${monoSolutionFile}" workingdir="." />
<exec program="${xbuild}" commandline="build --target:build --configuration:${monoConfiguration} --project:Ares.Online_Mono ${monoSolutionFile}" workingdir="." />
<exec program="${xbuild}" commandline="build --target:build --configuration:${monoConfiguration} --project:Ares.Players_Mono ${monoSolutionFile}" workingdir="." />
<exec program="${xbuild}" commandline="build --target:build --configuration:${monoConfiguration} --project:Ares.Player_Mono ${monoSolutionFile}" workingdir="." />
<exec program="${xbuild}" commandline="build --target:build --configuration:${monoConfiguration} --project:Ares.CmdLinePlayer_Mono ${monoSolutionFile}" workingdir="." />
<property name="Ares.MonoPlayer" value="bin/Mono_Release/Ares.Player.exe" />
<property name="Ares.MonoCmdLinePlayer" value="bin/Mono_Release/Ares.CmdLinePlayer.exe" />
<fail unless="${file::exists(Ares.MonoPlayer)}">Output file doesn't exist in bin/Mono_Release</fail>
<fail unless="${file::exists(Ares.MonoCmdLinePlayer)}">Output file doesn't exist in bin/Mono_Release</fail>
</target>
<target name="rebuild" depends="clean, build" />
<target name="prepareSetup" depends="build" >
<copy todir="${output.dir}">
<fileset basedir="bin/${configuration}">
<include name="**/*.dll" />
<include name="**/*.exe" />
<include name="**/*.config" />
</fileset>
</copy>
<copy todir="${output.dir}">
<fileset basedir="Ares.Players">
<include name="Images/" />
<include name="Views/" />
<exclude name="Views/*.cshtml"/>
</fileset>
</copy>
<copy todir="${monooutput.dir}">
<fileset basedir="bin/Mono_Release">
<include name="**/*.dll" />
<include name="**/*.exe" />
</fileset>
</copy>
<copy todir="${monooutput.dir}">
<fileset basedir="Ares.Players">
<include name="Images/" />
<include name="Views/" />
<exclude name="Views/*.cshtml"/>
</fileset>
</copy>
<copy todir="${monooutput.dir}">
<fileset basedir="bin/${configuration}">
<include name="Ares.Player.exe.config" />
<include name="Ares.CmdLinePlayer.exe.config" />
<include name="Ares.Players.dll.config" />
</fileset>
</copy>
<copy todir="${monooutput.dir}" overwrite="true">
<fileset basedir="Libraries_Linux">
<include name="**/*.so" />
<include name="**/*.config" />
<include name="**/*.sh" />
<include name="**/*.png" />
<include name="**/*.dll" />
</fileset>
</copy>
<copy todir="${monooutput64.dir}">
<fileset basedir="bin/Mono_Release">
<include name="**/*.dll" />
<include name="**/*.exe" />
</fileset>
</copy>
<copy todir="${monooutput64.dir}">
<fileset basedir="Ares.Players">
<include name="Images/" />
<include name="Views/" />
<exclude name="Views/*.cshtml"/>
</fileset>
</copy>
<copy todir="${monooutput64.dir}">
<fileset basedir="bin/${configuration}">
<include name="Ares.Player.exe.config" />
<include name="Ares.CmdLinePlayer.exe.config" />
<include name="Ares.Players.dll.config" />
</fileset>
</copy>
<copy todir="${monooutput64.dir}" overwrite="true">
<fileset basedir="Libraries_Linux_x64">
<include name="**/*.so" />
<include name="**/*.config" />
<include name="**/*.sh" />
<include name="**/*.png" />
<include name="**/*.dll" />
</fileset>
</copy>
<copy todir="${output.dir}">
<fileset basedir=".">
<include name="*.ico" />
<include name="WeifenLuo.WinFormsUI.License.txt" />
<include name="HtmlRendererLicence.txt" />
<include name="MouseKeyboardHooksLicence.txt" />
<include name="ServiceStackLicence.txt" />
<include name="RestSharpLicence.txt" />
<include name="ChromaprintLicence.txt" />
<include name="FfmpegLicence.txt" />
</fileset>
</copy>
<copy todir="${output.dir}">
<fileset basedir="${libraries.dir}">
<include name="*.dll" />
<include name="*.exe" />
</fileset>
</copy>
<copy todir="${output.dir}">
<fileset basedir=".">
<include name="TipsOfTheDay.xml" />
<include name="TipsOfTheDay_de.xml" />
</fileset>
</copy>
<copy todir="${build.dir}/Ares">
<fileset basedir=".">
<include name="*.txt" />
<exclude name="WeifenLuo.WinFormsUI.License.txt" />
</fileset>
</copy>
<copy todir="${mgoutput.dir}">
<fileset basedir="bin/Release_MG">
<include name="Ares.MeisterGeisterPlugin.dll" />
<include name="de/Ares.MeisterGeisterPlugin.resources.dll" />
</fileset>
</copy>
</target>
</project>