[Gtk-sharp-list] Re: GTK# GL widget

Emilio Jesús Gallego Arias egallego at babel.ls.fi.upm.es
Sat Nov 19 17:41:16 EST 2005


Sorry as always I forgot the attachments!

-------------- next part --------------
MONODIR=/usr/lib/mono/gtk-sharp-2.0
L_DEPS=-r:$(MONODIR)/glib-sharp.dll -r:$(MONODIR)/gdk-sharp.dll -r:$(MONODIR)/pango-sharp.dll -r:$(MONODIR)/gtk-sharp.dll

ASSEMBLIES= \
	$(L_DEPS) \
	-r:/usr/lib/mono/1.0/System.Drawing.dll \
	-r ../gdkgl/gdkgl-sharp.dll 
#	-r System.Drawing.dll 
LIBRARY = gtkgl-sharp.dll

MCS = mcs

all: $(LIBRARY)

$(LIBRARY): *.cs
	$(MCS) --target library $(ASSEMBLIES) '*.cs' -o $(LIBRARY)

PREFIX= /usr/local

install:
	install -o root -g root -m 644 $(LIBRARY) $(PREFIX)/lib

clean:
	rm -f $(LIBRARY)
-------------- next part --------------
APIS = gdkgl-api.xml
GAPI_DIR=/usr/share/gapi-2.0/
GTK_SHARP_DIR = ../../gtk-sharp
INCLUDE_APIS = 	$(GAPI_DIR)/gdk-api.xml \
	        $(GAPI_DIR)/pango-api.xml 
MONODIR=/usr/lib/mono/gtk-sharp-2.0
L_DEPS=-r:$(MONODIR)/glib-sharp.dll -r:$(MONODIR)/gdk-sharp.dll -r:$(MONODIR)/pango-sharp.dll

RUNTIME = mono
MCS = mcs
ASSEMBLY = gdkgl-sharp.dll

all: $(ASSEMBLY)

generated-stamp: $(APIS) *.custom GdkGL.metadata
	gapi2-fixup --api=gdkgl-api.xml --metadata=GdkGL.metadata
	gapi2-codegen --generate $(APIS) --include $(INCLUDE_APIS) \
		--outdir=generated --customdir=. --assembly-name=gdkgl-sharp 
	touch generated-stamp

$(ASSEMBLY): *.cs generated-stamp
	$(MCS) -unsafe -nowarn:0660,0661 -target:library 	\
		$(L_DEPS) \
		-out:$(ASSEMBLY) -recurse:'*.cs'

clean:
	rm -f generated-stamp
	rm -f $(ASSEMBLY)
	rm -rf generated

DESTDIR = /usr/local
apidir = $(DESTDIR)/share/gapi
libdir = $(DESTDIR)/lib

install: all
	$(GTK_SHARP_DIR)/mkinstalldirs $(libdir) &&		\
	$(GTK_SHARP_DIR)/mkinstalldirs $(apidir) &&		\
	for i in $(APIS); do                    \
		cp $$i $(apidir) || true;       \
	done && 				\
	cp $(ASSEMBLY) $(libdir)


More information about the Gtk-sharp-list mailing list