2009-11-25 09:07:42 +00:00
|
|
|
ELEMENTS = ximagesink xvimagesink decodebin2 playbin2
|
2009-05-26 13:32:27 +00:00
|
|
|
|
2009-05-27 18:58:19 +00:00
|
|
|
NAMESPACE = Gst.BasePlugins
|
2009-09-03 07:28:43 +00:00
|
|
|
INSPECT_FILES = $(patsubst %,$(srcdir)/inspect/%.raw,$(ELEMENTS))
|
2009-11-25 09:07:42 +00:00
|
|
|
METADATA_FILES = $(srcdir)/decodebin2.metadata $(srcdir)/playbin2.metadata
|
2009-09-03 07:28:43 +00:00
|
|
|
CS_FILES = $(patsubst %,$(builddir)/generated/%.cs,$(ELEMENTS))
|
|
|
|
XML_FILES = $(patsubst %,$(builddir)/%.xml,$(ELEMENTS))
|
2009-05-26 13:32:27 +00:00
|
|
|
|
2009-11-25 09:07:42 +00:00
|
|
|
EXTRA_DIST = $(METADATA_FILES) $(INSPECT_FILES)
|
2009-05-27 18:58:19 +00:00
|
|
|
CLEANFILES = $(XML_FILES) $(CS_FILES)
|
2009-12-05 09:14:17 +00:00
|
|
|
MAINTAINERCLEANFILES = Makefile.in
|
2009-05-26 13:32:27 +00:00
|
|
|
|
2009-09-11 08:29:15 +00:00
|
|
|
plugins-update: $(patsubst $(srcdir)/inspect/%.raw, inspect-%, $(INSPECT_FILES))
|
2009-05-30 11:49:04 +00:00
|
|
|
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-11-25 09:07:42 +00:00
|
|
|
generated/%.cs: $(top_builddir)/elementgen/element-gen.exe $(top_builddir)/gstreamer-sharp/gstreamer-api.xml $(builddir)/%.xml
|
2009-06-05 05:03:45 +00:00
|
|
|
@mkdir -p generated
|
2009-05-27 18:58:19 +00:00
|
|
|
$(MONO) $(top_builddir)/elementgen/element-gen.exe --namespace=$(NAMESPACE) \
|
2009-09-03 08:21:50 +00:00
|
|
|
--api=$(top_builddir)/gstreamer-sharp/gstreamer-api.xml --input=$(patsubst generated/%.cs,$(builddir)/%.xml,$@) --customfile=$(patsubst generated/%.cs,$(srcdir)/%.custom,$@) --interfacesdir=$(top_srcdir)/elementgen/interfaces > $@
|
2009-05-27 18:58:19 +00:00
|
|
|
|
2009-09-03 07:28:43 +00:00
|
|
|
%.xml: $(top_builddir)/parser/gst-gapi-fixup.exe $(srcdir)/inspect/%.raw $(srcdir)/%.metadata
|
2009-09-03 08:21:50 +00:00
|
|
|
cp $(patsubst %.xml,$(srcdir)/inspect/%.raw,$@) $(builddir)/$@
|
|
|
|
chmod +w $(builddir)/$@
|
|
|
|
$(MONO) $(top_builddir)/parser/gst-gapi-fixup.exe --api=$(builddir)/$@ --metadata=$(patsubst %.xml,$(srcdir)/%.metadata,$@)
|
2009-05-26 13:32:27 +00:00
|
|
|
|
2009-09-03 08:21:50 +00:00
|
|
|
%.xml: $(top_builddir)/parser/gst-gapi-fixup.exe $(srcdir)/inspect/%.raw
|
|
|
|
cp $(patsubst %.xml,$(srcdir)/inspect/%.raw,$@) $(builddir)/$@
|