Author: miguel
Date: 2007-05-05 15:26:26 -0400 (Sat, 05 May 2007)
New Revision: 76758
Added:
trunk/cecil/corcompare/Makefile
Modified:
trunk/cecil/corcompare/mono-api-info.cs
Log:
Make it work on Unix, add Makefile
Added: trunk/cecil/corcompare/Makefile
===================================================================
--- trunk/cecil/corcompare/Makefile 2007-05-05 18:51:21 UTC (rev 76757)
+++ trunk/cecil/corcompare/Makefile 2007-05-05 19:26:26 UTC (rev 76758)
@@ -0,0 +1,35 @@
+SHARED_SOURCES = \
+ AssemblyResolver.cs \
+ CompletionInfo.cs \
+ MissingAttribute.cs \
+ MissingBase.cs \
+ MissingConstructor.cs \
+ MissingEvent.cs \
+ MissingField.cs \
+ MissingInterface.cs \
+ MissingMember.cs \
+ MissingMethod.cs \
+ MissingNameSpace.cs \
+ MissingNestedType.cs \
+ MissingProperty.cs \
+ MissingType.cs \
+ ToDoAssembly.cs \
+ Util.cs
+
+REFERENCES=-r:Mono.Cecil.dll
+CSC=gmcs -debug
+
+all: CorCompare.exe mono-api-diff.exe mono-api-info.exe
+
+CorCompare.exe: CorCompare.cs $(SHARED_SOURCES)
+ $(CSC) -out:CorCompare.exe CorCompare.cs $(REFERENCES) $(SHARED_SOURCES)
+
+mono-api-info.exe: mono-api-info.cs $(SHARED_SOURCES)
+ $(CSC) -out:mono-api-info.exe mono-api-info.cs $(REFERENCES)
$(SHARED_SOURCES)
+
+mono-api-diff.exe: mono-api-diff.cs $(SHARED_SOURCES)
+ $(CSC) -out:mono-api-diff.exe mono-api-diff.cs $(REFERENCES)
$(SHARED_SOURCES)
+
+clean:
+ rm *exe
+
Property changes on: trunk/cecil/corcompare/Makefile
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: trunk/cecil/corcompare/mono-api-info.cs
===================================================================
--- trunk/cecil/corcompare/mono-api-info.cs 2007-05-05 18:51:21 UTC (rev
76757)
+++ trunk/cecil/corcompare/mono-api-info.cs 2007-05-05 19:26:26 UTC (rev
76758)
@@ -85,8 +85,8 @@
static AssemblyDefinition LoadAssembly (string assPath)
{
- string pathOnly = assPath.Substring( 0,
assPath.LastIndexOf ("\\") );
- string name = assPath.Substring (assPath.LastIndexOf
("\\") + 1);
+ string pathOnly = assPath.Substring( 0,
assPath.LastIndexOf (System.IO.Path.DirectorySeparatorChar) );
+ string name = assPath.Substring (assPath.LastIndexOf
(System.IO.Path.DirectorySeparatorChar) + 1);
return (new AssemblyResolver (pathOnly)).Resolve (name);
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches