mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +00:00
593a106149
Executables on Windows have a .exe extension, so don't hardcode gsts-xmlinspect in TARGETS, but let automake figure it out. Add Makefile.in to MAINTAINERCLEANFILES. Fix typo in glue/Makefile.am.
31 lines
1.6 KiB
Makefile
31 lines
1.6 KiB
Makefile
ELEMENTS = ximagesink xvimagesink decodebin2 playbin2
|
|
|
|
NAMESPACE = Gst.BasePlugins
|
|
INSPECT_FILES = $(patsubst %,$(srcdir)/inspect/%.raw,$(ELEMENTS))
|
|
METADATA_FILES = $(srcdir)/decodebin2.metadata $(srcdir)/playbin2.metadata
|
|
CS_FILES = $(patsubst %,$(builddir)/generated/%.cs,$(ELEMENTS))
|
|
XML_FILES = $(patsubst %,$(builddir)/%.xml,$(ELEMENTS))
|
|
|
|
EXTRA_DIST = $(METADATA_FILES) $(INSPECT_FILES)
|
|
CLEANFILES = $(XML_FILES) $(CS_FILES)
|
|
MAINTAINERCLEANFILES = Makefile.in
|
|
|
|
plugins-update: $(patsubst $(srcdir)/inspect/%.raw, inspect-%, $(INSPECT_FILES))
|
|
inspect-%:
|
|
$(top_builddir)/elementgen/gsts-xmlinspect $(patsubst inspect-%,%,$@) > inspect/$(patsubst inspect-%,%,$@).raw
|
|
|
|
all: $(XML_FILES) $(CS_FILES)
|
|
touch generated
|
|
|
|
generated/%.cs: $(top_builddir)/elementgen/element-gen.exe $(top_builddir)/gstreamer-sharp/gstreamer-api.xml $(builddir)/%.xml
|
|
@mkdir -p generated
|
|
$(MONO) $(top_builddir)/elementgen/element-gen.exe --namespace=$(NAMESPACE) \
|
|
--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 > $@
|
|
|
|
%.xml: $(top_builddir)/parser/gst-gapi-fixup.exe $(srcdir)/inspect/%.raw $(srcdir)/%.metadata
|
|
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,$@)
|
|
|
|
%.xml: $(top_builddir)/parser/gst-gapi-fixup.exe $(srcdir)/inspect/%.raw
|
|
cp $(patsubst %.xml,$(srcdir)/inspect/%.raw,$@) $(builddir)/$@
|