2003-12-01 04:43:20 +00:00
|
|
|
APIS=art-api.xml art-symbols.xml
|
2002-08-15 16:44:41 +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
|
|
|
|
|
|
|
|
RUNTIME=mono
|
|
|
|
MCS=mcs
|
|
|
|
ASSEMBLY=art-sharp.dll
|
2002-08-15 16:44:41 +00:00
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
all: $(ASSEMBLY)
|
2002-08-15 16:44:41 +00:00
|
|
|
|
2003-10-13 03:06:22 +00:00
|
|
|
generated-stamp: $(APIS) ../generator/gapi_codegen.exe Art.metadata
|
|
|
|
$(RUNTIME) ../parser/gapi-fixup.exe --api=art-api.xml --metadata=Art.metadata && \
|
2003-10-09 22:29:59 +00:00
|
|
|
$(RUNTIME) ../generator/gapi_codegen.exe --generate $(APIS) \
|
|
|
|
--include $(INCLUDE_APIS) --outdir=generated --customdir=. \
|
|
|
|
--assembly-name=art-sharp && touch generated-stamp
|
2002-08-15 16:44:41 +00:00
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
$(ASSEMBLY): generated-stamp
|
2003-11-29 23:48:14 +00:00
|
|
|
$(MCS) --unsafe --target library \
|
2003-10-09 22:29:59 +00:00
|
|
|
-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'
|
2002-08-15 16:44:41 +00:00
|
|
|
|
|
|
|
clean:
|
2003-10-09 22:29:59 +00:00
|
|
|
rm -f generated-stamp
|
|
|
|
rm -f $(ASSEMBLY)
|
2002-08-23 21:22:16 +00:00
|
|
|
rm -rf generated
|
2002-08-15 16:44:41 +00:00
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
prefix=@prefix@
|
|
|
|
DESTDIR=
|
|
|
|
apidir=$(DESTDIR)$(prefix)/share/gapi
|
|
|
|
libdir=$(DESTDIR)$(prefix)/lib
|
2002-08-15 16:44:41 +00:00
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
install: all
|
|
|
|
../mkinstalldirs $(libdir) && \
|
2003-10-28 20:03:29 +00:00
|
|
|
../mkinstalldirs $(apidir) && \
|
2003-10-09 22:29:59 +00:00
|
|
|
for i in $(APIS); do \
|
|
|
|
cp $$i $(apidir) || true; \
|
|
|
|
done && \
|
|
|
|
cp $(ASSEMBLY) $(libdir)
|