diff options
author | lbsa71 | 2007-03-27 20:19:35 +0000 |
---|---|---|
committer | lbsa71 | 2007-03-27 20:19:35 +0000 |
commit | 81f01a12960a5004cde8321794c002e1ad9522b3 (patch) | |
tree | a601a55dcb31a80597483c43e65eea06d7330c49 /Prebuild/src | |
parent | * Added OpenSim.Framework ref to phys mgr (diff) | |
download | opensim-SC-81f01a12960a5004cde8321794c002e1ad9522b3.zip opensim-SC-81f01a12960a5004cde8321794c002e1ad9522b3.tar.gz opensim-SC-81f01a12960a5004cde8321794c002e1ad9522b3.tar.bz2 opensim-SC-81f01a12960a5004cde8321794c002e1ad9522b3.tar.xz |
* vaseline + duct-tape.
Diffstat (limited to 'Prebuild/src')
-rw-r--r-- | Prebuild/src/Core/Targets/NAntTarget.cs | 23 | ||||
-rw-r--r-- | Prebuild/src/Prebuild.csproj | 19 |
2 files changed, 22 insertions, 20 deletions
diff --git a/Prebuild/src/Core/Targets/NAntTarget.cs b/Prebuild/src/Core/Targets/NAntTarget.cs index 242bb9c..0f0deb2 100644 --- a/Prebuild/src/Core/Targets/NAntTarget.cs +++ b/Prebuild/src/Core/Targets/NAntTarget.cs | |||
@@ -77,14 +77,14 @@ namespace Prebuild.Core.Targets | |||
77 | return tmpPath; | 77 | return tmpPath; |
78 | } | 78 | } |
79 | 79 | ||
80 | private static string BuildReference(SolutionNode solution, ReferenceNode refr) | 80 | private static string BuildReference(SolutionNode solution, ProjectNode currentProject, ReferenceNode refr) |
81 | { | 81 | { |
82 | string ret = ""; | 82 | string ret = ""; |
83 | if(solution.ProjectsTable.ContainsKey(refr.Name)) | 83 | if(solution.ProjectsTable.ContainsKey(refr.Name)) |
84 | { | 84 | { |
85 | ProjectNode project = (ProjectNode)solution.ProjectsTable[refr.Name]; | 85 | ProjectNode project = (ProjectNode)solution.ProjectsTable[refr.Name]; |
86 | 86 | ||
87 | string finalPath = Helper.NormalizePath( ((ReferencePathNode) project.ReferencePaths[0]).Path + refr.Name + ".dll", '/'); | 87 | string finalPath = Helper.NormalizePath(((ReferencePathNode)currentProject.ReferencePaths[0]).Path + refr.Name + ".dll", '/'); |
88 | 88 | ||
89 | return finalPath; | 89 | return finalPath; |
90 | } | 90 | } |
@@ -126,12 +126,11 @@ namespace Prebuild.Core.Targets | |||
126 | string ret = ""; | 126 | string ret = ""; |
127 | if(solution.ProjectsTable.ContainsKey(refr.Name)) | 127 | if(solution.ProjectsTable.ContainsKey(refr.Name)) |
128 | { | 128 | { |
129 | ProjectNode project = (ProjectNode)solution.ProjectsTable[refr.Name]; | 129 | ProjectNode project = (ProjectNode)solution.ProjectsTable[refr.Name]; |
130 | string fileRef = FindFileReference(refr.Name, project); | 130 | string finalPath = Helper.NormalizePath(((ReferencePathNode)project.ReferencePaths[0]).Path, '/'); |
131 | string finalPath = Helper.NormalizePath(Helper.MakeReferencePath(project.FullPath + "/${build.dir}/"), '/'); | 131 | |
132 | ret += finalPath; | 132 | return finalPath; |
133 | return ret; | 133 | } |
134 | } | ||
135 | else | 134 | else |
136 | { | 135 | { |
137 | ProjectNode project = (ProjectNode)refr.Parent; | 136 | ProjectNode project = (ProjectNode)refr.Parent; |
@@ -226,7 +225,7 @@ namespace Prebuild.Core.Targets | |||
226 | { | 225 | { |
227 | if (refr.LocalCopy) | 226 | if (refr.LocalCopy) |
228 | { | 227 | { |
229 | ss.WriteLine(" <include name=\"{0}", Helper.NormalizePath(Helper.MakePathRelativeTo(project.FullPath, BuildReference(solution, refr))+"\" />", '/')); | 228 | ss.WriteLine(" <include name=\"{0}", Helper.NormalizePath(Helper.MakePathRelativeTo(project.FullPath, BuildReference(solution, project, refr))+"\" />", '/')); |
230 | } | 229 | } |
231 | } | 230 | } |
232 | ss.WriteLine(" </fileset>"); | 231 | ss.WriteLine(" </fileset>"); |
@@ -316,7 +315,7 @@ namespace Prebuild.Core.Targets | |||
316 | ss.WriteLine(" </lib>"); | 315 | ss.WriteLine(" </lib>"); |
317 | foreach(ReferenceNode refr in project.References) | 316 | foreach(ReferenceNode refr in project.References) |
318 | { | 317 | { |
319 | string path = Helper.NormalizePath(Helper.MakePathRelativeTo(project.FullPath, BuildReference(solution, refr)), '/'); | 318 | string path = Helper.NormalizePath(Helper.MakePathRelativeTo(project.FullPath, BuildReference(solution, project, refr)), '/'); |
320 | ss.WriteLine(" <include name=\""+ path + "\" />" ); | 319 | ss.WriteLine(" <include name=\""+ path + "\" />" ); |
321 | } | 320 | } |
322 | ss.WriteLine(" </references>"); | 321 | ss.WriteLine(" </references>"); |
diff --git a/Prebuild/src/Prebuild.csproj b/Prebuild/src/Prebuild.csproj index c1ab9b2..3727947 100644 --- a/Prebuild/src/Prebuild.csproj +++ b/Prebuild/src/Prebuild.csproj | |||
@@ -1,4 +1,4 @@ | |||
1 | <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | 1 | <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
2 | <PropertyGroup> | 2 | <PropertyGroup> |
3 | <ProjectType>Local</ProjectType> | 3 | <ProjectType>Local</ProjectType> |
4 | <ProductVersion>8.0.50727</ProductVersion> | 4 | <ProductVersion>8.0.50727</ProductVersion> |
@@ -17,7 +17,8 @@ | |||
17 | <DefaultTargetSchema>IE50</DefaultTargetSchema> | 17 | <DefaultTargetSchema>IE50</DefaultTargetSchema> |
18 | <DelaySign>false</DelaySign> | 18 | <DelaySign>false</DelaySign> |
19 | <OutputType>Exe</OutputType> | 19 | <OutputType>Exe</OutputType> |
20 | <AppDesignerFolder></AppDesignerFolder> | 20 | <AppDesignerFolder> |
21 | </AppDesignerFolder> | ||
21 | <RootNamespace>Prebuild</RootNamespace> | 22 | <RootNamespace>Prebuild</RootNamespace> |
22 | <StartupObject>Prebuild.Prebuild</StartupObject> | 23 | <StartupObject>Prebuild.Prebuild</StartupObject> |
23 | <FileUpgradeFlags> | 24 | <FileUpgradeFlags> |
@@ -30,7 +31,8 @@ | |||
30 | <ConfigurationOverrideFile> | 31 | <ConfigurationOverrideFile> |
31 | </ConfigurationOverrideFile> | 32 | </ConfigurationOverrideFile> |
32 | <DefineConstants>DEBUG;TRACE</DefineConstants> | 33 | <DefineConstants>DEBUG;TRACE</DefineConstants> |
33 | <DocumentationFile></DocumentationFile> | 34 | <DocumentationFile> |
35 | </DocumentationFile> | ||
34 | <DebugSymbols>True</DebugSymbols> | 36 | <DebugSymbols>True</DebugSymbols> |
35 | <FileAlignment>4096</FileAlignment> | 37 | <FileAlignment>4096</FileAlignment> |
36 | <Optimize>False</Optimize> | 38 | <Optimize>False</Optimize> |
@@ -48,7 +50,8 @@ | |||
48 | <ConfigurationOverrideFile> | 50 | <ConfigurationOverrideFile> |
49 | </ConfigurationOverrideFile> | 51 | </ConfigurationOverrideFile> |
50 | <DefineConstants>TRACE</DefineConstants> | 52 | <DefineConstants>TRACE</DefineConstants> |
51 | <DocumentationFile></DocumentationFile> | 53 | <DocumentationFile> |
54 | </DocumentationFile> | ||
52 | <DebugSymbols>False</DebugSymbols> | 55 | <DebugSymbols>False</DebugSymbols> |
53 | <FileAlignment>4096</FileAlignment> | 56 | <FileAlignment>4096</FileAlignment> |
54 | <Optimize>True</Optimize> | 57 | <Optimize>True</Optimize> |
@@ -60,15 +63,15 @@ | |||
60 | <NoWarn>1595</NoWarn> | 63 | <NoWarn>1595</NoWarn> |
61 | </PropertyGroup> | 64 | </PropertyGroup> |
62 | <ItemGroup> | 65 | <ItemGroup> |
63 | <Reference Include="System.EnterpriseServices" > | 66 | <Reference Include="System.EnterpriseServices"> |
64 | <HintPath>System.EnterpriseServices.dll</HintPath> | 67 | <HintPath>System.EnterpriseServices.dll</HintPath> |
65 | <Private>False</Private> | 68 | <Private>False</Private> |
66 | </Reference> | 69 | </Reference> |
67 | <Reference Include="System.Xml" > | 70 | <Reference Include="System.Xml"> |
68 | <HintPath>System.Xml.dll</HintPath> | 71 | <HintPath>System.Xml.dll</HintPath> |
69 | <Private>False</Private> | 72 | <Private>False</Private> |
70 | </Reference> | 73 | </Reference> |
71 | <Reference Include="System" > | 74 | <Reference Include="System"> |
72 | <HintPath>System.dll</HintPath> | 75 | <HintPath>System.dll</HintPath> |
73 | <Private>False</Private> | 76 | <Private>False</Private> |
74 | </Reference> | 77 | </Reference> |
@@ -202,4 +205,4 @@ | |||
202 | <PostBuildEvent> | 205 | <PostBuildEvent> |
203 | </PostBuildEvent> | 206 | </PostBuildEvent> |
204 | </PropertyGroup> | 207 | </PropertyGroup> |
205 | </Project> | 208 | </Project> \ No newline at end of file |