2009-05-28 09:04:35 +00:00
|
|
|
ELEMENTS = capsfilter fakesrc fakesink fdsrc fdsink filesrc filesink identity queue tee typefind multiqueue
|
2009-05-26 13:32:27 +00:00
|
|
|
|
2009-05-27 18:58:19 +00:00
|
|
|
NAMESPACE = Gst.CorePlugins
|
|
|
|
INSPECT_FILES = $(patsubst %,inspect/%.raw,$(ELEMENTS))
|
2009-05-27 19:37:56 +00:00
|
|
|
CUSTOM_FILES =
|
2009-05-28 09:04:35 +00:00
|
|
|
METADATA_FILES = typefind.metadata \
|
|
|
|
fakesrc.metadata \
|
|
|
|
fakesink.metadata \
|
|
|
|
identity.metadata
|
2009-05-31 19:20:22 +00:00
|
|
|
CS_FILES = $(patsubst %,generated/%.cs,$(ELEMENTS))
|
2009-05-30 19:48:40 +00:00
|
|
|
OTHER_CS_FILES = memindex.cs \
|
2009-05-30 12:05:13 +00:00
|
|
|
fileindex.cs
|
2009-05-27 18:58:19 +00:00
|
|
|
XML_FILES = $(patsubst %,%.xml,$(ELEMENTS))
|
2009-05-26 13:32:27 +00:00
|
|
|
|
2009-05-30 19:48:40 +00:00
|
|
|
EXTRA_DIST = $(CUSTOM_FILES) $(INSPECT_FILES) $(OTHER_CS_FILES)
|
2009-05-27 18:58:19 +00:00
|
|
|
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)
|
2009-06-05 05:03:45 +00:00
|
|
|
touch generated
|
2009-05-27 18:58:19 +00:00
|
|
|
|
2009-06-05 05:03:45 +00:00
|
|
|
generated/%.cs: $(top_builddir)/elementgen/element-gen.exe $(srcdir)/../gstreamer-api.xml $(CUSTOM_FILES) %.xml
|
|
|
|
@mkdir -p generated
|
2009-05-27 18:58:19 +00:00
|
|
|
$(MONO) $(top_builddir)/elementgen/element-gen.exe --namespace=$(NAMESPACE) \
|
2009-05-31 19:20:22 +00:00
|
|
|
--api=$(srcdir)/../gstreamer-api.xml --input=$(patsubst generated/%.cs,%,$@) > $@
|
2009-05-27 18:58:19 +00:00
|
|
|
|
2009-06-05 05:03:45 +00:00
|
|
|
%.xml: $(top_builddir)/parser/gst-gapi-fixup.exe inspect/%.raw %.metadata
|
|
|
|
cp $(patsubst %.xml,inspect/%.raw,$@) $@
|
|
|
|
$(MONO) $(top_builddir)/parser/gst-gapi-fixup.exe --api=$@ --metadata=$(patsubst %.xml,%.metadata,$@)
|
|
|
|
|
|
|
|
%.xml: $(top_builddir)/parser/gst-gapi-fixup.exe inspect/%.raw
|
2009-05-27 18:58:19 +00:00
|
|
|
cp $(patsubst %.xml,inspect/%.raw,$@) $@
|
2009-05-26 13:32:27 +00:00
|
|
|
|