2003-10-10 18:58:19 +00:00
|
|
|
ASSEMBLY=gtk-sharp.dll
|
|
|
|
APIS=gtk-api.xml gtk-symbols.xml
|
|
|
|
I_APIS=../atk/atk-api.xml ../pango/pango-api.xml ../gdk/gdk-api.xml ../gdk/gdk-symbols.xml
|
|
|
|
|
2002-05-02 21:57:41 +00:00
|
|
|
all: windows
|
|
|
|
|
2003-10-10 18:58:19 +00:00
|
|
|
windows: generated-stamp
|
|
|
|
$(CSC) /unsafe /nowarn:0660,0661 /target:library /r:../glib/glib-sharp.dll /r:../pango/pango-sharp.dll /r:../atk/atk-sharp.dll /r:../gdk/gdk-sharp.dll /out:$(ASSEMBLY) /recurse:*.cs
|
2005-03-25 18:31:10 +00:00
|
|
|
../gapi-cdecl-insert --keyfile=gtk-sharp.snk gtk-sharp.dll
|
2004-03-12 21:18:11 +00:00
|
|
|
cd glue && make -f makefile.win32
|
2003-10-10 18:58:19 +00:00
|
|
|
|
|
|
|
generated-stamp: ../generator/codegen.exe $(APIS) $(I_APIS) *.custom
|
2005-05-16 19:07:27 +00:00
|
|
|
../generator/codegen --generate $(APIS) --include $(I_APIS) --outdir=generated --customdir=. --assembly-name=gtk-sharp --gluelib-name=gtksharpglue-2 --glue-filename=glue/generated.c --glue-includes=gtk/gtk.h && touch generated-stamp
|
2002-06-22 22:12:51 +00:00
|
|
|
|
2004-03-12 21:18:11 +00:00
|
|
|
gtk-api.xml: gtk-api.raw Gtk.metadata
|
|
|
|
cp gtk-api.raw gtk-api.xml
|
|
|
|
chmod u+w gtk-api.xml
|
|
|
|
../parser/gapi-fixup.exe --api=gtk-api.xml --metadata=Gtk.metadata
|
|
|
|
|
2003-10-10 18:58:19 +00:00
|
|
|
clean:
|
|
|
|
rm -f generated-stamp
|
|
|
|
rm -f $(ASSEMBLY)
|
|
|
|
rm -rf generated
|
2004-03-12 21:18:11 +00:00
|
|
|
rm -f gtk-api.xml
|
|
|
|
cd glue && make -f makefile.win32 clean
|
2002-05-02 21:57:41 +00:00
|
|
|
|