Improve element bindings generation build system

This commit is contained in:
Sebastian Dröge 2009-05-31 21:20:22 +02:00
parent d17ba74fdc
commit e7a1bc7e93
3 changed files with 13 additions and 10 deletions

View file

@ -56,8 +56,9 @@ sources = \
NavigationMessage.cs \ NavigationMessage.cs \
NavigationEvent.cs \ NavigationEvent.cs \
NavigationQuery.cs \ NavigationQuery.cs \
coreplugins/*.cs \ coreplugins/generated/*.cs \
baseplugins/*.cs baseplugins/generated/*.cs \
coreplugins/*.cs
overrides = \ overrides = \
override/URIHandlerAdapter.cs \ override/URIHandlerAdapter.cs \
@ -140,10 +141,10 @@ generated-stamp: $(API) $(build_customs) $(overrides)
&& mv generated/ObjectManager.cs.tmp generated/ObjectManager.cs \ && mv generated/ObjectManager.cs.tmp generated/ObjectManager.cs \
&& touch generated-stamp && touch generated-stamp
coreplugins/*.cs: $(API) coreplugins/*.metadata coreplugins/inspect/*.raw coreplugins/generated/*.cs: $(API) coreplugins/*.metadata coreplugins/inspect/*.raw
$(MAKE) -C coreplugins $(MAKE) -C coreplugins
baseplugins/*.cs: $(API) baseplugins/*.custom baseplugins/*.metadata baseplugins/inspect/*.raw baseplugins/generated/*.cs: $(API) baseplugins/*.custom baseplugins/*.metadata baseplugins/inspect/*.raw
$(MAKE) -C baseplugins $(MAKE) -C baseplugins
$(KEYFILE): $(top_srcdir)/gstreamer-sharp.snk $(KEYFILE): $(top_srcdir)/gstreamer-sharp.snk

View file

@ -4,7 +4,7 @@ NAMESPACE = Gst.BasePlugins
INSPECT_FILES = $(patsubst %,inspect/%.raw,$(ELEMENTS)) INSPECT_FILES = $(patsubst %,inspect/%.raw,$(ELEMENTS))
CUSTOM_FILES = playbin.custom CUSTOM_FILES = playbin.custom
METADATA_FILES = decodebin.metadata playbin.metadata decodebin2.metadata playbin2.metadata METADATA_FILES = decodebin.metadata playbin.metadata decodebin2.metadata playbin2.metadata
CS_FILES = $(patsubst %,%.cs,$(ELEMENTS)) CS_FILES = $(patsubst %,generated/%.cs,$(ELEMENTS))
XML_FILES = $(patsubst %,%.xml,$(ELEMENTS)) XML_FILES = $(patsubst %,%.xml,$(ELEMENTS))
EXTRA_DIST = $(CUSTOM_FILES) $(INSPECT_FILES) EXTRA_DIST = $(CUSTOM_FILES) $(INSPECT_FILES)
@ -16,9 +16,10 @@ inspect-%:
all: $(XML_FILES) $(CS_FILES) all: $(XML_FILES) $(CS_FILES)
%.cs: $(top_builddir)/elementgen/element-gen.exe $(CUSTOM_FILES) $(XML_FILES) generated/%.cs: $(top_builddir)/elementgen/element-gen.exe $(CUSTOM_FILES) $(XML_FILES)
mkdir -p generated
$(MONO) $(top_builddir)/elementgen/element-gen.exe --namespace=$(NAMESPACE) \ $(MONO) $(top_builddir)/elementgen/element-gen.exe --namespace=$(NAMESPACE) \
--api=$(srcdir)/../gstreamer-api.xml --input=$(patsubst %.cs,%,$@) > $@ --api=$(srcdir)/../gstreamer-api.xml --input=$(patsubst generated/%.cs,%,$@) > $@
%.xml: $(top_builddir)/parser/gst-gapi-fixup.exe $(INSPECT_FILES) $(METADATA_FILES) %.xml: $(top_builddir)/parser/gst-gapi-fixup.exe $(INSPECT_FILES) $(METADATA_FILES)
cp $(patsubst %.xml,inspect/%.raw,$@) $@ cp $(patsubst %.xml,inspect/%.raw,$@) $@

View file

@ -7,7 +7,7 @@ METADATA_FILES = typefind.metadata \
fakesrc.metadata \ fakesrc.metadata \
fakesink.metadata \ fakesink.metadata \
identity.metadata identity.metadata
CS_FILES = $(patsubst %,%.cs,$(ELEMENTS)) CS_FILES = $(patsubst %,generated/%.cs,$(ELEMENTS))
OTHER_CS_FILES = memindex.cs \ OTHER_CS_FILES = memindex.cs \
fileindex.cs fileindex.cs
XML_FILES = $(patsubst %,%.xml,$(ELEMENTS)) XML_FILES = $(patsubst %,%.xml,$(ELEMENTS))
@ -21,9 +21,10 @@ inspect-%:
all: $(XML_FILES) $(CS_FILES) all: $(XML_FILES) $(CS_FILES)
%.cs: $(top_builddir)/elementgen/element-gen.exe $(CUSTOM_FILES) $(XML_FILES) generated/%.cs: $(top_builddir)/elementgen/element-gen.exe $(CUSTOM_FILES) $(XML_FILES)
mkdir -p generated
$(MONO) $(top_builddir)/elementgen/element-gen.exe --namespace=$(NAMESPACE) \ $(MONO) $(top_builddir)/elementgen/element-gen.exe --namespace=$(NAMESPACE) \
--api=$(srcdir)/../gstreamer-api.xml --input=$(patsubst %.cs,%,$@) > $@ --api=$(srcdir)/../gstreamer-api.xml --input=$(patsubst generated/%.cs,%,$@) > $@
%.xml: $(top_builddir)/parser/gst-gapi-fixup.exe $(INSPECT_FILES) $(METADATA_FILES) %.xml: $(top_builddir)/parser/gst-gapi-fixup.exe $(INSPECT_FILES) $(METADATA_FILES)
cp $(patsubst %.xml,inspect/%.raw,$@) $@ cp $(patsubst %.xml,inspect/%.raw,$@) $@