mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 15:27:07 +00:00
gi: Use INTROSPECTION_INIT for --add-init-section
This new define was added to common. The new init section fixed compilation warning found in the init line that was spread across all files.
This commit is contained in:
parent
24e34f82fc
commit
632431aecb
6 changed files with 8 additions and 5 deletions
|
@ -295,7 +295,7 @@ Gst-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstreamer-@GST_API_VERSIO
|
|||
--pkg gobject-2.0 \
|
||||
--pkg gmodule-no-export-2.0 \
|
||||
--pkg-export gstreamer-@GST_API_VERSION@ \
|
||||
--add-init-section="gst_init(NULL, NULL);" \
|
||||
--add-init-section="$(INTROSPECTION_INIT)" \
|
||||
--output $@ \
|
||||
$(gir_headers) \
|
||||
$(gir_sources)
|
||||
|
|
|
@ -82,7 +82,7 @@ GstBase-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstbase-@GST_API_VERS
|
|||
--libtool="${LIBTOOL}" \
|
||||
--pkg gstreamer-@GST_API_VERSION@ \
|
||||
--pkg-export gstreamer-base-@GST_API_VERSION@ \
|
||||
--add-init-section="gst_init(NULL,NULL);" \
|
||||
--add-init-section="$(INTROSPECTION_INIT)" \
|
||||
--output $@ \
|
||||
$(gir_headers) \
|
||||
$(gir_sources)
|
||||
|
|
|
@ -157,7 +157,7 @@ GstCheck-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstcheck-@GST_API_VE
|
|||
--libtool="${LIBTOOL}" \
|
||||
--pkg gstreamer-@GST_API_VERSION@ \
|
||||
--pkg-export gstreamer-check-@GST_API_VERSION@ \
|
||||
--add-init-section="gst_init(NULL,NULL);" \
|
||||
--add-init-section="$(INTROSPECTION_INIT)" \
|
||||
--output $@ \
|
||||
$(gir_headers) \
|
||||
$(gir_sources)
|
||||
|
|
|
@ -54,7 +54,7 @@ GstController-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstcontroller-@
|
|||
--libtool="${LIBTOOL}" \
|
||||
--pkg gstreamer-@GST_API_VERSION@ \
|
||||
--pkg-export gstreamer-controller-@GST_API_VERSION@ \
|
||||
--add-init-section="gst_init(NULL,NULL);" \
|
||||
--add-init-section="$(INTROSPECTION_INIT)" \
|
||||
--output $@ \
|
||||
$(gir_headers) \
|
||||
$(gir_sources)
|
||||
|
|
|
@ -75,7 +75,7 @@ GstNet-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstnet-@GST_API_VERSIO
|
|||
--pkg gstreamer-@GST_API_VERSION@ \
|
||||
--pkg gio-2.0 \
|
||||
--pkg-export="gstreamer-net-@GST_API_VERSION@" \
|
||||
--add-init-section="gst_init(NULL,NULL);" \
|
||||
--add-init-section="$(INTROSPECTION_INIT)" \
|
||||
--output $@ \
|
||||
$(gir_headers) \
|
||||
$(gir_sources)
|
||||
|
|
3
test.py
Normal file
3
test.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
from gi.repository import Gst
|
||||
|
||||
buf = Gst.Buffer()
|
Loading…
Reference in a new issue