mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-25 01:25:39 +00:00
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
39 lines
1 KiB
Makefile
Executable file
39 lines
1 KiB
Makefile
Executable file
APIS= gda-api.xml
|
|
|
|
RUNTIME=mono
|
|
MCS=mcs
|
|
ASSEMBLY=gda-sharp.dll
|
|
|
|
@ENABLE_GDA_TRUE@ all: $(ASSEMBLY)
|
|
@ENABLE_GDA_FALSE@ all:
|
|
|
|
all: $(ASSEMBLY)
|
|
|
|
generated-stamp: $(APIS) ../generator/gapi_codegen.exe Gda.metadata
|
|
$(RUNTIME) ../parser/gapi-fixup.exe --api=gda-api.xml --metadata=Gda.metadata && \
|
|
$(RUNTIME) ../generator/gapi_codegen.exe \
|
|
--generate $(APIS) --outdir=generated --customdir=. \
|
|
--assembly-name=gda-sharp && touch generated-stamp
|
|
|
|
$(ASSEMBLY): generated-stamp *.cs
|
|
$(MCS) --unsafe --target library \
|
|
-r ../glib/glib-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_GDA_TRUE@ ../mkinstalldirs $(libdir) && \
|
|
@ENABLE_GDA_TRUE@ ../mkinstalldirs $(apidir) && \
|
|
@ENABLE_GDA_TRUE@ for i in $(APIS); do \
|
|
@ENABLE_GDA_TRUE@ cp $$i $(apidir) || true; \
|
|
@ENABLE_GDA_TRUE@ done && \
|
|
@ENABLE_GDA_TRUE@ cp $(ASSEMBLY) $(libdir)
|