mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-09 00:13:20 +02:00
![Mike Kestner](/assets/img/avatar_default.png)
* */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
41 lines
1.0 KiB
Makefile
Executable File
41 lines
1.0 KiB
Makefile
Executable File
APIS= gdk-api.xml gdk-symbols.xml
|
|
|
|
INCLUDE_APIS = ../atk/atk-api.xml \
|
|
../pango/pango-api.xml
|
|
|
|
RUNTIME=mono
|
|
MCS=mcs
|
|
ASSEMBLY=gdk-sharp.dll
|
|
|
|
all: $(ASSEMBLY)
|
|
|
|
generated-stamp: $(APIS) *.custom ../generator/gapi_codegen.exe Gdk.metadata
|
|
$(RUNTIME) ../parser/gapi-fixup.exe --api=gdk-api.xml --metadata=Gdk.metadata && \
|
|
$(RUNTIME) ../generator/gapi_codegen.exe --generate $(APIS) \
|
|
--include $(INCLUDE_APIS) --outdir=generated --customdir=. \
|
|
--assembly-name=gdk-sharp && touch generated-stamp
|
|
|
|
$(ASSEMBLY): *.cs generated-stamp
|
|
$(MCS) --unsafe --target library \
|
|
-r System.Drawing -r ../glib/glib-sharp.dll \
|
|
-r ../pango/pango-sharp.dll -r ../atk/atk-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); \
|
|
done && \
|
|
cp $(ASSEMBLY) $(libdir)
|