commit 72651faa4f9b2f7939a1d27cf8c2bd60b2407835 branch 4.4 Author: Harald Sitter 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