2008-10-09 Mike Kestner <mkestner@novell.com>
* cairo/*.cs: flatten source hierarchy to simplify win32 build. * sample/Makefile.am: fix a ref issue with local cairo. svn path=/trunk/gtk-sharp/; revision=115401
This commit is contained in:
parent
81e6815080
commit
b20d37c79c
50 changed files with 67 additions and 50 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-10-09 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* cairo/*.cs: flatten source hierarchy to simplify win32 build.
|
||||
* sample/Makefile.am: fix a ref issue with local cairo.
|
||||
|
||||
2008-10-09 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* configure.in.in: magic for local Mono.Cairo build.
|
||||
|
|
|
@ -36,7 +36,10 @@ using System.Runtime.InteropServices;
|
|||
|
||||
namespace Cairo
|
||||
{
|
||||
public static class CairoAPI {
|
||||
public class CairoAPI {
|
||||
|
||||
private CairoAPI () {}
|
||||
|
||||
static public int Version {
|
||||
get {
|
||||
return Cairo.NativeMethods.cairo_version ();
|
|
@ -12,53 +12,53 @@ noinst_DATA = $(TARGET)
|
|||
CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb gtk-sharp.snk AssemblyInfo.cs
|
||||
|
||||
sources = \
|
||||
Mono.Cairo/Antialias.cs \
|
||||
Mono.Cairo/Cairo.cs \
|
||||
Mono.Cairo/Content.cs \
|
||||
Mono.Cairo/Context.cs \
|
||||
Mono.Cairo/DirectFBSurface.cs \
|
||||
Mono.Cairo/Extend.cs \
|
||||
Mono.Cairo/FillRule.cs \
|
||||
Mono.Cairo/Filter.cs \
|
||||
Mono.Cairo/FontExtents.cs \
|
||||
Mono.Cairo/FontFace.cs \
|
||||
Mono.Cairo/FontOptions.cs \
|
||||
Mono.Cairo/FontSlant.cs \
|
||||
Mono.Cairo/FontType.cs \
|
||||
Mono.Cairo/FontWeight.cs \
|
||||
Mono.Cairo/Format.cs \
|
||||
Mono.Cairo/GlitzSurface.cs \
|
||||
Mono.Cairo/Glyph.cs \
|
||||
Mono.Cairo/Gradient.cs \
|
||||
Mono.Cairo/HintMetrics.cs \
|
||||
Mono.Cairo/HintStyle.cs \
|
||||
Mono.Cairo/ImageSurface.cs \
|
||||
Mono.Cairo/LinearGradient.cs \
|
||||
Mono.Cairo/LineCap.cs \
|
||||
Mono.Cairo/LineJoin.cs \
|
||||
Mono.Cairo/Matrix.cs \
|
||||
Mono.Cairo/NativeMethods.cs \
|
||||
Mono.Cairo/Operator.cs \
|
||||
Mono.Cairo/Path.cs \
|
||||
Mono.Cairo/Pattern.cs \
|
||||
Mono.Cairo/PatternType.cs \
|
||||
Mono.Cairo/PdfSurface.cs \
|
||||
Mono.Cairo/PSSurface.cs \
|
||||
Mono.Cairo/RadialGradient.cs \
|
||||
Mono.Cairo/Rectangle.cs \
|
||||
Mono.Cairo/ScaledFont.cs \
|
||||
Mono.Cairo/SolidPattern.cs \
|
||||
Mono.Cairo/Status.cs \
|
||||
Mono.Cairo/SubpixelOrder.cs \
|
||||
Mono.Cairo/Surface.cs \
|
||||
Mono.Cairo/SurfacePattern.cs \
|
||||
Mono.Cairo/SurfaceType.cs \
|
||||
Mono.Cairo/SvgSurface.cs \
|
||||
Mono.Cairo/SvgVersion.cs \
|
||||
Mono.Cairo/TextExtents.cs \
|
||||
Mono.Cairo/Win32Surface.cs \
|
||||
Mono.Cairo/XcbSurface.cs \
|
||||
Mono.Cairo/XlibSurface.cs \
|
||||
Antialias.cs \
|
||||
Cairo.cs \
|
||||
Content.cs \
|
||||
Context.cs \
|
||||
DirectFBSurface.cs \
|
||||
Extend.cs \
|
||||
FillRule.cs \
|
||||
Filter.cs \
|
||||
FontExtents.cs \
|
||||
FontFace.cs \
|
||||
FontOptions.cs \
|
||||
FontSlant.cs \
|
||||
FontType.cs \
|
||||
FontWeight.cs \
|
||||
Format.cs \
|
||||
GlitzSurface.cs \
|
||||
Glyph.cs \
|
||||
Gradient.cs \
|
||||
HintMetrics.cs \
|
||||
HintStyle.cs \
|
||||
ImageSurface.cs \
|
||||
LinearGradient.cs \
|
||||
LineCap.cs \
|
||||
LineJoin.cs \
|
||||
Matrix.cs \
|
||||
NativeMethods.cs \
|
||||
Operator.cs \
|
||||
Path.cs \
|
||||
Pattern.cs \
|
||||
PatternType.cs \
|
||||
PdfSurface.cs \
|
||||
PSSurface.cs \
|
||||
RadialGradient.cs \
|
||||
Rectangle.cs \
|
||||
ScaledFont.cs \
|
||||
SolidPattern.cs \
|
||||
Status.cs \
|
||||
SubpixelOrder.cs \
|
||||
Surface.cs \
|
||||
SurfacePattern.cs \
|
||||
SurfaceType.cs \
|
||||
SvgSurface.cs \
|
||||
SvgVersion.cs \
|
||||
TextExtents.cs \
|
||||
Win32Surface.cs \
|
||||
XcbSurface.cs \
|
||||
XlibSurface.cs \
|
||||
#
|
||||
|
||||
build_sources = $(addprefix $(srcdir)/, $(sources)) AssemblyInfo.cs
|
||||
|
|
|
@ -39,8 +39,11 @@ namespace Cairo
|
|||
// sort these so it is easier to find what is missing
|
||||
// http://www.cairographics.org/manual/ix01.html
|
||||
|
||||
public static class NativeMethods
|
||||
public class NativeMethods
|
||||
{
|
||||
|
||||
private NativeMethods () {}
|
||||
|
||||
const string cairo = "libcairo-2.dll";
|
||||
|
||||
//[DllImport (cairo)]
|
|
@ -1,5 +1,11 @@
|
|||
SUBDIRS = test GtkDemo pixmaps valtest opaquetest
|
||||
|
||||
if ENABLE_MONO_CAIRO
|
||||
cairo_ref=-r:$(top_builddir)/cairo/Mono.Cairo.dll
|
||||
else
|
||||
cairo_ref=$(MONO_CAIRO_LIBS)
|
||||
endif
|
||||
|
||||
if ENABLE_GLADE
|
||||
GLADE_TARGETS=glade-viewer.exe glade-test.exe
|
||||
GLADE_ASSEMBLY=../glade/glade-sharp.dll
|
||||
|
@ -69,7 +75,7 @@ glade-test.exe: $(srcdir)/GladeTest.cs $(srcdir)/test.glade $(assemblies)
|
|||
$(CSC) /resource:$(srcdir)/test.glade,test.glade /out:glade-test.exe $(references) $(srcdir)/GladeTest.cs
|
||||
|
||||
cairo-sample.exe: $(srcdir)/CairoSample.cs $(assemblies)
|
||||
$(CSC) /out:cairo-sample.exe $(references) /r:Mono.Cairo $(srcdir)/CairoSample.cs
|
||||
$(CSC) /out:cairo-sample.exe $(references) $(cairo_ref) $(srcdir)/CairoSample.cs
|
||||
|
||||
testdnd.exe: $(srcdir)/TestDnd.cs $(assemblies)
|
||||
$(CSC) /debug /unsafe /out:testdnd.exe $(references) $(srcdir)/TestDnd.cs
|
||||
|
|
Loading…
Reference in a new issue