mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-24 16:45:35 +00:00
6e44bd8cdb
* art/Art.metadata : new xpath metadata rules * art/Makefile.in : apply metadata before generation * atk/Atk.metadata : new xpath metadata rules * atk/Makefile.in : apply metadata before generation * gda/Gda.metadata : new xpath metadata rules * gda/Makefile.in : apply metadata before generation * gdk/Gdk.metadata : new xpath metadata rules * gdk/Makefile.in : apply metadata before generation * gnomedb/GnomeDb.metadata : new xpath metadata rules * gnomedb/Makefile.in : apply metadata before generation * pango/Pango.metadata : new xpath metadata rules * pango/Makefile.in : apply metadata before generation * parser/Makefile.in : build and install new gapi-fixup * parser/gapi-fixup.cs : new xpath based metadata engine * sources/*.metadata : remove most of the old metadata, still have to convert Gtk and Gnome to xpaths. svn path=/trunk/gtk-sharp/; revision=18947
38 lines
969 B
Makefile
38 lines
969 B
Makefile
APIS= atk-api.xml
|
|
|
|
INCLUDE_APIS = ../pango/pango-api.xml
|
|
|
|
RUNTIME=mono
|
|
MCS=mcs
|
|
ASSEMBLY=atk-sharp.dll
|
|
|
|
all: $(ASSEMBLY)
|
|
|
|
generated-stamp: $(APIS) ../generator/gapi_codegen.exe Atk.metadata
|
|
$(RUNTIME) ../parser/gapi-fixup.exe --api=atk-api.xml --metadata=Atk.metadata && \
|
|
$(RUNTIME) ../generator/gapi_codegen.exe --generate $(APIS) \
|
|
--include $(INCLUDE_APIS) --outdir=generated --customdir=. \
|
|
--assembly-name=art-sharp && touch generated-stamp
|
|
|
|
$(ASSEMBLY): generated-stamp
|
|
$(MCS) --unsafe -nowarn:0660,0661 --target library \
|
|
-r ../glib/glib-sharp.dll -r ../pango/pango-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
|
|
../mkinstalldirs $(libdir) && \
|
|
for i in $(APIS); do \
|
|
cp $$i $(apidir) || true; \
|
|
done && \
|
|
cp $(ASSEMBLY) $(libdir)
|