32f12c714b
* */Makefile.in : remove the nowarns * gdk/Rectangle.custom : add System.Drawing.Rect implicit cast op. * sample/Size.cs : use System.Drawing.Rectangles * sample/GnomeHelloWorld.cs : remove an unneeded null check svn path=/trunk/gtk-sharp/; revision=20612
47 lines
1.4 KiB
Makefile
Executable file
47 lines
1.4 KiB
Makefile
Executable file
APIS= gtkhtml-api.xml
|
|
|
|
INCLUDE_APIS = ../atk/atk-api.xml \
|
|
../pango/pango-api.xml \
|
|
../gdk/gdk-api.xml \
|
|
../gdk/gdk-symbols.xml \
|
|
../gtk/gtk-symbols.xml \
|
|
../gtk/gtk-api.xml \
|
|
../gnome/gnome-api.xml
|
|
|
|
RUNTIME=mono
|
|
MCS=mcs
|
|
ASSEMBLY=gtkhtml-sharp.dll
|
|
|
|
@ENABLE_GTKHTML_TRUE@ all: $(ASSEMBLY)
|
|
@ENABLE_GTKHTML_FALSE@ all:
|
|
|
|
generated-stamp: gtkhtml-api.xml *.custom ../generator/gapi_codegen.exe Gtk.metadata
|
|
$(RUNTIME) ../parser/gapi-fixup.exe --api=gtkhtml-api.xml --metadata=Gtk.metadata && \
|
|
$(RUNTIME) ../generator/gapi_codegen.exe --generate $(APIS) \
|
|
--include $(INCLUDE_APIS) --outdir=generated --customdir=. \
|
|
--assembly-name=gtkhtml-sharp && touch generated-stamp
|
|
|
|
$(ASSEMBLY): generated-stamp
|
|
$(MCS) --unsafe --target library \
|
|
-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 -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_GTKHTML_TRUE@ ../mkinstalldirs $(libdir) && \
|
|
@ENABLE_GTKHTML_TRUE@ ../mkinstalldirs $(apidir) && \
|
|
@ENABLE_GTKHTML_TRUE@ for i in $(APIS); do \
|
|
@ENABLE_GTKHTML_TRUE@ cp $$i $(apidir) || true; \
|
|
@ENABLE_GTKHTML_TRUE@ done && \
|
|
@ENABLE_GTKHTML_TRUE@ cp $(ASSEMBLY) $(libdir)
|