[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [Phonon/4.4] 72651fa: Implement version checking magic for GST,
From:       Harald Sitter <sitter.harald () gmail ! com>
Date:       2011-01-01 17:34:56
Message-ID: 20110101173456.6B9D7A6090 () git ! kde ! org
[Download RAW message or body]

commit 72651faa4f9b2f7939a1d27cf8c2bd60b2407835
branch 4.4
Author: Harald Sitter <sitter.harald@gmail.com>
Date:   Sun Nov 28 23:02:48 2010 +0100

    Implement version checking magic for GST, inspried by Qt

diff --git a/gstreamer/phonon-config-gstreamer.h.cmake \
b/gstreamer/phonon-config-gstreamer.h.cmake index fb4eb04..791b83a 100644
--- a/gstreamer/phonon-config-gstreamer.h.cmake
+++ b/gstreamer/phonon-config-gstreamer.h.cmake
@@ -1,4 +1,10 @@
-/* GStreamer install plugin definitions */
+/* GStreamer definitions from CMake */
+
+/* VERSION with each part shifted by 8 from the lower part */
+#define GST_VERSION \
((GST_VERSION_MAJOR<<24)|(GST_VERSION_MINOR<<16)|(GST_VERSION_MICRO<<8)|(GST_VERSION_NANO))
 +
+/* Can be used like GST_VERSION <= GST_VERSION_CHECK(0,10,30,0) */
+#define GST_VERSION_CHECK(major, minor, micro, nano) \
((major<<24)|(minor<<16)|(micro<<8)|(nano))  
 /* If api-plugin is defined */
 #cmakedefine PLUGIN_INSTALL_API 1


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic