2009-05-28 09:21:29 +00:00
|
|
|
ELEMENTS = decodebin playbin xvimagesink decodebin2 playbin2
|
2009-05-26 13:32:27 +00:00
|
|
|
|
2009-05-27 18:58:19 +00:00
|
|
|
NAMESPACE = Gst.BasePlugins
|
|
|
|
INSPECT_FILES = $(patsubst %,inspect/%.raw,$(ELEMENTS))
|
2009-05-28 10:29:59 +00:00
|
|
|
CUSTOM_FILES = playbin.custom
|
2009-05-28 09:21:29 +00:00
|
|
|
METADATA_FILES = decodebin.metadata playbin.metadata decodebin2.metadata playbin2.metadata
|
2009-05-27 18:58:19 +00:00
|
|
|
CS_FILES = $(patsubst %,%.cs,$(ELEMENTS))
|
|
|
|
XML_FILES = $(patsubst %,%.xml,$(ELEMENTS))
|
2009-05-26 13:32:27 +00:00
|
|
|
|
2009-05-27 18:58:19 +00:00
|
|
|
EXTRA_DIST = $(CUSTOM_FILES) $(INSPECT_FILES)
|
|
|
|
CLEANFILES = $(XML_FILES) $(CS_FILES)
|
2009-05-26 13:32:27 +00:00
|
|
|
|
2009-05-30 11:49:04 +00:00
|
|
|
plugins-update: $(patsubst inspect/%.raw, inspect-%, $(INSPECT_FILES))
|
|
|
|
inspect-%:
|
|
|
|
$(top_builddir)/elementgen/gsts-xmlinspect $(patsubst inspect-%,%,$@) > inspect/$(patsubst inspect-%,%,$@).raw
|
2009-05-26 13:32:27 +00:00
|
|
|
|
2009-05-27 18:58:19 +00:00
|
|
|
all: $(XML_FILES) $(CS_FILES)
|
|
|
|
|
|
|
|
%.cs: $(top_builddir)/elementgen/element-gen.exe $(CUSTOM_FILES) $(XML_FILES)
|
|
|
|
$(MONO) $(top_builddir)/elementgen/element-gen.exe --namespace=$(NAMESPACE) \
|
|
|
|
--api=$(srcdir)/../gstreamer-api.xml --input=$(patsubst %.cs,%,$@) > $@
|
|
|
|
|
|
|
|
%.xml: $(top_builddir)/parser/gst-gapi-fixup.exe $(INSPECT_FILES) $(METADATA_FILES)
|
|
|
|
cp $(patsubst %.xml,inspect/%.raw,$@) $@
|
|
|
|
if [ -e $(patsubst %.xml,%.metadata,$@) ]; then \
|
|
|
|
$(MONO) $(top_builddir)/parser/gst-gapi-fixup.exe --api=$@ \
|
|
|
|
--metadata=$(patsubst %.xml,%.metadata,$@) ; \
|
|
|
|
fi
|
2009-05-26 13:32:27 +00:00
|
|
|
|