2003-10-09 22:29:59 +00:00
|
|
|
APIS= rsvg-api.xml
|
2003-02-27 05:16:47 +00:00
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
INCLUDE_APIS = ../atk/atk-api.xml \
|
|
|
|
../pango/pango-api.xml \
|
|
|
|
../gdk/gdk-api.xml \
|
|
|
|
../gdk/gdk-symbols.xml \
|
|
|
|
../gtk/gtk-api.xml \
|
|
|
|
../gtk/gtk-symbols.xml \
|
|
|
|
../art/art-api.xml
|
2003-02-27 05:16:47 +00:00
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
RUNTIME=mono
|
|
|
|
MCS=mcs
|
|
|
|
ASSEMBLY=rsvg-sharp.dll
|
2003-02-27 05:16:47 +00:00
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
@ENABLE_RSVG_TRUE@ all: $(ASSEMBLY)
|
|
|
|
@ENABLE_RSVG_FALSE@ all:
|
2003-02-27 05:16:47 +00:00
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
generated-stamp: $(APIS) ../generator/gapi_codegen.exe
|
|
|
|
$(RUNTIME) ../generator/gapi_codegen.exe --generate $(APIS) \
|
|
|
|
--include $(INCLUDE_APIS) --outdir=generated --customdir=. \
|
|
|
|
--assembly-name=rsvg-sharp && touch generated-stamp
|
|
|
|
|
|
|
|
$(ASSEMBLY): *.cs generated-stamp
|
|
|
|
$(MCS) --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 \
|
|
|
|
-r ../gtk/gtk-sharp.dll -r ../art/art-sharp.dll \
|
|
|
|
-o $(ASSEMBLY) --recurse '*.cs'
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f generated-stamp
|
|
|
|
rm -f $(ASSEMBLY)
|
2003-02-27 05:16:47 +00:00
|
|
|
rm -rf generated
|
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
prefix=@prefix@
|
|
|
|
DESTDIR=
|
|
|
|
apidir=$(DESTDIR)$(prefix)/share/gapi
|
|
|
|
libdir=$(DESTDIR)$(prefix)/lib
|
2003-02-27 05:16:47 +00:00
|
|
|
|
|
|
|
install: all
|
2003-10-09 22:29:59 +00:00
|
|
|
@ENABLE_RSVG_TRUE@ ../mkinstalldirs $(libdir) && \
|
|
|
|
@ENABLE_RSVG_TRUE@ for i in $(APIS); do \
|
|
|
|
@ENABLE_RSVG_TRUE@ cp $$i $(apidir) || true; \
|
|
|
|
@ENABLE_RSVG_TRUE@ done && \
|
|
|
|
@ENABLE_RSVG_TRUE@ cp $(ASSEMBLY) $(libdir)
|