2006-05-19 19:24:35 +00:00
|
|
|
SUBDIRS = . glue
|
|
|
|
|
|
|
|
TARGET = $(ASSEMBLY)
|
|
|
|
noinst_DATA = $(TARGET)
|
|
|
|
APIS = $(API)
|
|
|
|
API = gstreamer-api.xml
|
|
|
|
RAW_API = gstreamer-api.raw
|
|
|
|
METADATA = Gstreamer.metadata
|
2006-05-20 22:35:40 +00:00
|
|
|
SYMBOLS=gstreamer-symbols.xml
|
2006-05-19 19:24:35 +00:00
|
|
|
ASSEMBLY_NAME = gstreamer-sharp
|
|
|
|
references = $(GLIBSHARP_LIBS)
|
|
|
|
KEYFILE = gstreamer-sharp.snk
|
|
|
|
|
|
|
|
ASSEMBLY = $(ASSEMBLY_NAME).dll
|
|
|
|
gapidir = $(datadir)/gapi
|
|
|
|
gapi_DATA = $(APIS)
|
|
|
|
|
2009-04-04 12:18:34 +00:00
|
|
|
glue_includes="gst/gst.h"
|
2006-05-19 19:24:35 +00:00
|
|
|
|
|
|
|
CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb generated-stamp generated/*.cs glue/generated.c $(API) $(KEYFILE)
|
|
|
|
DISTCLEANFILES = $(ASSEMBLY).config AssemblyInfo.cs
|
|
|
|
MAINTAINERCLEANFILES = Makefile.in
|
|
|
|
|
|
|
|
install-data-local:
|
|
|
|
@if test -n '$(TARGET)'; then \
|
|
|
|
echo "$(GACUTIL) /i $(ASSEMBLY) /f $(GACUTIL_FLAGS)"; \
|
|
|
|
$(GACUTIL) /i $(ASSEMBLY) /f $(GACUTIL_FLAGS) || exit 1; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
uninstall-local:
|
|
|
|
@if test -n '$(TARGET)'; then \
|
|
|
|
echo "$(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS)"; \
|
|
|
|
$(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS) || exit 1; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
clean-local:
|
|
|
|
rm -rf generated
|
|
|
|
|
2006-05-21 18:58:44 +00:00
|
|
|
sources = \
|
2006-07-12 22:47:30 +00:00
|
|
|
DynamicSignal.cs \
|
2006-07-13 16:16:51 +00:00
|
|
|
BindingHelper.cs \
|
2006-05-21 18:58:44 +00:00
|
|
|
Application.cs \
|
2006-05-20 22:35:40 +00:00
|
|
|
Version.cs \
|
2006-05-21 18:58:44 +00:00
|
|
|
AssemblyInfo.cs \
|
2009-04-07 09:02:08 +00:00
|
|
|
GError.cs \
|
2009-04-11 15:52:50 +00:00
|
|
|
Value.cs \
|
2009-04-28 19:03:44 +00:00
|
|
|
GstSharp.PadQueryTypeFunctionNative.cs \
|
2009-04-30 11:10:15 +00:00
|
|
|
PadQueryTypeFunction.cs \
|
2009-05-06 10:25:02 +00:00
|
|
|
TypeFindDelegates.cs \
|
2009-05-06 12:09:23 +00:00
|
|
|
PresetDefault.cs \
|
|
|
|
coreplugins/*.cs \
|
|
|
|
baseplugins/*.cs
|
2006-05-19 19:24:35 +00:00
|
|
|
|
2009-05-04 10:27:25 +00:00
|
|
|
overrides = \
|
|
|
|
override/URIHandlerAdapter.cs
|
|
|
|
|
2006-05-19 19:24:35 +00:00
|
|
|
build_sources = $(addprefix $(srcdir)/, $(sources))
|
|
|
|
|
|
|
|
customs = \
|
|
|
|
Bin.custom \
|
2009-04-08 07:29:38 +00:00
|
|
|
Buffer.custom \
|
2006-05-19 19:24:35 +00:00
|
|
|
Bus.custom \
|
2006-08-20 22:37:48 +00:00
|
|
|
Caps.custom \
|
2006-05-19 19:24:35 +00:00
|
|
|
Clock.custom \
|
2009-05-07 07:42:17 +00:00
|
|
|
ClockEntry.custom \
|
2006-05-19 19:24:35 +00:00
|
|
|
Debug.custom \
|
|
|
|
Element.custom \
|
|
|
|
Message.custom \
|
2009-04-23 12:32:08 +00:00
|
|
|
Event.custom \
|
2006-08-05 21:07:11 +00:00
|
|
|
Pad.custom \
|
2009-04-08 08:12:48 +00:00
|
|
|
Parse.custom \
|
2009-04-04 11:33:40 +00:00
|
|
|
Object.custom \
|
2009-04-15 12:40:09 +00:00
|
|
|
PadTemplate.custom \
|
2009-04-27 10:08:40 +00:00
|
|
|
Plugin.custom \
|
2009-04-27 10:34:20 +00:00
|
|
|
Task.custom \
|
2009-04-08 07:29:38 +00:00
|
|
|
MiniObject.custom \
|
2009-04-30 13:13:31 +00:00
|
|
|
IndexEntry.custom \
|
|
|
|
Index.custom \
|
2009-05-07 07:42:17 +00:00
|
|
|
IndexFactory.custom \
|
2009-04-11 18:07:03 +00:00
|
|
|
Registry.custom \
|
2009-04-22 17:08:00 +00:00
|
|
|
Query.custom \
|
2009-04-18 14:43:15 +00:00
|
|
|
Structure.custom \
|
2009-04-21 12:31:29 +00:00
|
|
|
Tag.custom \
|
2009-04-30 11:10:15 +00:00
|
|
|
TagList.custom \
|
2009-05-07 07:42:17 +00:00
|
|
|
TypeFind.custom \
|
|
|
|
TypeFindFactory.custom
|
2006-05-19 19:24:35 +00:00
|
|
|
|
|
|
|
build_customs = $(addprefix $(srcdir)/, $(customs))
|
|
|
|
|
|
|
|
EXTRA_DIST = \
|
|
|
|
$(RAW_API) \
|
|
|
|
$(SYMBOLS) \
|
|
|
|
$(METADATA) \
|
|
|
|
$(customs) \
|
2009-05-04 10:27:25 +00:00
|
|
|
$(sources) \
|
|
|
|
$(overrides) \
|
2006-05-19 19:24:35 +00:00
|
|
|
$(ASSEMBLY).config.in
|
|
|
|
|
|
|
|
$(API): $(srcdir)/$(RAW_API) $(srcdir)/$(METADATA) $(srcdir)/$(SYMBOLS)
|
|
|
|
cp $(srcdir)/$(RAW_API) $(API)
|
|
|
|
chmod u+w $(API)
|
2009-04-07 07:45:54 +00:00
|
|
|
$(MONO) $(top_builddir)/parser/gst-gapi-fixup.exe --api=$(API) --metadata=$(srcdir)/$(METADATA) \
|
|
|
|
--symbols=$(srcdir)/$(SYMBOLS)
|
2006-05-19 19:24:35 +00:00
|
|
|
|
2009-05-04 10:27:25 +00:00
|
|
|
generated-stamp: $(API) $(GAPI_CODEGEN) $(build_customs) $(overrides)
|
2006-05-19 19:24:35 +00:00
|
|
|
$(GAPI_CODEGEN) --generate $(API) \
|
2009-04-07 07:45:54 +00:00
|
|
|
--outdir=generated --customdir=$(srcdir) --assembly-name=$(ASSEMBLY_NAME) \
|
|
|
|
--gluelib-name=gstreamersharpglue-0.10 --glue-filename=glue/generated.c \
|
|
|
|
--glue-includes=$(glue_includes) \
|
2009-05-04 10:27:25 +00:00
|
|
|
&& cp $(overrides) $(builddir)/generated \
|
2006-05-19 19:24:35 +00:00
|
|
|
&& touch generated-stamp
|
|
|
|
|
|
|
|
$(KEYFILE): $(top_srcdir)/gstreamer-sharp.snk
|
|
|
|
cp $(top_srcdir)/gstreamer-sharp.snk .
|
|
|
|
|
|
|
|
$(ASSEMBLY): $(build_sources) generated-stamp $(KEYFILE)
|
|
|
|
$(CSC) /nowarn:0612 /debug /unsafe /out:$(ASSEMBLY) /target:library $(references) $(build_sources) $(GENERATED_SOURCES)
|
|
|
|
|