From e83c55a242ff8a56cf686ccf3a1060bd443c8ce9 Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Fri, 12 Mar 2004 21:18:11 +0000 Subject: [PATCH] 2004-03-12 Mike Kestner * */Makefile.am : automakify the build * */Makefile.in : kill * *.custom : remove System.Drawing dependencies * *.cs : remove System.Drawing dependencies * *-api.xml : mv to *-api.raw * glue/* : mv to lib specific gluelibs for glib, gdk, gtk, and glade. * gtk/gtk-symbols : alias GtkType to GType * sources/gtk-sharp-sources.xml : create .raw files. They are now transformed to .xml files by the metadata compilation step. svn path=/trunk/gtk-sharp/; revision=23967 --- AUTHORS | 1 + ChangeLog | 12 + Makefile.am | 14 + Makefile.in | 71 - NEWS | 1 + art/Makefile.am | 52 + art/Makefile.in | 42 - art/art-api.raw | 1069 ++ art/art-api.xml | 1068 -- atk/Makefile.am | 41 + atk/Makefile.in | 38 - atk/{atk-api.xml => atk-api.raw} | 1491 +- atk/makefile.win32 | 6 + configure.in | 55 +- gconf/.cvsignore | 1 + gconf/GConf.PropertyEditors/.cvsignore | 1 + gconf/GConf.PropertyEditors/EditorShell.cs | 4 +- gconf/GConf.PropertyEditors/Makefile.am | 35 + gconf/GConf.PropertyEditors/Makefile.in | 30 - gconf/GConf/Makefile.am | 27 + gconf/GConf/Makefile.in | 28 - gconf/Makefile.am | 1 + gconf/Makefile.in | 24 - gconf/doc/.cvsignore | 2 + gconf/doc/Makefile.am | 1 + gconf/tools/.cvsignore | 1 + gconf/tools/Makefile.am | 13 + gconf/tools/Makefile.in | 27 - gda/Makefile.am | 49 + gda/Makefile.in | 38 - gda/{gda-api.xml => gda-api.raw} | 2631 +-- gdk/Color.custom | 13 - gdk/DragContext.custom | 18 +- gdk/Drawable.custom | 15 - gdk/Event.cs | 6 +- gdk/EventButton.cs | 18 +- gdk/EventClient.cs | 8 +- gdk/EventConfigure.cs | 8 +- gdk/EventCrossing.cs | 20 +- gdk/EventDND.cs | 8 +- gdk/EventExpose.cs | 6 +- gdk/EventFocus.cs | 2 +- gdk/EventKey.cs | 10 +- gdk/EventMotion.cs | 18 +- gdk/EventProperty.cs | 6 +- gdk/EventProximity.cs | 4 +- gdk/EventScroll.cs | 16 +- gdk/EventSelection.cs | 10 +- gdk/EventSetting.cs | 4 +- gdk/EventVisibility.cs | 2 +- gdk/EventWindowState.cs | 4 +- gdk/Makefile.am | 78 + gdk/Makefile.in | 40 - gdk/Pixbuf.custom | 17 - gdk/Rectangle.custom | 5 - gdk/Selection.custom | 6 +- gdk/Window.custom | 55 - gdk/gdk-api.raw | 4368 +++++ gdk/gdk-api.xml | 4367 ----- gdk/glue/.cvsignore | 7 + gdk/glue/Makefile.am | 22 + {glue => gdk/glue}/dragcontext.c | 0 {glue => gdk/glue}/event.c | 0 gdk/glue/makefile.win32 | 24 + {glue => gdk/glue}/selection.c | 0 {glue => gdk/glue}/win32dll.c | 0 gdk/makefile.win32 | 8 + generator/.cvsignore | 1 + generator/Makefile.am | 55 + generator/Makefile.in | 22 - generator/Parser.cs | 2 + glade/Makefile.am | 55 + glade/Makefile.in | 46 - glade/XML.custom | 2 +- glade/glade-api.raw | 369 + glade/glade-api.xml | 368 - glade/glue/.cvsignore | 7 + glade/glue/Makefile.am | 23 + {glue => glade/glue}/gladexml.c | 0 glade/glue/makefile.win32 | 22 + glade/glue/win32dll.c | 16 + glade/makefile.win32 | 7 + glib/GException.cs | 2 +- glib/List.cs | 4 +- glib/Makefile.am | 53 + glib/Makefile.in | 22 - glib/Object.cs | 12 +- glib/ObjectManager.cs | 8 +- glib/SList.cs | 4 +- glib/Value.cs | 6 +- glib/ValueArray.cs | 4 +- glib/glue/.cvsignore | 7 + glib/glue/Makefile.am | 27 + {glue => glib/glue}/error.c | 0 {glue => glib/glue}/list.c | 0 glib/glue/makefile.win32 | 29 + glib/glue/object.c | 18 + {glue => glib/glue}/slist.c | 0 {glue => glib/glue}/time_t.c | 0 {glue => glib/glue}/type.c | 0 {glue => glib/glue}/value.c | 0 {glue => glib/glue}/valuearray.c | 0 glib/glue/win32dll.c | 16 + glib/makefile.win32 | 2 + glib/time_t_CustomMarshaler.cs | 2 +- glue/Makefile.am | 83 - gnome/CanvasItem.custom | 2 +- gnome/CanvasPoints.custom | 2 +- gnome/Makefile.am | 83 + gnome/Makefile.in | 47 - gnome/Program.custom | 2 +- gnome/glue/.cvsignore | 7 + gnome/glue/Makefile.am | 29 + {glue => gnome/glue}/canvas-proxy-marshal.c | 0 {glue => gnome/glue}/canvas-proxy-marshal.h | 0 .../glue}/canvas-proxy-marshal.list | 0 {glue => gnome/glue}/canvas-proxy.c | 0 {glue => gnome/glue}/canvas-proxy.h | 0 {glue => gnome/glue}/canvasitem.c | 0 {glue => gnome/glue}/canvaspoints.c | 0 {glue => gnome/glue}/program.c | 0 gnome/{gnome-api.xml => gnome-api.raw} | 6683 +++---- gnomedb/Makefile.am | 49 + gnomedb/Makefile.in | 50 - gnomedb/{gnomedb-api.xml => gnomedb-api.raw} | 1089 +- gnometutorial/index.html | 6 - gtk/IconFactory.custom | 8 - gtk/Makefile.am | 100 + gtk/Makefile.in | 42 - gtk/Widget.custom | 14 - gtk/Window.custom | 31 - gtk/glue/.cvsignore | 7 + gtk/glue/Makefile.am | 33 + {glue => gtk/glue}/adjustment.c | 0 {glue => gtk/glue}/button.c | 0 {glue => gtk/glue}/clipboard.c | 0 {glue => gtk/glue}/colorseldialog.c | 0 {glue => gtk/glue}/combo.c | 0 {glue => gtk/glue}/dialog.c | 0 {glue => gtk/glue}/fileselection.c | 0 {glue => gtk/glue}/layout.c | 0 {glue => gtk/glue}/makefile.win32 | 10 - {glue => gtk/glue}/nodestore.c | 0 {glue => gtk/glue}/object.c | 6 - {glue => gtk/glue}/paned.c | 0 {glue => gtk/glue}/selectiondata.c | 0 {glue => gtk/glue}/style.c | 0 {glue => gtk/glue}/widget.c | 0 gtk/glue/win32dll.c | 16 + gtk/gtk-api.raw | 14425 ++++++++++++++++ gtk/gtk-api.xml | 14424 --------------- gtk/gtk-symbols.xml | 2 +- gtk/makefile.win32 | 8 + gtkhtml/Makefile.am | 49 + gtkhtml/Makefile.in | 47 - gtkhtml/{gtkhtml-api.xml => gtkhtml-api.raw} | 1177 +- makefile.win32 | 2 +- pango/.cvsignore | 1 + pango/Layout.custom | 8 - pango/Makefile.am | 47 + pango/Makefile.in | 36 - pango/makefile.win32 | 7 + pango/{pango-api.xml => pango-api.raw} | 1305 +- parser/.cvsignore | 2 + parser/GAPI/.cvsignore | 2 + parser/GAPI/Makefile.am | 4 + parser/Makefile.am | 35 + parser/Makefile.in | 46 - parser/makefile.win32 | 8 + rsvg/Makefile.am | 47 + rsvg/Makefile.in | 46 - rsvg/{rsvg-api.xml => rsvg-api.raw} | 0 sample/ButtonApp.cs | 4 +- sample/CalendarApp.cs | 4 +- sample/Fifteen.cs | 4 +- sample/GnomeHelloWorld.cs | 4 +- sample/GtkDemo/.cvsignore | 2 + sample/GtkDemo/DemoColorSelection.cs | 2 +- sample/GtkDemo/DemoDrawingArea.cs | 10 +- sample/GtkDemo/Makefile | 10 - sample/GtkDemo/Makefile.am | 31 + sample/Makefile.am | 108 + sample/Makefile.in | 98 - sample/ManagedTreeViewDemo.cs | 4 +- sample/Menu.cs | 4 +- sample/Size.cs | 4 +- sample/Subclass.cs | 1 - sample/gconf/.cvsignore | 2 + sample/gconf/Makefile | 23 - sample/gconf/Makefile.am | 25 + sample/pixmaps/.cvsignore | 2 + sample/pixmaps/Makefile.am | 7 + sample/rsvg/.cvsignore | 1 + sample/rsvg/Makefile.am | 11 + sample/rsvg/Makefile.in | 21 - sample/test/.cvsignore | 2 + sample/test/Makefile | 11 - sample/test/Makefile.am | 29 + sources/.cvsignore | 2 + sources/{makefile => Makefile.am} | 23 +- sources/gtk-sharp-sources.xml | 26 +- vte/Makefile.am | 48 + vte/Makefile.in | 41 - vte/{vte-api.xml => vte-api.raw} | 581 +- 204 files changed, 29460 insertions(+), 29090 deletions(-) create mode 100644 AUTHORS create mode 100644 Makefile.am delete mode 100644 Makefile.in create mode 100644 NEWS create mode 100644 art/Makefile.am delete mode 100755 art/Makefile.in create mode 100644 art/art-api.raw delete mode 100644 art/art-api.xml create mode 100644 atk/Makefile.am delete mode 100644 atk/Makefile.in rename atk/{atk-api.xml => atk-api.raw} (52%) create mode 100644 gconf/GConf.PropertyEditors/Makefile.am delete mode 100644 gconf/GConf.PropertyEditors/Makefile.in create mode 100644 gconf/GConf/Makefile.am delete mode 100644 gconf/GConf/Makefile.in create mode 100644 gconf/Makefile.am delete mode 100644 gconf/Makefile.in create mode 100644 gconf/doc/.cvsignore create mode 100644 gconf/doc/Makefile.am create mode 100644 gconf/tools/Makefile.am delete mode 100644 gconf/tools/Makefile.in create mode 100644 gda/Makefile.am delete mode 100755 gda/Makefile.in rename gda/{gda-api.xml => gda-api.raw} (52%) create mode 100644 gdk/Makefile.am delete mode 100755 gdk/Makefile.in create mode 100644 gdk/gdk-api.raw delete mode 100644 gdk/gdk-api.xml create mode 100644 gdk/glue/.cvsignore create mode 100644 gdk/glue/Makefile.am rename {glue => gdk/glue}/dragcontext.c (100%) rename {glue => gdk/glue}/event.c (100%) create mode 100755 gdk/glue/makefile.win32 rename {glue => gdk/glue}/selection.c (100%) rename {glue => gdk/glue}/win32dll.c (100%) create mode 100644 generator/Makefile.am delete mode 100644 generator/Makefile.in create mode 100644 glade/Makefile.am delete mode 100755 glade/Makefile.in create mode 100644 glade/glade-api.raw delete mode 100644 glade/glade-api.xml create mode 100644 glade/glue/.cvsignore create mode 100644 glade/glue/Makefile.am rename {glue => glade/glue}/gladexml.c (100%) create mode 100755 glade/glue/makefile.win32 create mode 100755 glade/glue/win32dll.c create mode 100644 glib/Makefile.am delete mode 100755 glib/Makefile.in create mode 100644 glib/glue/.cvsignore create mode 100644 glib/glue/Makefile.am rename {glue => glib/glue}/error.c (100%) rename {glue => glib/glue}/list.c (100%) create mode 100755 glib/glue/makefile.win32 create mode 100644 glib/glue/object.c rename {glue => glib/glue}/slist.c (100%) rename {glue => glib/glue}/time_t.c (100%) rename {glue => glib/glue}/type.c (100%) rename {glue => glib/glue}/value.c (100%) rename {glue => glib/glue}/valuearray.c (100%) create mode 100755 glib/glue/win32dll.c delete mode 100644 glue/Makefile.am create mode 100644 gnome/Makefile.am delete mode 100755 gnome/Makefile.in create mode 100644 gnome/glue/.cvsignore create mode 100644 gnome/glue/Makefile.am rename {glue => gnome/glue}/canvas-proxy-marshal.c (100%) rename {glue => gnome/glue}/canvas-proxy-marshal.h (100%) rename {glue => gnome/glue}/canvas-proxy-marshal.list (100%) rename {glue => gnome/glue}/canvas-proxy.c (100%) rename {glue => gnome/glue}/canvas-proxy.h (100%) rename {glue => gnome/glue}/canvasitem.c (100%) rename {glue => gnome/glue}/canvaspoints.c (100%) rename {glue => gnome/glue}/program.c (100%) rename gnome/{gnome-api.xml => gnome-api.raw} (50%) create mode 100644 gnomedb/Makefile.am delete mode 100755 gnomedb/Makefile.in rename gnomedb/{gnomedb-api.xml => gnomedb-api.raw} (58%) delete mode 100644 gnometutorial/index.html create mode 100644 gtk/Makefile.am delete mode 100755 gtk/Makefile.in create mode 100644 gtk/glue/.cvsignore create mode 100644 gtk/glue/Makefile.am rename {glue => gtk/glue}/adjustment.c (100%) rename {glue => gtk/glue}/button.c (100%) rename {glue => gtk/glue}/clipboard.c (100%) rename {glue => gtk/glue}/colorseldialog.c (100%) rename {glue => gtk/glue}/combo.c (100%) rename {glue => gtk/glue}/dialog.c (100%) rename {glue => gtk/glue}/fileselection.c (100%) rename {glue => gtk/glue}/layout.c (100%) rename {glue => gtk/glue}/makefile.win32 (75%) rename {glue => gtk/glue}/nodestore.c (100%) rename {glue => gtk/glue}/object.c (80%) rename {glue => gtk/glue}/paned.c (100%) rename {glue => gtk/glue}/selectiondata.c (100%) rename {glue => gtk/glue}/style.c (100%) rename {glue => gtk/glue}/widget.c (100%) create mode 100755 gtk/glue/win32dll.c create mode 100644 gtk/gtk-api.raw delete mode 100644 gtk/gtk-api.xml create mode 100644 gtkhtml/Makefile.am delete mode 100755 gtkhtml/Makefile.in rename gtkhtml/{gtkhtml-api.xml => gtkhtml-api.raw} (56%) create mode 100644 pango/Makefile.am delete mode 100644 pango/Makefile.in rename pango/{pango-api.xml => pango-api.raw} (52%) create mode 100644 parser/GAPI/.cvsignore create mode 100644 parser/GAPI/Makefile.am create mode 100644 parser/Makefile.am delete mode 100644 parser/Makefile.in create mode 100644 parser/makefile.win32 create mode 100644 rsvg/Makefile.am delete mode 100644 rsvg/Makefile.in rename rsvg/{rsvg-api.xml => rsvg-api.raw} (100%) create mode 100644 sample/GtkDemo/.cvsignore delete mode 100644 sample/GtkDemo/Makefile create mode 100644 sample/GtkDemo/Makefile.am create mode 100755 sample/Makefile.am delete mode 100755 sample/Makefile.in delete mode 100644 sample/gconf/Makefile create mode 100644 sample/gconf/Makefile.am create mode 100644 sample/pixmaps/.cvsignore create mode 100644 sample/pixmaps/Makefile.am create mode 100644 sample/rsvg/Makefile.am delete mode 100644 sample/rsvg/Makefile.in create mode 100644 sample/test/.cvsignore delete mode 100644 sample/test/Makefile create mode 100644 sample/test/Makefile.am rename sources/{makefile => Makefile.am} (86%) create mode 100644 vte/Makefile.am delete mode 100644 vte/Makefile.in rename vte/{vte-api.xml => vte-api.raw} (54%) diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 000000000..aa432a9f0 --- /dev/null +++ b/AUTHORS @@ -0,0 +1 @@ +Mike Kestner diff --git a/ChangeLog b/ChangeLog index b73aa0d21..1483e2c94 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2004-03-12 Mike Kestner + + * */Makefile.am : automakify the build + * */Makefile.in : kill + * *.custom : remove System.Drawing dependencies + * *.cs : remove System.Drawing dependencies + * *-api.xml : mv to *-api.raw + * glue/* : mv to lib specific gluelibs for glib, gdk, gtk, and glade. + * gtk/gtk-symbols : alias GtkType to GType + * sources/gtk-sharp-sources.xml : create .raw files. They are now + transformed to .xml files by the metadata compilation step. + 2004-03-08 Mike Kestner * generator/ObjectGen.cs : ignore virtual_method elems for now. diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 000000000..0808583b8 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,14 @@ +SUBDIRS = sources generator parser glib pango atk gdk gtk glade art gnome gda gnomedb gtkhtml gconf rsvg vte sample + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = gtk-sharp.pc + +EXTRA_DIST = \ + gtk-sharp.pc.in \ + makefile.win32 \ + ChangeLog \ + README \ + README.generator + +DISTCLEANFILES = gtk-sharp.pc + diff --git a/Makefile.in b/Makefile.in deleted file mode 100644 index aeaee3314..000000000 --- a/Makefile.in +++ /dev/null @@ -1,71 +0,0 @@ -NATIVE_DIRS = glue parser - -DIRS=generator glib pango atk gdk gtk glade art gnome gtkhtml gda gnomedb gconf rsvg vte sample -ROOT=/cygdrive/$(subst \,/,$(subst :\,/,$(SYSTEMROOT))) -CSC=$(ROOT)/microsoft.net/framework/v1.0.3705/csc.exe -MCS=mcs - -all: linux - -windows: - for i in $(DIRS); do \ - CSC=$(CSC) $(MAKE) -C $$i windows || exit 1; \ - done; - -unix: - @echo "'make unix' is broken for now." - -linux: native binding - -binding: - for i in $(DIRS); do \ - MCS="$(MCS)" $(MAKE) -C $$i || exit 1;\ - done; - -native: - for i in $(NATIVE_DIRS); do \ - $(MAKE) -C $$i || exit 1; \ - done - -clean: - for i in $(NATIVE_DIRS) $(DIRS); do \ - $(MAKE) -C $$i clean || exit 1; \ - done; - -gen-clean: - for i in $(DIRS); do \ - $(MAKE) -C $$i clean || exit 1; \ - done; - -distclean: clean - for i in $(NATIVE_DIRS); do \ - $(MAKE) -C $$i distclean || exit 1; \ - done - for i in $(DIRS); do \ - $(MAKE) -C $$i distclean || true; \ - rm -f $$i/Makefile; \ - done - rm -f config.cache config.h config.log config.status libtool - rm -f gtk-sharp.pc - rm -f Makefile - -maintainer-clean: distclean - rm -f aclocal.m4 config.guess config.h.in config.sub - rm -f configure install-sh ltmain.sh missing - rm -f mkinstalldirs stamp-h glue/Makefile.in - -install: install-native install-binding install-pkgconfig - -install-binding: - for i in $(DIRS); do \ - $(MAKE) -C $$i install || exit 1; \ - done - -install-native: - for i in $(NATIVE_DIRS); do \ - $(MAKE) -C $$i install || exit 1; \ - done - -install-pkgconfig: - ./mkinstalldirs $(DESTDIR)@prefix@/lib/pkgconfig - cp gtk-sharp.pc $(DESTDIR)@prefix@/lib/pkgconfig diff --git a/NEWS b/NEWS new file mode 100644 index 000000000..867bafc57 --- /dev/null +++ b/NEWS @@ -0,0 +1 @@ +try CNN diff --git a/art/Makefile.am b/art/Makefile.am new file mode 100644 index 000000000..f89c3d44f --- /dev/null +++ b/art/Makefile.am @@ -0,0 +1,52 @@ +if ENABLE_LIBART +TARGET = $(ASSEMBLY) +APIS = $(API) $(ADDITIONAL_API) +else +TARGET = +APIS = +endif +API = art-api.xml +RAW_API = art-api.raw +ADDITIONAL_API = art-symbols.xml +INCLUDE_API = ../pango/pango-api.xml ../atk/atk-api.xml ../gdk/gdk-api.xml $(top_srcdir)/gdk/gdk-symbols.xml +METADATA = Art.metadata +ASSEMBLY_NAME = art-sharp +references = /r:../glib/glib-sharp.dll /r:../pango/pango-sharp.dll /r:../atk/atk-sharp.dll /r:../gdk/gdk-sharp.dll + +ASSEMBLY = $(ASSEMBLY_NAME).dll +assemblydir = $(libdir) +apidir = $(datadir)/gapi +assembly_DATA = $(TARGET) +api_DATA = $(APIS) +CLEANFILES = $(ASSEMBLY) generated-stamp generated/*.cs $(API) + +sources = + +build_sources = $(addprefix $(srcdir)/, $(sources)) +dist_sources = $(sources) + +customs = + +build_customs = $(addprefix $(srcdir)/, $(customs)) +dist_customs = $(customs) + +EXTRA_DIST = \ + $(RAW_API) \ + $(ADDITIONAL_API) \ + $(METADATA) \ + $(dist_customs) \ + $(dist_sources) + +$(API): $(srcdir)/$(RAW_API) $(srcdir)/$(METADATA) + cp $(srcdir)/$(RAW_API) $(API) + chmod u+w $(API) + $(RUNTIME) ../parser/gapi-fixup.exe --api=$(API) --metadata=$(srcdir)/$(METADATA) + +generated-stamp: $(API) $(srcdir)/$(ADDITIONAL_API) ../generator/gapi_codegen.exe $(build_customs) + $(RUNTIME) ../generator/gapi_codegen.exe --generate $(API) $(srcdir)/$(ADDITIONAL_API) \ + --include $(INCLUDE_API) --outdir=generated --customdir=$(srcdir) --assembly-name=$(ASSEMBLY_NAME) \ + && touch generated-stamp + +$(ASSEMBLY): $(build_sources) generated-stamp + $(CSC) --unsafe /out:$(ASSEMBLY) /target:library $(references) $(build_sources) generated/*.cs + diff --git a/art/Makefile.in b/art/Makefile.in deleted file mode 100755 index 5995bb054..000000000 --- a/art/Makefile.in +++ /dev/null @@ -1,42 +0,0 @@ -APIS=art-api.xml art-symbols.xml - -INCLUDE_APIS = ../atk/atk-api.xml \ - ../pango/pango-api.xml \ - ../gdk/gdk-api.xml \ - ../gdk/gdk-symbols.xml - -RUNTIME=@MONO@ -MCS=mcs -ASSEMBLY=art-sharp.dll - -all: $(ASSEMBLY) - -generated-stamp: $(APIS) ../generator/gapi_codegen.exe Art.metadata - $(RUNTIME) ../parser/gapi-fixup.exe --api=art-api.xml --metadata=Art.metadata && \ - $(RUNTIME) ../generator/gapi_codegen.exe --generate $(APIS) \ - --include $(INCLUDE_APIS) --outdir=generated --customdir=. \ - --assembly-name=art-sharp && touch generated-stamp - -$(ASSEMBLY): generated-stamp - $(MCS) --unsafe --target library \ - -r System.Drawing -r ../glib/glib-sharp.dll \ - -r ../pango/pango-sharp.dll -r ../atk/atk-sharp.dll \ - -r ../gdk/gdk-sharp.dll -o $(ASSEMBLY) --recurse '*.cs' - -clean: - rm -f generated-stamp - rm -f $(ASSEMBLY) - rm -rf generated - -prefix=@prefix@ -DESTDIR= -apidir=$(DESTDIR)$(prefix)/share/gapi -libdir=$(DESTDIR)$(prefix)/lib - -install: all - ../mkinstalldirs $(libdir) && \ - ../mkinstalldirs $(apidir) && \ - for i in $(APIS); do \ - cp $$i $(apidir) || true; \ - done && \ - cp $(ASSEMBLY) $(libdir) diff --git a/art/art-api.raw b/art/art-api.raw new file mode 100644 index 000000000..bef4873df --- /dev/null +++ b/art/art-api.raw @@ -0,0 +1,1069 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/art/art-api.xml b/art/art-api.xml deleted file mode 100644 index df8eb80e8..000000000 --- a/art/art-api.xml +++ /dev/null @@ -1,1068 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/atk/Makefile.am b/atk/Makefile.am new file mode 100644 index 000000000..f63c42d8f --- /dev/null +++ b/atk/Makefile.am @@ -0,0 +1,41 @@ +API = atk-api.xml +RAW_API = atk-api.raw +METADATA = Atk.metadata +ASSEMBLY_NAME = atk-sharp +references = /r:../glib/glib-sharp.dll + +ASSEMBLY = $(ASSEMBLY_NAME).dll +assemblydir = $(libdir) +gapidir = $(datadir)/gapi +assembly_DATA = $(ASSEMBLY) +gapi_DATA = $(API) +CLEANFILES = $(ASSEMBLY) generated-stamp generated/*.cs $(API) + +sources = + +build_sources = $(addprefix $(srcdir)/, $(sources)) + +customs = + +build_customs = $(addprefix $(srcdir)/, $(customs)) + +EXTRA_DIST = \ + makefile.win32 \ + $(RAW_API) \ + $(METADATA) \ + $(customs) \ + $(sources) + +$(API): $(srcdir)/$(RAW_API) $(srcdir)/$(METADATA) + cp $(srcdir)/$(RAW_API) $(API) + chmod u+w $(API) + $(RUNTIME) ../parser/gapi-fixup.exe --api=$(API) --metadata=$(srcdir)/$(METADATA) + +generated-stamp: $(API) ../generator/gapi_codegen.exe $(build_customs) + $(RUNTIME) ../generator/gapi_codegen.exe --generate $(API) \ + --outdir=generated --customdir=$(srcdir) --assembly-name=$(ASSEMBLY_NAME) \ + && touch generated-stamp + +$(ASSEMBLY): $(build_sources) generated-stamp + $(CSC) --unsafe /out:$(ASSEMBLY) /target:library $(references) $(build_sources) generated/*.cs + diff --git a/atk/Makefile.in b/atk/Makefile.in deleted file mode 100644 index 0b2c3112b..000000000 --- a/atk/Makefile.in +++ /dev/null @@ -1,38 +0,0 @@ -APIS= atk-api.xml - -INCLUDE_APIS = ../pango/pango-api.xml - -RUNTIME=@MONO@ -MCS=mcs -ASSEMBLY=atk-sharp.dll - -all: $(ASSEMBLY) - -generated-stamp: $(APIS) ../generator/gapi_codegen.exe Atk.metadata - $(RUNTIME) ../parser/gapi-fixup.exe --api=atk-api.xml --metadata=Atk.metadata && \ - $(RUNTIME) ../generator/gapi_codegen.exe --generate $(APIS) \ - --include $(INCLUDE_APIS) --outdir=generated --customdir=. \ - --assembly-name=atk-sharp && touch generated-stamp - -$(ASSEMBLY): generated-stamp - $(MCS) --unsafe --target library \ - -r ../glib/glib-sharp.dll -r ../pango/pango-sharp.dll \ - -o $(ASSEMBLY) --recurse '*.cs' - -clean: - rm -f generated-stamp - rm -f $(ASSEMBLY) - rm -rf generated - -prefix=@prefix@ -DESTDIR= -apidir=$(DESTDIR)$(prefix)/share/gapi -libdir=$(DESTDIR)$(prefix)/lib - -install: all - ../mkinstalldirs $(libdir) && \ - ../mkinstalldirs $(apidir) && \ - for i in $(APIS); do \ - cp $$i $(apidir) || true; \ - done && \ - cp $(ASSEMBLY) $(libdir) diff --git a/atk/atk-api.xml b/atk/atk-api.raw similarity index 52% rename from atk/atk-api.xml rename to atk/atk-api.raw index 92ec9d072..faf93b45f 100644 --- a/atk/atk-api.xml +++ b/atk/atk-api.raw @@ -1,5 +1,6 @@ - - - + + - + - - - + + + - - - - - - - - + + + + + + + + - - - - - - - - - - - - - + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - + + + + + + + - + - + - + - + - - + + - + - + - + - - + + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - + - + - + - - - + + + - + - - - - - + + + + + - + - + - + - - - + + + - + - - + + - + - + - + - - - + + + - + - + - + - - - - - + + + + + - + - - - + + + - + - - + + - - + + - + - + - + - - + + - + - - + + - + - - + + - + - + - - - + + + - + - + - + - - - + + + - + - + - + - + - + - + - + - + - + - + - - - + + + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - - + + + - + - - - + + + - + - - - + + + - + - - - + + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - + - + - + - - + + - + - + - + - + - + - + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - + - - + + - + - + - + - + - + - + - + - - + + - + - - + + - + - - + + - + - - + + - + - + - + - - - + + + - + - - + + - + - + - + - + - + - - + + - + - + - + - + - + - - + + - + - + - + - + - + - + - + - - - - - - + + + + + + - + - + - + - - - + + + - + - - - + + + - + - - - + + + - + - - + + - + - - - - + + + + - + - - - - + + + + - + - - - - + + + + - + - + - + - + - + - + - - - + + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - - - - - - - + + + + + + + + - + - + - + - + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - + - - - + + + - + - - + + - + - - + + - + - - - + + + - + - + - + - - + + - + - + - + - - + + - + - + - + - + - + - + - + - - + + - + - - + + - + - + - + - - - + + + - + - - + + - + - + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - + - + - + - + - + - + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - + - + - + - + - + - + - - + + - - + + - + - + - + - - - + + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - + - + - + - + - + - + - - + + - + - + - + - + - + - + - + - + - + - + - - + + - + - - + + - + - + - - - - + - - - - - - - + + + + + + + - - - + + + - + - + - + - + - - + + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - \ No newline at end of file + diff --git a/atk/makefile.win32 b/atk/makefile.win32 index a557afbac..7e2945ad7 100644 --- a/atk/makefile.win32 +++ b/atk/makefile.win32 @@ -10,8 +10,14 @@ windows: generated-stamp generated-stamp: ../generator/codegen.exe atk-api.xml ../generator/codegen --generate $(APIS) --outdir=generated --customdir=. --assembly-name=atk-sharp && touch generated-stamp +atk-api.xml: atk-api.raw Atk.metadata + cp atk-api.raw atk-api.xml + chmod u+w atk-api.xml + ../parser/gapi-fixup.exe --api=atk-api.xml --metadata=Atk.metadata + clean: rm -f generated-stamp rm -f $(ASSEMBLY) rm -rf generated + rm -f atk-api.xml diff --git a/configure.in b/configure.in index 0a7557340..341e67d7f 100644 --- a/configure.in +++ b/configure.in @@ -38,7 +38,6 @@ if test "x$PKG_CONFIG" = "xno"; then fi dnl for use on the build system -dnl pkg-config is stupid BUILD_GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` BUILD_GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` AC_SUBST(BUILD_GTK_CFLAGS) @@ -57,19 +56,44 @@ AC_ARG_WITH(crosspkgdir, [ --with-crosspkgdir=/path/to/pkg-config/dir], fi ) -PKG_CHECK_MODULES(MONO_DEPENDENCY, mono) +PKG_CHECK_MODULES(MONO_DEPENDENCY, mono, has_mono=true, has_mono=false) +if test "x$has_mono" = "xtrue"; then if test `uname -s` = "Darwin"; then - MONO=`which mint` + RUNTIME=`which mint` + CSC=`which mcs` else - MONO=`which mono` + RUNTIME=`which mono` + CSC=`which mcs` fi -AC_SUBST(MONO) +else +AC_PATH_PROG(CSC, csc.exe, $PATH) +if test x$CSC = ""; then + AC_MSG_ERROR([You need to install either mono or .Net]) +else +RUNTIME= +fi +fi +AC_SUBST(RUNTIME) +AC_SUBST(CSC) + +PKG_CHECK_MODULES(GLIB, glib-2.0) +AC_SUBST(GLIB_CFLAGS) +AC_SUBST(GLIB_LIBS) + +PKG_CHECK_MODULES(XML, libxml-2.0) +AC_SUBST(XML_CFLAGS) +AC_SUBST(XML_LIBS) ## Versions of dependencies -GNOME_REQUIRED_VERSION=2.0.0 +GNOME_REQUIRED_VERSION=2.2.0 GTK_REQUIRED_VERSION=2.2.0 -PKG_CHECK_MODULES(BASE_DEPENDENCIES, libgnomecanvas-2.0 >= $GNOME_REQUIRED_VERSION libgnomeui-2.0 >= $GNOME_REQUIRED_VERSION gtk+-2.0 >= $GTK_REQUIRED_VERSION gmodule-2.0 >= $GTK_REQUIRED_VERSION, enable_gnome=yes, enable_gnome=no) + +PKG_CHECK_MODULES(LIBART, libart-2.0 >= $GNOME_REQUIRED_VERSION, enable_libart=yes, enable_libart=no) +AC_SUBST(LIBART_CFLAGS) +AC_SUBST(LIBART_LIBS) + +PKG_CHECK_MODULES(BASE_DEPENDENCIES, libgnomecanvas-2.0 >= $GNOME_REQUIRED_VERSION libgnomeui-2.0 >= $GNOME_REQUIRED_VERSION gtk+-2.0 >= $GTK_REQUIRED_VERSION libgnomeprintui-2.2 >= $GNOME_REQUIRED_VERSION gmodule-2.0 >= $GTK_REQUIRED_VERSION, enable_gnome=yes, enable_gnome=no) if test "x$enable_gnome" = "xno"; then PKG_CHECK_MODULES(BASE_DEPENDENCIES, gtk+-2.0 >= $GTK_REQUIRED_VERSION gmodule-2.0 >= $GTK_REQUIRED_VERSION) @@ -120,6 +144,7 @@ fi AC_SUBST(BASE_DEPENDENCIES_CFLAGS) AC_SUBST(BASE_DEPENDENCIES_LIBS) +AM_CONDITIONAL(ENABLE_LIBART, test "x$enable_libart" = "xyes") AM_CONDITIONAL(ENABLE_GNOME, test "x$enable_gnome" = "xyes") AM_CONDITIONAL(ENABLE_GLADE, test "x$enable_glade" = "xyes") AM_CONDITIONAL(ENABLE_GDA, test "x$enable_gda" = "xyes") @@ -132,30 +157,41 @@ AM_CONDITIONAL(ENABLE_VTE, test "x$enable_vte" = "xyes") AC_SUBST(CFLAGS) AC_OUTPUT([ -glue/Makefile +sources/Makefile parser/Makefile +parser/GAPI/Makefile generator/Makefile generator/gapi-codegen glib/Makefile +glib/glue/Makefile pango/Makefile atk/Makefile art/Makefile gdk/Makefile +gdk/glue/Makefile gtk/Makefile +gtk/glue/Makefile glade/Makefile +glade/glue/Makefile gnome/Makefile +gnome/glue/Makefile gda/Makefile gnomedb/Makefile gconf/Makefile +gconf/doc/Makefile gconf/GConf/Makefile gconf/GConf.PropertyEditors/Makefile gconf/tools/Makefile -gst/Makefile +gconf/tools/gconfsharp-schemagen gtkhtml/Makefile rsvg/Makefile vte/Makefile +sample/GtkDemo/Makefile sample/Makefile +sample/gconf/Makefile +sample/pixmaps/Makefile sample/rsvg/Makefile +sample/test/Makefile gtk-sharp.pc parser/gapi.pc parser/gapi-fixup @@ -169,6 +205,7 @@ echo " * Installation prefix = $prefix" echo "" echo " Optional assemblies included in the build:" echo "" +echo " * art-sharp.dll: $enable_libart" echo " * gnome-sharp.dll: $enable_gnome" echo " * glade-sharp.dll: $enable_glade" echo " * gda-sharp.dll: $enable_gda" diff --git a/gconf/.cvsignore b/gconf/.cvsignore index f3c7a7c5d..282522db0 100644 --- a/gconf/.cvsignore +++ b/gconf/.cvsignore @@ -1 +1,2 @@ Makefile +Makefile.in diff --git a/gconf/GConf.PropertyEditors/.cvsignore b/gconf/GConf.PropertyEditors/.cvsignore index db954114f..f914cb467 100644 --- a/gconf/GConf.PropertyEditors/.cvsignore +++ b/gconf/GConf.PropertyEditors/.cvsignore @@ -1,2 +1,3 @@ Makefile +Makefile.in *.dll diff --git a/gconf/GConf.PropertyEditors/EditorShell.cs b/gconf/GConf.PropertyEditors/EditorShell.cs index 97f1b8fa1..153ab5495 100644 --- a/gconf/GConf.PropertyEditors/EditorShell.cs +++ b/gconf/GConf.PropertyEditors/EditorShell.cs @@ -53,8 +53,8 @@ namespace GConf.PropertyEditors if (control == null) throw new InvalidGladeKeyException (control_name); - if (control is Gnome.ColorPicker) - editor = new PropertyEditorColorPicker (key, (Gnome.ColorPicker) control); + //if (control is Gnome.ColorPicker) + //editor = new PropertyEditorColorPicker (key, (Gnome.ColorPicker) control); else if (control is Gnome.FileEntry) editor = new PropertyEditorFileEntry (key, (Gnome.FileEntry) control); else if (control is Gtk.SpinButton) diff --git a/gconf/GConf.PropertyEditors/Makefile.am b/gconf/GConf.PropertyEditors/Makefile.am new file mode 100644 index 000000000..0bb4781e5 --- /dev/null +++ b/gconf/GConf.PropertyEditors/Makefile.am @@ -0,0 +1,35 @@ +if ENABLE_GNOME +TARGET=$(ASSEMBLY) +else +TARGET= +endif + +ASSEMBLY = gconf-sharp-peditors.dll +assemblydir = $(libdir) +assembly_DATA = $(TARGET) +CLEANFILES = $(ASSEMBLY) + +EXTRA_DIST = \ + PropertyEditorColorPicker.cs \ + $(sources) + +references = \ + /r:../../glib/glib-sharp.dll /r:../../pango/pango-sharp.dll /r:../../atk/atk-sharp.dll /r:../../gdk/gdk-sharp.dll /r:../../gtk/gtk-sharp.dll /r:../../art/art-sharp.dll /r:../../gnome/gnome-sharp.dll /r:../../glade/glade-sharp.dll /r:../GConf/gconf-sharp.dll + +sources = \ + PropertyEditor.cs \ + PropertyEditorBool.cs \ + PropertyEditorEnum.cs \ + PropertyEditorEntry.cs \ + PropertyEditorFileEntry.cs \ + PropertyEditorOptionMenu.cs \ + PropertyEditorRadioButton.cs \ + PropertyEditorSpinButton.cs \ + PropertyEditorToggleButton.cs \ + EditorShell.cs + +build_sources = $(addprefix $(srcdir)/, $(sources)) + +$(ASSEMBLY): $(build_sources) + $(CSC) /out:$(ASSEMBLY) /target:library $(references) $(build_sources) + diff --git a/gconf/GConf.PropertyEditors/Makefile.in b/gconf/GConf.PropertyEditors/Makefile.in deleted file mode 100644 index c99bfec54..000000000 --- a/gconf/GConf.PropertyEditors/Makefile.in +++ /dev/null @@ -1,30 +0,0 @@ -MCS = mcs -DESTDIR = -prefix=@prefix@ - -SOURCES = \ - PropertyEditor.cs \ - PropertyEditorBool.cs \ - PropertyEditorColorPicker.cs \ - PropertyEditorEnum.cs \ - PropertyEditorEntry.cs \ - PropertyEditorFileEntry.cs \ - PropertyEditorOptionMenu.cs \ - PropertyEditorRadioButton.cs \ - PropertyEditorSpinButton.cs \ - PropertyEditorToggleButton.cs \ - EditorShell.cs \ - # - -all: gconf-sharp-peditors.dll - -gconf-sharp-peditors.dll: $(SOURCES) - $(MCS) $(SOURCES) -L ../../glib -L ../../pango -L ../../atk -L ../../gdk -L ../../gtk -L ../../art -L ../../gnome -L ../GConf -L ../../glade /r:glib-sharp.dll /r:pango-sharp.dll /r:atk-sharp.dll /r:gdk-sharp.dll /r:gtk-sharp.dll /r:art-sharp.dll /r:gnome-sharp.dll /r:glade-sharp.dll /r:gconf-sharp.dll /r:System.Drawing /target:library /out:gconf-sharp-peditors.dll - -install: all - ../../mkinstalldirs $(DESTDIR)$(prefix)/lib && \ - cp gconf-sharp-peditors.dll $(DESTDIR)$(prefix)/lib - -clean: - rm -f gconf-sharp-peditors.dll - diff --git a/gconf/GConf/Makefile.am b/gconf/GConf/Makefile.am new file mode 100644 index 000000000..b5dabd2e8 --- /dev/null +++ b/gconf/GConf/Makefile.am @@ -0,0 +1,27 @@ +ASSEMBLY = gconf-sharp.dll +assemblydir = $(libdir) +assembly_DATA = $(ASSEMBLY) +CLEANFILES = $(ASSEMBLY) + +EXTRA_DIST = \ + $(sources) + +references = \ + /r:../../glib/glib-sharp.dll + +sources = \ + ClientBase.cs \ + Client.cs \ + ChangeSet.cs \ + _Entry.cs \ + NoSuchKeyException.cs \ + NotifyEventArgs.cs \ + NotifyEventHandler.cs \ + NotifyWrapper.cs \ + Value.cs + +build_sources = $(addprefix $(srcdir)/, $(sources)) + +$(ASSEMBLY): $(build_sources) + $(CSC) /out:$(ASSEMBLY) /target:library $(references) $(build_sources) + diff --git a/gconf/GConf/Makefile.in b/gconf/GConf/Makefile.in deleted file mode 100644 index 19d6b1d64..000000000 --- a/gconf/GConf/Makefile.in +++ /dev/null @@ -1,28 +0,0 @@ -MCS = mcs -DESTDIR = -prefix=@prefix@ - -SOURCES = \ - ClientBase.cs \ - Client.cs \ - ChangeSet.cs \ - _Entry.cs \ - NoSuchKeyException.cs \ - NotifyEventArgs.cs \ - NotifyEventHandler.cs \ - NotifyWrapper.cs \ - Value.cs \ - # - -all: gconf-sharp.dll - -gconf-sharp.dll: $(SOURCES) - $(MCS) $(SOURCES) -L ../../glib /r:glib-sharp.dll /target:library /out:gconf-sharp.dll - -install: all - ../../mkinstalldirs $(DESTDIR)$(prefix)/lib && \ - cp gconf-sharp.dll $(DESTDIR)$(prefix)/lib - -clean: - rm -f gconf-sharp.dll - diff --git a/gconf/Makefile.am b/gconf/Makefile.am new file mode 100644 index 000000000..8cb708ad0 --- /dev/null +++ b/gconf/Makefile.am @@ -0,0 +1 @@ +SUBDIRS = GConf GConf.PropertyEditors tools doc diff --git a/gconf/Makefile.in b/gconf/Makefile.in deleted file mode 100644 index 041ff41be..000000000 --- a/gconf/Makefile.in +++ /dev/null @@ -1,24 +0,0 @@ -SUBDIRS = GConf GConf.PropertyEditors tools - -@ENABLE_GNOME_TRUE@ all: linux -@ENABLE_GNOME_FALSE@ all: - -linux: - for i in $(SUBDIRS); do \ - $(MAKE) -C $$i || exit 1; \ - done - -install: all - for i in $(SUBDIRS); do \ - $(MAKE) -C $$i install || exit 1; \ - done - -clean: - for i in $(SUBDIRS); do \ - $(MAKE) -C $$i clean || exit 1; \ - done - -distclean: clean - for i in $(SUBDIRS); do \ - rm -f $$i/Makefile; \ - done diff --git a/gconf/doc/.cvsignore b/gconf/doc/.cvsignore new file mode 100644 index 000000000..282522db0 --- /dev/null +++ b/gconf/doc/.cvsignore @@ -0,0 +1,2 @@ +Makefile +Makefile.in diff --git a/gconf/doc/Makefile.am b/gconf/doc/Makefile.am new file mode 100644 index 000000000..a74ac8f88 --- /dev/null +++ b/gconf/doc/Makefile.am @@ -0,0 +1 @@ +EXTRA_DIST = intro.html diff --git a/gconf/tools/.cvsignore b/gconf/tools/.cvsignore index 211d37060..f6f14de8b 100644 --- a/gconf/tools/.cvsignore +++ b/gconf/tools/.cvsignore @@ -1,3 +1,4 @@ Makefile +Makefile.in gconfsharp-schemagen *.exe diff --git a/gconf/tools/Makefile.am b/gconf/tools/Makefile.am new file mode 100644 index 000000000..335537e0d --- /dev/null +++ b/gconf/tools/Makefile.am @@ -0,0 +1,13 @@ +assemblydir = $(bindir) +assembly_DATA = gconfsharp-schemagen.exe +bin_SCRIPTS = gconfsharp-schemagen +CLEANFILES = gconfsharp-schemagen.exe +DISTCLEANFILES = gconfsharp-schemagen + +EXTRA_DIST = \ + schemagen.cs \ + gconfsharp-schemagen.in + +gconfsharp-schemagen.exe: $(srcdir)/schemagen.cs + $(CSC) /out:gconfsharp-schemagen.exe $(srcdir)/schemagen.cs + diff --git a/gconf/tools/Makefile.in b/gconf/tools/Makefile.in deleted file mode 100644 index eb83276f0..000000000 --- a/gconf/tools/Makefile.in +++ /dev/null @@ -1,27 +0,0 @@ -MCS = mcs -DESTDIR = -prefix=@prefix@ -bindir = $(prefix)/bin - -SOURCES = \ - schemagen.cs \ - # - -all: gconfsharp-schemagen.exe gconfsharp-schemagen - -gconfsharp-schemagen.exe: $(SOURCES) - $(MCS) /out:gconfsharp-schemagen.exe $(SOURCES) - -gconfsharp-schemagen: gconfsharp-schemagen.in - sed -e 's^\@bindir\@^$(bindir)^g' < gconfsharp-schemagen.in > gconfsharp-schemagen.tmp \ - && mv gconfsharp-schemagen.tmp gconfsharp-schemagen \ - && chmod +x gconfsharp-schemagen - -install: all - ../../mkinstalldirs $(DESTDIR)$(prefix)/bin && \ - chmod +x gconfsharp-schemagen && cp gconfsharp-schemagen.exe gconfsharp-schemagen $(DESTDIR)$(bindir) - -clean: - rm -f gconfsharp-schemagen.exe - rm -f gconfsharp-schemagen - diff --git a/gda/Makefile.am b/gda/Makefile.am new file mode 100644 index 000000000..fda4ea7a7 --- /dev/null +++ b/gda/Makefile.am @@ -0,0 +1,49 @@ +if ENABLE_GDA +TARGET = $(ASSEMBLY) +APIS = $(API) +else +TARGET = +APIS = +endif + +API = gda-api.xml +RAW_API = gda-api.raw +METADATA = Gda.metadata +ASSEMBLY_NAME = gda-sharp +references = /r:../glib/glib-sharp.dll + +ASSEMBLY = $(ASSEMBLY_NAME).dll +assemblydir = $(libdir) +gapidir = $(datadir)/gapi +assembly_DATA = $(TARGET) +gapi_DATA = $(APIS) +CLEANFILES = $(ASSEMBLY) generated-stamp generated/*.cs $(API) + +sources = \ + Application.cs + +build_sources = $(addprefix $(srcdir)/, $(sources)) + +customs = + +build_customs = $(addprefix $(srcdir)/, $(customs)) + +EXTRA_DIST = \ + $(RAW_API) \ + $(METADATA) \ + $(customs) \ + $(sources) + +$(API): $(srcdir)/$(srcdir)/$(METADATA) + cp $(srcdir)/$(RAW_API) $(API) + chmod u+w $(API) + $(RUNTIME) ../parser/gapi-fixup.exe --api=$(API) --metadata=$(srcdir)/$(METADATA) + +generated-stamp: $(API) ../generator/gapi_codegen.exe $(build_customs) + $(RUNTIME) ../generator/gapi_codegen.exe --generate $(API) \ + --outdir=generated --customdir=$(srcdir) --assembly-name=$(ASSEMBLY_NAME) \ + && touch generated-stamp + +$(ASSEMBLY): $(build_sources) generated-stamp + $(CSC) --unsafe /out:$(ASSEMBLY) /target:library $(references) $(build_sources) generated/*.cs + diff --git a/gda/Makefile.in b/gda/Makefile.in deleted file mode 100755 index 2d72197ac..000000000 --- a/gda/Makefile.in +++ /dev/null @@ -1,38 +0,0 @@ -APIS= gda-api.xml - -RUNTIME=@MONO@ -MCS=mcs -ASSEMBLY=gda-sharp.dll - -@ENABLE_GDA_TRUE@ all: $(ASSEMBLY) -@ENABLE_GDA_FALSE@ all: - -all: $(ASSEMBLY) - -generated-stamp: $(APIS) ../generator/gapi_codegen.exe Gda.metadata - $(RUNTIME) ../parser/gapi-fixup.exe --api=gda-api.xml --metadata=Gda.metadata && \ - $(RUNTIME) ../generator/gapi_codegen.exe \ - --generate $(APIS) --outdir=generated --customdir=. \ - --assembly-name=gda-sharp && touch generated-stamp - -$(ASSEMBLY): generated-stamp *.cs - $(MCS) --unsafe --target library \ - -r ../glib/glib-sharp.dll -o $(ASSEMBLY) --recurse '*.cs' - -clean: - rm -f generated-stamp - rm -f $(ASSEMBLY) - rm -rf generated - -prefix=@prefix@ -DESTDIR= -apidir=$(DESTDIR)$(prefix)/share/gapi -libdir=$(DESTDIR)$(prefix)/lib - -install: all -@ENABLE_GDA_TRUE@ ../mkinstalldirs $(libdir) && \ -@ENABLE_GDA_TRUE@ ../mkinstalldirs $(apidir) && \ -@ENABLE_GDA_TRUE@ for i in $(APIS); do \ -@ENABLE_GDA_TRUE@ cp $$i $(apidir) || true; \ -@ENABLE_GDA_TRUE@ done && \ -@ENABLE_GDA_TRUE@ cp $(ASSEMBLY) $(libdir) diff --git a/gda/gda-api.xml b/gda/gda-api.raw similarity index 52% rename from gda/gda-api.xml rename to gda/gda-api.raw index 1f2e61150..38bab8efc 100644 --- a/gda/gda-api.xml +++ b/gda/gda-api.raw @@ -1,5 +1,6 @@ - - - - + + + - - - - - - - + + + + + + + - - - + + + - - - - - - + + + + + + - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - - - - - - - - - - - - - - + + + + + + + + + + + + + + - + - - - - - + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - + - - + + - + - - - + + + - + - + - + - + - - - - + + + + - + - - - - + + + + - + - + - + - + - + - + - - - + + + - + - + - + - + - + - + - - + + - + - - - + + + - + - - + + - + - - + + - + - - + + - + - - - - + + + + - + - - - + + + - + - + - + - + - - + + - + - - + + - + - + - + - + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - + - - + + - + - - + + - + - + - + - + - + - + - + - + - + - - + + - + - + - + - + - - - - - - + + + + + + - + - + - + - + - + - + - - - + + + - + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - + - - + + - + - - + + - + - + - + - + - - + + - + - + - + - + - + - + - + - + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - - + + - + - + - + - + - + - + - + - + - + - - + - + - + - + - - + + - + - + - + - + - - + + - + - + - - - + + + - + - - + + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + -