2003-10-09 22:29:59 +00:00
|
|
|
APIS= gst-api.xml
|
2002-11-01 05:10:00 +00:00
|
|
|
|
2004-03-10 15:57:33 +00:00
|
|
|
RUNTIME=@MONO@
|
2003-10-09 22:29:59 +00:00
|
|
|
MCS=mcs
|
|
|
|
ASSEMBLY=gst-sharp.dll
|
2002-11-01 05:10:00 +00:00
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
all: $(ASSEMBLY)
|
2002-11-01 05:10:00 +00:00
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
generated-stamp: $(APIS) ../generator/gapi_codegen.exe
|
2003-11-04 21:56:24 +00:00
|
|
|
$(RUNTIME) ../parser/gapi-fixup.exe --api=gst-api.xml --metadata=Gst.metadata && \
|
2003-10-09 22:29:59 +00:00
|
|
|
$(RUNTIME) ../generator/gapi_codegen.exe --generate $(APIS) \
|
|
|
|
--outdir=generated --customdir=. --assembly-name=gst-sharp \
|
|
|
|
&& touch generated-stamp
|
2002-11-01 05:10:00 +00:00
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
$(ASSEMBLY): *.cs generated-stamp
|
2003-11-29 23:48:14 +00:00
|
|
|
$(MCS) --unsafe --target library \
|
2003-10-09 22:29:59 +00:00
|
|
|
-r glib-sharp.dll -o $(ASSEMBLY) --recurse '*.cs'
|
2002-11-01 05:10:00 +00:00
|
|
|
|
|
|
|
clean:
|
2003-10-09 22:29:59 +00:00
|
|
|
rm -f generated-stamp
|
|
|
|
rm -f $(ASSEMBLY)
|
2002-11-01 05:10:00 +00:00
|
|
|
rm -rf generated
|
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
prefix=@prefix@
|
|
|
|
DESTDIR=
|
|
|
|
apidir=$(DESTDIR)$(prefix)/share/gapi
|
|
|
|
libdir=$(DESTDIR)$(prefix)/lib
|
|
|
|
|
2002-11-01 05:10:00 +00:00
|
|
|
install: all
|
2003-10-09 22:29:59 +00:00
|
|
|
../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)
|
2002-11-01 05:10:00 +00:00
|
|
|
|