blob: 9a978a13150340f93bb8ce257704456f2d958fc8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
|
SUBDIRS = . glue coreplugins baseplugins
TARGET = $(ASSEMBLY)
noinst_DATA = $(TARGET)
APIS = $(API)
API = gstreamer-api.xml
RAW_API = gstreamer-api.raw
METADATA = Gstreamer.metadata
SYMBOLS=gstreamer-symbols.xml
ASSEMBLY_NAME = gstreamer-sharp
references = $(GLIBSHARP_LIBS)
KEYFILE = gstreamer-sharp.snk
ASSEMBLY = $(ASSEMBLY_NAME).dll
gapidir = $(datadir)/gapi
gapi_DATA = $(APIS)
glue_includes="gst/gst.h gst/interfaces/colorbalance.h gst/interfaces/colorbalancechannel.h gst/interfaces/tuner.h gst/interfaces/tunerchannel.h gst/interfaces/tunernorm.h"
CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb $(ASSEMBLY_NAME).pdb 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
sources = \
DynamicSignal.cs \
Application.cs \
Version.cs \
AssemblyInfo.cs \
GError.cs \
Value.cs \
PropertyInfo.cs \
EnumInfo.cs \
Iterator.cs \
MiniObject.cs \
Marshaller.cs \
GstSharp.PadQueryTypeFunctionNative.cs \
PadQueryTypeFunction.cs \
TypeFindDelegates.cs \
PresetDefault.cs \
MixerMessage.cs \
NavigationMessage.cs \
NavigationEvent.cs \
NavigationQuery.cs \
coreplugins/generated/*.cs \
baseplugins/generated/*.cs \
coreplugins/*.cs
overrides = \
override/URIHandlerAdapter.cs \
override/ColorBalanceAdapter.cs \
override/ColorBalance.cs \
override/Mixer.cs \
override/MixerAdapter.cs \
override/PropertyProbe.cs \
override/PropertyProbeAdapter.cs \
override/ProbeNeededHandler.cs \
override/NavigationAdapter.cs
build_sources = $(addprefix $(srcdir)/, $(sources))
if USE_MONO_COMPILER
csc_build_sources = $(build_sources)
else
csc_build_sources = $(subst /,\\,$(build_sources))
endif
customs = \
Bin.custom \
Buffer.custom \
Bus.custom \
Caps.custom \
ColorBalanceChannel.custom \
Clock.custom \
ClockEntry.custom \
Debug.custom \
Element.custom \
ElementFactory.custom \
Message.custom \
Event.custom \
Pad.custom \
Parse.custom \
Object.custom \
PadTemplate.custom \
Plugin.custom \
Task.custom \
IndexEntry.custom \
Index.custom \
IndexFactory.custom \
Registry.custom \
Query.custom \
Structure.custom \
Tag.custom \
TagList.custom \
TypeFind.custom \
TypeFindFactory.custom \
MixerTrack.custom \
TunerNorm.custom \
TunerChannel.custom \
Adapter.custom \
Controller.custom \
ControlSource.custom
build_customs = $(addprefix $(srcdir)/, $(customs))
EXTRA_DIST = \
$(RAW_API) \
$(SYMBOLS) \
$(METADATA) \
$(customs) \
$(sources) \
$(overrides) \
$(ASSEMBLY).config.in
$(API): $(srcdir)/$(RAW_API) $(srcdir)/$(METADATA) $(srcdir)/$(SYMBOLS)
cp $(srcdir)/$(RAW_API) $(API)
chmod u+w $(API)
$(MONO) $(top_builddir)/parser/gst-gapi-fixup.exe --api=$(API) --metadata=$(srcdir)/$(METADATA) \
--symbols=$(srcdir)/$(SYMBOLS)
generated-stamp: $(API) $(build_customs) $(overrides)
$(MONO) $(top_builddir)/generator/gst-gapi_codegen.exe --generate $(API) \
--outdir=generated --customdir=$(srcdir) --assembly-name=$(ASSEMBLY_NAME) \
--gluelib-name=gstreamersharpglue-0.10.dll --glue-filename=glue/generated.c \
--glue-includes=$(glue_includes) \
&& cp $(overrides) $(builddir)/generated \
&& sed 's;public class ObjectManager;internal class ObjectManager;g' generated/ObjectManager.cs > generated/ObjectManager.cs.tmp \
&& mv generated/ObjectManager.cs.tmp generated/ObjectManager.cs \
&& touch generated-stamp
coreplugins/generated/*.cs: $(API) coreplugins/*.metadata coreplugins/inspect/*.raw
$(MAKE) -C coreplugins
baseplugins/generated/*.cs: $(API) baseplugins/*.custom baseplugins/*.metadata baseplugins/inspect/*.raw
$(MAKE) -C baseplugins
$(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) $(csc_build_sources) $(GENERATED_SOURCES)
plugins-update:
$(MAKE) -C coreplugins plugins-update
$(MAKE) -C baseplugins plugins-update
|