diff options
author | lbsa71 | 2007-12-20 11:30:56 +0000 |
---|---|---|
committer | lbsa71 | 2007-12-20 11:30:56 +0000 |
commit | ffc1428dff8e71952b43001a8fc6223daeeb5bcf (patch) | |
tree | f9f4fd08520a6ebef83038195289e765e645b5a1 /Prebuild/src/Core | |
parent | * Added a configuration parameter on the Grid Server to disallow forceful ban... (diff) | |
download | opensim-SC-ffc1428dff8e71952b43001a8fc6223daeeb5bcf.zip opensim-SC-ffc1428dff8e71952b43001a8fc6223daeeb5bcf.tar.gz opensim-SC-ffc1428dff8e71952b43001a8fc6223daeeb5bcf.tar.bz2 opensim-SC-ffc1428dff8e71952b43001a8fc6223daeeb5bcf.tar.xz |
* Added prototypical VS2008 target
Diffstat (limited to 'Prebuild/src/Core')
-rw-r--r-- | Prebuild/src/Core/Targets/SharpDevelop2Target.cs | 35 | ||||
-rw-r--r-- | Prebuild/src/Core/Targets/VS2005Target.cs | 47 | ||||
-rw-r--r-- | Prebuild/src/Core/Targets/VS2008Target.cs | 58 |
3 files changed, 89 insertions, 51 deletions
diff --git a/Prebuild/src/Core/Targets/SharpDevelop2Target.cs b/Prebuild/src/Core/Targets/SharpDevelop2Target.cs index 7109ceb..6b0552e 100644 --- a/Prebuild/src/Core/Targets/SharpDevelop2Target.cs +++ b/Prebuild/src/Core/Targets/SharpDevelop2Target.cs | |||
@@ -44,35 +44,16 @@ namespace Prebuild.Core.Targets | |||
44 | [Target("sharpdev2")] | 44 | [Target("sharpdev2")] |
45 | public class SharpDevelop2Target : VS2005Target | 45 | public class SharpDevelop2Target : VS2005Target |
46 | { | 46 | { |
47 | #region Private Methods | 47 | protected override string VersionName |
48 | private void SetSharpDevelop2() | 48 | { |
49 | { | 49 | get |
50 | this.VersionName = "SharpDevelop2"; | 50 | { |
51 | } | 51 | return "SharpDevelop2"; |
52 | #endregion | 52 | } |
53 | } | ||
53 | 54 | ||
54 | #region Public Methods | 55 | #region Public Methods |
55 | 56 | ||
56 | /// <summary> | ||
57 | /// Writes the specified kern. | ||
58 | /// </summary> | ||
59 | /// <param name="kern">The kern.</param> | ||
60 | public override void Write(Kernel kern) | ||
61 | { | ||
62 | SetSharpDevelop2(); | ||
63 | base.Write(kern); | ||
64 | } | ||
65 | |||
66 | /// <summary> | ||
67 | /// Cleans the specified kern. | ||
68 | /// </summary> | ||
69 | /// <param name="kern">The kern.</param> | ||
70 | public override void Clean(Kernel kern) | ||
71 | { | ||
72 | SetSharpDevelop2(); | ||
73 | base.Clean(kern); | ||
74 | } | ||
75 | |||
76 | /// <summary> | 57 | /// <summary> |
77 | /// Gets the name. | 58 | /// Gets the name. |
78 | /// </summary> | 59 | /// </summary> |
diff --git a/Prebuild/src/Core/Targets/VS2005Target.cs b/Prebuild/src/Core/Targets/VS2005Target.cs index f01906b..bd56beb 100644 --- a/Prebuild/src/Core/Targets/VS2005Target.cs +++ b/Prebuild/src/Core/Targets/VS2005Target.cs | |||
@@ -230,45 +230,48 @@ namespace Prebuild.Core.Targets | |||
230 | 230 | ||
231 | #region Fields | 231 | #region Fields |
232 | 232 | ||
233 | string solutionVersion = "9.00"; | ||
234 | string productVersion = "8.0.50727"; | ||
235 | string schemaVersion = "2.0"; | 233 | string schemaVersion = "2.0"; |
236 | string versionName = "Visual C# 2005"; | ||
237 | VSVersion version = VSVersion.VS80; | 234 | VSVersion version = VSVersion.VS80; |
238 | 235 | ||
239 | Hashtable tools; | 236 | Hashtable tools; |
240 | Kernel kernel; | 237 | Kernel kernel; |
238 | |||
239 | protected virtual string ToolsVersionXml | ||
240 | { | ||
241 | get | ||
242 | { | ||
243 | return String.Empty; | ||
244 | } | ||
245 | } | ||
241 | 246 | ||
242 | /// <summary> | 247 | protected virtual string SolutionTag |
248 | { | ||
249 | get { return "# Visual Studio 2005"; } | ||
250 | } | ||
251 | |||
252 | /// <summary> | ||
243 | /// Gets or sets the solution version. | 253 | /// Gets or sets the solution version. |
244 | /// </summary> | 254 | /// </summary> |
245 | /// <value>The solution version.</value> | 255 | /// <value>The solution version.</value> |
246 | protected string SolutionVersion | 256 | protected virtual string SolutionVersion |
247 | { | 257 | { |
248 | get | 258 | get |
249 | { | 259 | { |
250 | return this.solutionVersion; | 260 | return "9.00"; |
251 | } | ||
252 | set | ||
253 | { | ||
254 | this.solutionVersion = value; | ||
255 | } | 261 | } |
256 | } | 262 | } |
257 | /// <summary> | 263 | /// <summary> |
258 | /// Gets or sets the product version. | 264 | /// Gets or sets the product version. |
259 | /// </summary> | 265 | /// </summary> |
260 | /// <value>The product version.</value> | 266 | /// <value>The product version.</value> |
261 | protected string ProductVersion | 267 | protected virtual string ProductVersion |
262 | { | 268 | { |
263 | get | 269 | get |
264 | { | 270 | { |
265 | return this.productVersion; | 271 | return "8.0.50727"; |
266 | } | ||
267 | set | ||
268 | { | ||
269 | this.productVersion = value; | ||
270 | } | 272 | } |
271 | } | 273 | } |
274 | |||
272 | /// <summary> | 275 | /// <summary> |
273 | /// Gets or sets the schema version. | 276 | /// Gets or sets the schema version. |
274 | /// </summary> | 277 | /// </summary> |
@@ -288,15 +291,11 @@ namespace Prebuild.Core.Targets | |||
288 | /// Gets or sets the name of the version. | 291 | /// Gets or sets the name of the version. |
289 | /// </summary> | 292 | /// </summary> |
290 | /// <value>The name of the version.</value> | 293 | /// <value>The name of the version.</value> |
291 | protected string VersionName | 294 | protected virtual string VersionName |
292 | { | 295 | { |
293 | get | 296 | get |
294 | { | 297 | { |
295 | return this.versionName; | 298 | return "Visual C# 2005"; |
296 | } | ||
297 | set | ||
298 | { | ||
299 | this.versionName = value; | ||
300 | } | 299 | } |
301 | } | 300 | } |
302 | /// <summary> | 301 | /// <summary> |
@@ -378,7 +377,7 @@ namespace Prebuild.Core.Targets | |||
378 | #region Project File | 377 | #region Project File |
379 | using (ps) | 378 | using (ps) |
380 | { | 379 | { |
381 | ps.WriteLine("<Project DefaultTargets=\"Build\" xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\">"); | 380 | ps.WriteLine("<Project DefaultTargets=\"Build\" xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\"{0}>", ToolsVersionXml ); |
382 | //ps.WriteLine(" <{0}", toolInfo.XMLTag); | 381 | //ps.WriteLine(" <{0}", toolInfo.XMLTag); |
383 | ps.WriteLine(" <PropertyGroup>"); | 382 | ps.WriteLine(" <PropertyGroup>"); |
384 | ps.WriteLine(" <ProjectType>Local</ProjectType>"); | 383 | ps.WriteLine(" <ProjectType>Local</ProjectType>"); |
@@ -707,7 +706,7 @@ namespace Prebuild.Core.Targets | |||
707 | using (ss) | 706 | using (ss) |
708 | { | 707 | { |
709 | ss.WriteLine("Microsoft Visual Studio Solution File, Format Version {0}", this.SolutionVersion); | 708 | ss.WriteLine("Microsoft Visual Studio Solution File, Format Version {0}", this.SolutionVersion); |
710 | ss.WriteLine("# Visual Studio 2005"); | 709 | ss.WriteLine(SolutionTag); |
711 | foreach (ProjectNode project in solution.Projects) | 710 | foreach (ProjectNode project in solution.Projects) |
712 | { | 711 | { |
713 | if (!tools.ContainsKey(project.Language)) | 712 | if (!tools.ContainsKey(project.Language)) |
diff --git a/Prebuild/src/Core/Targets/VS2008Target.cs b/Prebuild/src/Core/Targets/VS2008Target.cs new file mode 100644 index 0000000..6074915 --- /dev/null +++ b/Prebuild/src/Core/Targets/VS2008Target.cs | |||
@@ -0,0 +1,58 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | using Prebuild.Core.Attributes; | ||
5 | |||
6 | namespace Prebuild.Core.Targets | ||
7 | { | ||
8 | [Target("vs2008")] | ||
9 | public class VS2008Target : VS2005Target | ||
10 | { | ||
11 | protected override string SolutionTag | ||
12 | { | ||
13 | get { return "# Visual Studio 2008"; } | ||
14 | } | ||
15 | |||
16 | protected override string SolutionVersion | ||
17 | { | ||
18 | get | ||
19 | { | ||
20 | return "10.00"; | ||
21 | } | ||
22 | } | ||
23 | |||
24 | protected override string VersionName | ||
25 | { | ||
26 | get | ||
27 | { | ||
28 | return "Visual C# 2008"; | ||
29 | } | ||
30 | } | ||
31 | |||
32 | protected override string ToolsVersionXml | ||
33 | { | ||
34 | get | ||
35 | { | ||
36 | return " ToolsVersion=\"3.5\""; | ||
37 | } | ||
38 | } | ||
39 | |||
40 | |||
41 | // TODO: This needs updating! | ||
42 | protected override string ProductVersion | ||
43 | { | ||
44 | get | ||
45 | { | ||
46 | return "9.0.20706"; | ||
47 | } | ||
48 | } | ||
49 | |||
50 | public override string Name | ||
51 | { | ||
52 | get | ||
53 | { | ||
54 | return "vs2008"; | ||
55 | } | ||
56 | } | ||
57 | } | ||
58 | } | ||