2013-06-17 14:23:54 +00:00
|
|
|
RAW_API = $(ASSEMBLY_NAME)-api.raw
|
|
|
|
API = $(ASSEMBLY_NAME)-api.xml
|
|
|
|
METADATA = $(ASSEMBLY_NAME).metadata
|
|
|
|
DLL = $(top_srcdir)/out/$(ASSEMBLY_NAME).dll
|
|
|
|
DLLMAP = $(top_srcdir)/out/$(ASSEMBLY_NAME).dll.config
|
2013-07-19 12:58:37 +00:00
|
|
|
GLUEDIR = $(srcdir)/glue
|
2013-06-17 14:23:54 +00:00
|
|
|
|
2013-07-11 13:20:51 +00:00
|
|
|
sources = custom/*.cs
|
2013-06-17 14:23:54 +00:00
|
|
|
|
|
|
|
build_sources = AssemblyInfo.cs $(sources)
|
|
|
|
|
|
|
|
CLEANFILES = $(DLL) generated-stamp generated/*.cs $(API)
|
|
|
|
|
|
|
|
DISTCLEANFILES = AssemblyInfo.cs $(DLLMAP)
|
|
|
|
|
|
|
|
noinst_DATA = $(DLL)
|
|
|
|
|
|
|
|
EXTRA_DIST = \
|
|
|
|
$(RAW_API) \
|
|
|
|
$(sources) \
|
|
|
|
$(METADATA) \
|
|
|
|
AssemblyInfo.cs.in \
|
|
|
|
$(ASSEMBLY_NAME).snk
|
|
|
|
|
|
|
|
all: generated-stamp $(ASSEMBLY)
|
|
|
|
|
|
|
|
$(API): $(srcdir)/$(RAW_API) $(srcdir)/$(METADATA)
|
|
|
|
cp $(srcdir)/$(RAW_API) $(API)
|
|
|
|
chmod u+w $(API)
|
|
|
|
$(GAPI_FIXUP) --api=$(srcdir)/$(API) --metadata=$(srcdir)/$(METADATA)
|
|
|
|
|
|
|
|
generated-stamp: $(API)
|
2013-10-10 09:44:39 +00:00
|
|
|
$(GAPI_CODEGEN) --generate $(srcdir)/$(API) $(GLIB_SHARP_CFLAGS) \
|
2013-06-17 14:23:54 +00:00
|
|
|
--outdir=generated \
|
2013-11-02 12:49:51 +00:00
|
|
|
--glue-filename=$(GLUEDIR)/generated.c --gluelib-name=libgstreamersharpglue-1.0.0.dll \
|
2013-11-02 11:22:51 +00:00
|
|
|
--glue-includes=gst/gst.h,`cd $(GST_INCLUDEDIR);find gst -type f | tr "\n" ","` \
|
2013-06-17 14:23:54 +00:00
|
|
|
--assembly-name=$(ASSEMBLY_NAME) && touch generated-stamp
|
|
|
|
|
|
|
|
$(DLL): $(build_sources) generated-stamp
|
2013-10-10 09:44:39 +00:00
|
|
|
$(CSC) -nowarn:169 -unsafe -target:library $(GLIB_SHARP_LIBS) \
|
2013-06-17 14:23:54 +00:00
|
|
|
$(build_sources) generated/*.cs -out:$(DLL)
|
|
|
|
|
|
|
|
install-data-local:
|
|
|
|
echo "$(GACUTIL) /i $(DLL) /f $(GACUTIL_FLAGS)"; \
|
|
|
|
$(GACUTIL) /i $(DLL) /f $(GACUTIL_FLAGS) || exit 1;
|
|
|
|
|
|
|
|
uninstall-local:
|
|
|
|
echo "$(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS)"; \
|
|
|
|
$(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS) || exit 1;
|