mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-26 00:35:34 +00:00
f91aeb5425
* atk/Makefile.in : fix copy/paste error in --assembly-name. * generator/ObjectGen.cs : rework ObjectManager generation code. * glade/Makefile.in : fix copy/paste error in --assembly-name. svn path=/trunk/gtk-sharp/; revision=22865
39 lines
985 B
Makefile
39 lines
985 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=atk-sharp && touch generated-stamp
|
|
|
|
$(ASSEMBLY): generated-stamp
|
|
$(MCS) --unsafe --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) && \
|
|
../mkinstalldirs $(apidir) && \
|
|
for i in $(APIS); do \
|
|
cp $$i $(apidir) || true; \
|
|
done && \
|
|
cp $(ASSEMBLY) $(libdir)
|