gstreamer/sources/Makefile.am

94 lines
2.5 KiB
Makefile
Raw Normal View History

2013-06-17 14:23:54 +00:00
RAW_API = $(ASSEMBLY_NAME)-api.raw
API = $(ASSEMBLY_NAME)-api.xml
METADATA = $(ASSEMBLY_NAME).metadata
2014-08-06 21:21:40 +00:00
DLL = ../out/$(ASSEMBLY_NAME).dll
DLLMAP = ../out/$(ASSEMBLY_NAME).dll.config
2014-08-08 18:32:34 +00:00
MDB = $(DLL).mdb
2014-08-06 21:21:40 +00:00
GLUEDIR = glue
KEYFILE = $(ASSEMBLY_NAME).snk
2013-06-17 14:23:54 +00:00
GLUEINCLUDES = gst/gst.h,gst/app/app.h,gst/audio/audio.h,gst/base/base.h,gst/controller/controller.h,gst/fft/fft.h,gst/net/net.h\,gst/pbutils/gstaudiovisualizer.h,gst/pbutils/pbutils.h,gst/rtp/rtp.h,gst/rtsp/rtsp.h,gst/sdp/sdp.h,gst/tag/tag.h,gst/video/video.h
2014-08-09 21:09:40 +00:00
COMMA =,
SPACE = $(eval)
glue_list = gst/gst.h$(addprefix $(COMMA), $(GLUEINCLUDES))
2014-08-06 21:21:40 +00:00
sources = \
Adapter.cs \
Application.cs \
AppSink.cs \
AppSrc.cs \
AudioFilter.cs \
Bin.cs \
Buffer.cs \
Bus.cs \
Caps.cs \
DeviceProvider.cs \
DynamicSignal.cs \
Element.cs \
FFTF32.cs \
Iterator.cs \
MapInfo.cs \
Message.cs \
MiniObject.cs \
NavigationAdapter.cs \
Object.cs \
Pad.cs \
Pipeline.cs \
TagList.cs \
Value.cs \
Version.cs \
VideoGLUploadMeta.cs
2013-06-17 14:23:54 +00:00
2014-08-06 21:21:40 +00:00
build_sources = AssemblyInfo.cs $(addprefix $(srcdir)/custom/, $(sources))
2013-06-17 14:23:54 +00:00
2014-08-08 18:32:34 +00:00
CLEANFILES = $(DLL) $(MDB) generated-stamp generated/*/*.cs $(API) $(KEYFILE)
2013-06-17 14:23:54 +00:00
2014-08-06 21:21:40 +00:00
DISTCLEANFILES = AssemblyInfo.cs $(DLLMAP) $(DLL)
MAINTAINERCLEANFILES = \
Makefile.in
2013-06-17 14:23:54 +00:00
noinst_DATA = $(DLL)
2014-08-06 21:21:40 +00:00
gapi_DATA = $(API)
2013-06-17 14:23:54 +00:00
EXTRA_DIST = \
$(RAW_API) \
2014-08-06 21:21:40 +00:00
$(addprefix $(srcdir)/custom/, $(sources)) \
2013-06-17 14:23:54 +00:00
$(METADATA) \
AssemblyInfo.cs.in \
gstreamer-sharp-api.xml
2013-06-17 14:23:54 +00:00
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)
2014-03-16 23:14:48 +00:00
rm -rf generated/* && \
2014-07-20 01:52:58 +00:00
$(GAPI_CODEGEN) --generate $(srcdir)/$(API) $(GLIB_SHARP_CFLAGS) $(GIO_SHARP_CFLAGS) \
2013-06-17 14:23:54 +00:00
--outdir=generated \
--glue-filename=$(GLUEDIR)/generated.c --gluelib-name=libgstreamersharpglue-1.0.0.dll \
2014-08-09 21:09:40 +00:00
--glue-includes=$(glue_list) \
2013-06-17 14:23:54 +00:00
--assembly-name=$(ASSEMBLY_NAME) && touch generated-stamp
2014-08-06 21:21:40 +00:00
$(KEYFILE): $(top_srcdir)/gstreamer-sharp.snk
cp $(top_srcdir)/gstreamer-sharp.snk .
$(DLL): $(build_sources) generated-stamp $(KEYFILE)
test -d ../out || mkdir ../out
2014-08-08 18:32:34 +00:00
$(CSC) -debug -nowarn:169 -nowarn:108 -nowarn:114 -unsafe -target:library $(GLIB_SHARP_LIBS) $(GIO_SHARP_LIBS) \
2014-03-16 23:14:48 +00:00
$(build_sources) generated/*/*.cs -out:$(DLL)
2013-06-17 14:23:54 +00:00
install-data-local:
echo "$(GACUTIL) /i $(DLL) /f $(GACUTIL_FLAGS)"; \
2014-08-06 21:21:40 +00:00
$(GACUTIL) /i $(DLL) /f $(GACUTIL_FLAGS) || exit 1;
2013-06-17 14:23:54 +00:00
uninstall-local:
echo "$(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS)"; \
$(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS) || exit 1;
2014-03-16 23:14:48 +00:00
clean-local:
rm -rf generated/*