mail-archives/monodevelop-patches-list/2004-May/001248.html

209 строки
10 KiB
HTML
Исходник Постоянная ссылка Обычный вид История

2019-06-06 22:06:15 +03:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Monodevelop-patches-list] r1641 - in trunk/MonoDevelop/src: AddIns/BackendBindings/CSharpBinding Main/Base Main/Base/Internal/Project/Combine Main/Base/Internal/Templates/ProjectTemplates
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:monodevelop-patches-list%40lists.ximian.com?Subject=%5BMonodevelop-patches-list%5D%20r1641%20-%20in%20trunk/MonoDevelop/src%3A%20AddIns/BackendBindings/CSharpBinding%20Main/Base%20Main/Base/Internal/Project/Combine%20Main/Base/Internal/Templates/ProjectTemplates&In-Reply-To=">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="001247.html">
<LINK REL="Next" HREF="001249.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Monodevelop-patches-list] r1641 - in trunk/MonoDevelop/src: AddIns/BackendBindings/CSharpBinding Main/Base Main/Base/Internal/Project/Combine Main/Base/Internal/Templates/ProjectTemplates</H1>
<B>commit-watcher at mono-cvs.ximian.com</B>
<A HREF="mailto:monodevelop-patches-list%40lists.ximian.com?Subject=%5BMonodevelop-patches-list%5D%20r1641%20-%20in%20trunk/MonoDevelop/src%3A%20AddIns/BackendBindings/CSharpBinding%20Main/Base%20Main/Base/Internal/Project/Combine%20Main/Base/Internal/Templates/ProjectTemplates&In-Reply-To="
TITLE="[Monodevelop-patches-list] r1641 - in trunk/MonoDevelop/src: AddIns/BackendBindings/CSharpBinding Main/Base Main/Base/Internal/Project/Combine Main/Base/Internal/Templates/ProjectTemplates">commit-watcher at mono-cvs.ximian.com
</A><BR>
<I>Wed May 26 05:59:26 EDT 2004</I>
<P><UL>
<LI>Previous message: <A HREF="001247.html">[Monodevelop-patches-list] r1640 - trunk
</A></li>
<LI>Next message: <A HREF="001249.html">[Monodevelop-patches-list] r1642 - in trunk/MonoDevelop/src/Main/Base: . Services/Project
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#1248">[ date ]</a>
<a href="thread.html#1248">[ thread ]</a>
<a href="subject.html#1248">[ subject ]</a>
<a href="author.html#1248">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Author: tberman
Date: 2004-05-26 05:59:26 -0400 (Wed, 26 May 2004)
New Revision: 1641
Modified:
trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingCompilerManager.cs
trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/ChangeLog
trunk/MonoDevelop/src/Main/Base/ChangeLog
trunk/MonoDevelop/src/Main/Base/Internal/Project/Combine/Combine.cs
trunk/MonoDevelop/src/Main/Base/Internal/Templates/ProjectTemplates/CombineDescriptor.cs
Log:
the build system now properly handles building a solution that has 2 projects, one that references the other.
Modified: trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingCompilerManager.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingCompilerManager.cs 2004-05-26 08:50:30 UTC (rev 1640)
+++ trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingCompilerManager.cs 2004-05-26 09:59:26 UTC (rev 1641)
@@ -399,10 +399,10 @@
stream.WriteLine (&quot;PKG_REFERENCES_BUILD = $(addprefix -pkg:, $(PKG_REFERENCES))&quot;);
stream.WriteLine ();
stream.WriteLine (&quot;PKG_REFERENCES_CHECK = $(addsuffix .pkgcheck, $(PKG_REFERENCES))&quot;);
+ stream.WriteLine ();
}
if (system_references.Count &gt; 0) {
- stream.WriteLine ();
stream.WriteLine (&quot;SYSTEM_REFERENCES = \\&quot;);
for (int i = 0; i &lt; system_references.Count; i++) {
stream.Write (system_references[i]);
Modified: trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/ChangeLog
===================================================================
--- trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/ChangeLog 2004-05-26 08:50:30 UTC (rev 1640)
+++ trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/ChangeLog 2004-05-26 09:59:26 UTC (rev 1641)
@@ -1,3 +1,7 @@
+2004-05-26 Todd Berman &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/monodevelop-patches-list">tberman at sevenl.net</A>&gt;
+
+ * CSharpBindingCompilerManager.cs: more makefile magic.
+
2004-05-25 Todd Berman &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/monodevelop-patches-list">tberman at sevenl.net</A>&gt;
* Parser/Parser.cs: Update MonodocResolver and IsAsResolver.
Modified: trunk/MonoDevelop/src/Main/Base/ChangeLog
===================================================================
--- trunk/MonoDevelop/src/Main/Base/ChangeLog 2004-05-26 08:50:30 UTC (rev 1640)
+++ trunk/MonoDevelop/src/Main/Base/ChangeLog 2004-05-26 09:59:26 UTC (rev 1641)
@@ -1,5 +1,13 @@
2004-05-26 Todd Berman &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/monodevelop-patches-list">tberman at sevenl.net</A>&gt;
+ * Internal/Project/Combine/Combine.cs: actually tested with a solution
+ with 2 projects in it, one that references the other. It works now,
+ building, cleaning, running, etc.
+ * Internal/Templates/ProjectTemplates/CombineDescriptor.cs: setup
+ OutputDirectory properly by default.
+
+2004-05-26 Todd Berman &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/monodevelop-patches-list">tberman at sevenl.net</A>&gt;
+
* Internal/Project/Project/AbstractProject.cs: ignore .pidb, .mdsx and
make.sh.
Modified: trunk/MonoDevelop/src/Main/Base/Internal/Project/Combine/Combine.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Internal/Project/Combine/Combine.cs 2004-05-26 08:50:30 UTC (rev 1640)
+++ trunk/MonoDevelop/src/Main/Base/Internal/Project/Combine/Combine.cs 2004-05-26 09:59:26 UTC (rev 1641)
@@ -18,7 +18,9 @@
using Mono.Posix;
using FileMode = Mono.Posix.FileMode;
+
using MonoDevelop.Core.Services;
+
using MonoDevelop.Services;
using MonoDevelop.Internal.Project;
using MonoDevelop.Core.Properties;
@@ -622,8 +624,9 @@
public void GenerateMakefiles ()
{
+ ArrayList allProjects = TopologicalSort (GetAllProjects (this));
ArrayList projects = new ArrayList ();
- foreach (CombineEntry entry in entries) {
+ foreach (CombineEntry entry in allProjects) {
if (entry is ProjectCombineEntry) {
entry.GenerateMakefiles (this);
projects.Add (((ProjectCombineEntry)entry).Project);
@@ -631,7 +634,7 @@
else
Console.WriteLine (&quot;Dont know how to generate makefiles for &quot; + entry);
}
-
+
FileUtilityService fileUtilityService = (FileUtilityService)ServiceManager.Services.GetService(typeof(FileUtilityService));
string rel_outputdir = fileUtilityService.AbsoluteToRelativePath (path, outputdir);
@@ -652,9 +655,10 @@
stream.WriteLine ();
stream.WriteLine (&quot;OUTPUTDIR := {0}&quot;, rel_outputdir);
+ stream.WriteLine ();
stream.Write (&quot;all: depcheck __init &quot;);
foreach (IProject proj in projects) {
- stream.Write (&quot;Makefile.{0}.all&quot;, proj.Name);
+ stream.Write (&quot;Makefile.{0}.all &quot;, proj.Name);
}
stream.WriteLine ();
stream.WriteLine ();
@@ -665,14 +669,14 @@
stream.Write (&quot;clean: &quot;);
foreach (IProject proj in projects) {
- stream.Write (&quot;Makefile.{0}.clean&quot;, proj.Name);
+ stream.Write (&quot;Makefile.{0}.clean &quot;, proj.Name);
}
stream.WriteLine ();
stream.WriteLine ();
stream.Write (&quot;depcheck: &quot;);
foreach (IProject proj in projects) {
- stream.Write (&quot;Makefile.{0}.depcheck&quot;, proj.Name);
+ stream.Write (&quot;Makefile.{0}.depcheck &quot;, proj.Name);
}
stream.WriteLine ();
stream.WriteLine ();
@@ -686,8 +690,10 @@
stream.WriteLine ();
foreach (IProject proj in projects) {
+ string relativeLocation = fileUtilityService.AbsoluteToRelativePath (path, proj.BaseDirectory);
stream.WriteLine (&quot;Makefile.{0}.%:&quot;, proj.Name);
- stream.WriteLine (&quot;\t@$(MAKE) -f $(subst .$*,,$@) $*&quot;);
+ stream.WriteLine (&quot;\<A HREF="http://lists.ximian.com/mailman/listinfo/monodevelop-patches-list">t at cd</A> {0} &amp;&amp; $(MAKE) -f $(subst .$*,,$@) $*&quot;, relativeLocation);
+ stream.WriteLine ();
}
stream.Flush ();
Modified: trunk/MonoDevelop/src/Main/Base/Internal/Templates/ProjectTemplates/CombineDescriptor.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Internal/Templates/ProjectTemplates/CombineDescriptor.cs 2004-05-26 08:50:30 UTC (rev 1640)
+++ trunk/MonoDevelop/src/Main/Base/Internal/Templates/ProjectTemplates/CombineDescriptor.cs 2004-05-26 09:59:26 UTC (rev 1641)
@@ -94,6 +94,7 @@
// Save combine
string combineLocation = fileUtilityService.GetDirectoryNameWithSeparator(projectCreateInformation.CombinePath) + newCombineName + &quot;.cmbx&quot;;
+ newCombine.OutputDirectory = Path.Combine (Path.Combine (Path.GetDirectoryName (combineLocation), &quot;build&quot;), &quot;bin&quot;);
if (File.Exists(combineLocation)) {
IMessageService messageService =(IMessageService)ServiceManager.Services.GetService(typeof(IMessageService));
if (messageService.AskQuestion(String.Format (GettextCatalog.GetString (&quot;Solution file {0} already exists, do you want to overwrite\nthe existing file ?&quot;), combineLocation))) {
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="001247.html">[Monodevelop-patches-list] r1640 - trunk
</A></li>
<LI>Next message: <A HREF="001249.html">[Monodevelop-patches-list] r1642 - in trunk/MonoDevelop/src/Main/Base: . Services/Project
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#1248">[ date ]</a>
<a href="thread.html#1248">[ thread ]</a>
<a href="subject.html#1248">[ subject ]</a>
<a href="author.html#1248">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/monodevelop-patches-list">More information about the Monodevelop-patches-list
mailing list</a><br>
</body></html>