2003-11-04 John Luke <jluke@cfl.rr.com>

* sources/makefile: add gstreamer 0.6.4 sources
	* sources/gstreamer-parse.patch: fixes to parse gst
	* gst/Gst.metadata: new metadata
	* gst/Makefile.in: add gapi-fixup to Makefile
	* gst/gst-api.xml: new api file for 0.6.4

svn path=/trunk/gtk-sharp/; revision=19625
This commit is contained in:
John Luke 2003-11-04 21:56:24 +00:00
parent 39b871d786
commit 6272b94c05
8 changed files with 2910 additions and 1619 deletions

View file

@ -1,3 +1,11 @@
2003-11-04 John Luke <jluke@cfl.rr.com>
* sources/makefile: add gstreamer 0.6.4 sources
* sources/gstreamer-parse.patch: fixes to parse gst
* gst/Gst.metadata: new metadata
* gst/Makefile.in: add gapi-fixup to Makefile
* gst/gst-api.xml: new api file for 0.6.4
2003-11-02 Mike Kestner <mkestner@ximian.com>
* generator/CallbackGen.cs : use a temporary ret value if there

10
gst/Element.custom Normal file
View file

@ -0,0 +1,10 @@
//
// Element.custom
//
// This code is inserted after the automatically generated code.
//
public void SetProperty(string property_name, string value) {
GLib.Value val = new GLib.Value (value);
gst_element_set_property(Handle, property_name, val.Handle);
}

14
gst/Gst.metadata Normal file
View file

@ -0,0 +1,14 @@
<?xml version="1.0"?>
<metadata>
<attr path="//object[@name='Statistics']/signal[@cname='update']" name="name">UpdateEvent</attr>
<attr path="//struct[@cname='GstEvent']/field[@type='GstEventType']" name="cname">event_type</attr>
<attr path="//struct[@cname='GstEvent']/field[@type='GstSeekType']" name="cname">seek_type</attr>
<!-- Autoplug class/object conflicts -->
<move-node path="//class[@cname='GstAutoplug_']/method">//object[@cname='GstAutoplug']</move-node>
<attr path="//class[@cname='GstAutoplug_']" name="hidden">1</attr>
<!-- Temporarily disabled -->
<attr path="//object[@cname='GstIndex']/property[@cname='resolver']" name="hidden">1</attr>
<attr path="//object[@cname='GstRealPad']/property[@cname='caps']" name="hidden">1</attr>
</metadata>

View file

@ -7,12 +7,13 @@ ASSEMBLY=gst-sharp.dll
all: $(ASSEMBLY)
generated-stamp: $(APIS) ../generator/gapi_codegen.exe
$(RUNTIME) ../parser/gapi-fixup.exe --api=gst-api.xml --metadata=Gst.metadata && \
$(RUNTIME) ../generator/gapi_codegen.exe --generate $(APIS) \
--outdir=generated --customdir=. --assembly-name=gst-sharp \
&& touch generated-stamp
$(ASSEMBLY): *.cs generated-stamp
$(MCS) --unsafe --target library \
$(MCS) --unsafe -nowarn:0660,0661 --target library \
-r glib-sharp.dll -o $(ASSEMBLY) --recurse '*.cs'
clean:

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,19 @@
Index: gstreamer-0.6.4/gst/gstatomic_impl.h
===================================================================
@@ -323,7 +323,7 @@
}
/***** MIPS *****/
-#elif defined(HAVE_CPU_MIPS) && defined(__GNUC__)
+#elif defined(HAVE_CPU_MIPS) && defined(__GNUC__) && 0
GST_INLINE_FUNC void gst_atomic_int_init (GstAtomicInt *aint, gint val) { aint->counter = val; }
GST_INLINE_FUNC void gst_atomic_int_destroy (GstAtomicInt *aint) { }
@@ -375,7 +375,6 @@
/***** S/390 *****/
#elif defined(HAVE_CPU_S390) && defined(__GNUC__)
-typedef struct { volatile int counter; } atomic_t __attribute__ ((aligned (4)));
GST_INLINE_FUNC void gst_atomic_int_init (GstAtomicInt *aint, gint val) { aint->counter = val; }
GST_INLINE_FUNC void gst_atomic_int_destroy (GstAtomicInt *aint) { }

View file

@ -98,7 +98,11 @@
<api filename="../gst/gst-api.xml">
<library name="gstreamer">
<namespace name="Gst">
<dir>gstreamer-0.4.2/gst</dir>
<dir>gstreamer-0.6.4/gst</dir>
<dir>gstreamer-0.6.4/gst/autoplug</dir>
<dir>gstreamer-0.6.4/gst/elements</dir>
<dir>gstreamer-0.6.4/gst/registries</dir>
<dir>gstreamer-0.6.4/gst/schedulers</dir>
</namespace>
</library>
</api>

View file

@ -10,7 +10,6 @@ DOWNLOADS = \
http://ftp.gnome.org/pub/GNOME/desktop/2.0/2.0.0/sources/libglade-2.0.0.tar.gz \
http://ftp.gnome.org/pub/GNOME/desktop/2.0/2.0.3/sources/libart_lgpl-2.3.10.tar.gz \
http://ftp.gnome.org/pub/GNOME/desktop/2.2/2.2.2/sources/librsvg-2.2.5.tar.gz \
http://ftp.gnome.org/pub/GNOME/sources/gstreamer/0.4/gstreamer-0.4.2.tar.gz \
http://ftp.gnome.org/pub/GNOME/sources/libgda/1.0/libgda-1.0.0.tar.gz \
http://ftp.gnome.org/pub/GNOME/sources/libgnomedb/1.0/libgnomedb-1.0.0.tar.gz \
@ -30,8 +29,12 @@ all:
get-gtkhtml-code:
wget http://ftp.gnome.org/pub/GNOME/sources/gtkhtml/3.0/gtkhtml-3.0.8.tar.gz --output-document=- | tar -xz $(GTKHTML_SOURCES)
patch -p0 < gtkhtml-font-style-enum.patch
get-gst-code:
wget http://ftp.gnome.org/pub/GNOME/sources/gstreamer/0.6/gstreamer-0.6.4.tar.gz --output-document=- | tar -xz
patch -p0 < gstreamer-parse.patch
get-source-code: get-gtkhtml-code
get-source-code: get-gtkhtml-code get-gst-code
for i in $(DOWNLOADS); do \
wget $$i --output-document=- | tar -xz ; \
done;