From 017bdf3486139a1eea1c512f56bf68a2d438f8a7 Mon Sep 17 00:00:00 2001 From: Stefan Sauer Date: Wed, 4 Sep 2013 09:15:07 +0200 Subject: [PATCH] HACKING: update instructions --- mediainfo/HACKING | 27 +++++++++++++++++++++++++++ mediainfo/src/mi-info.vala | 21 --------------------- 2 files changed, 27 insertions(+), 21 deletions(-) diff --git a/mediainfo/HACKING b/mediainfo/HACKING index de7dff1cc0..932b4612cd 100644 --- a/mediainfo/HACKING +++ b/mediainfo/HACKING @@ -28,6 +28,33 @@ - update web-page += Building = + +in the case we need to update the vapi for yet unreleased gstreamer api, these +are the steps. Right now its enough to install the vapi file from git + +== update system vapi == +1) checkout vala from gnome git +cd vala/mediainfo/vapi +vala-gen-introspect gstreamer-pbutils-0.10 packages/gstreamer-pbutils-0.10 +vapigen --vapidir . --library gstreamer-pbutils-0.10 packages/gstreamer-pbutils-0.10/gstreamer-pbutils-0.10.gi +git diff packages/gstreamer-pbutils-0.10/gstreamer-pbutils-0.10.metadata >vapi.gstreamer-pbutils-0.10.patch + +2) install +# suse, meego +sudo cp gstreamer-pbutils-0.10.vapi /usr/share/vala/mediainfo/vapi/ +# ubuntu +sudo cp gstreamer-pbutils-0.10.vapi /usr/share/vala-0.xxx/vapi/ + +== use jhbuild == +jhbuild build vala +jhbuild shell + +You might want to build these at least once: +jhbuild build gnome-themes-standard gnome-icon-theme + +${jhbuild_prefix}/share/vala-0.22/vapi/ + = Hacking = use G_MESSAGES_DEBUG="gst-mi" to see the logging diff --git a/mediainfo/src/mi-info.vala b/mediainfo/src/mi-info.vala index 9b48bc74f6..dfcbfe95e8 100644 --- a/mediainfo/src/mi-info.vala +++ b/mediainfo/src/mi-info.vala @@ -22,27 +22,6 @@ using Gst; using Gst.PbUtils; using Gee; -/* -in the case we need to update the vapi for yet unreleased gstreamer api, these -are the steps. Right now its enough to install the vapi file from git - -# checkout vala from gnome git -cd vala/mediainfo/vapi -vala-gen-introspect gstreamer-pbutils-0.10 packages/gstreamer-pbutils-0.10 -vapigen --vapidir . --library gstreamer-pbutils-0.10 packages/gstreamer-pbutils-0.10/gstreamer-pbutils-0.10.gi -git diff packages/gstreamer-pbutils-0.10/gstreamer-pbutils-0.10.metadata >vapi.gstreamer-pbutils-0.10.patch - -# suse, meego -sudo cp gstreamer-pbutils-0.10.vapi /usr/share/vala/mediainfo/vapi/ -# ubuntu -sudo cp gstreamer-pbutils-0.10.vapi /usr/share/vala-0.10/vapi/ - -# jhbuild -jhbuild build vala -jhbuild shell - -*/ - public class MediaInfo.Info : Box { // layout