# HG changeset patch # User cannam # Date 1282815053 0 # Node ID 34754c77653090d0590b84be675987046e506687 # Parent ebc47e614cf5a3456970bb7c04d5a10bb8265f6d * Further fix to version handling diff -r ebc47e614cf5 -r 34754c776530 build/update-version.sh --- a/build/update-version.sh Wed Aug 25 16:09:15 2010 +0000 +++ b/build/update-version.sh Thu Aug 26 09:30:53 2010 +0000 @@ -66,6 +66,18 @@ $p 's/(VAMP_SDK_MINOR_VERSION).*/$1 '$minor'/' \ vamp-sdk/PluginBase.h +$p 's/(VAMP_SDK_MAJOR_VERSION !=) \d+/$1 '$major'/' \ + src/vamp-sdk/PluginAdapter.cpp + +$p 's/(VAMP_SDK_MINOR_VERSION !=) \d+/$1 '$minor'/' \ + src/vamp-sdk/PluginAdapter.cpp + +$p 's/(VAMP_SDK_MAJOR_VERSION !=) \d+/$1 '$major'/' \ + src/vamp-hostsdk/PluginHostAdapter.cpp + +$p 's/(VAMP_SDK_MINOR_VERSION !=) \d+/$1 '$minor'/' \ + src/vamp-hostsdk/PluginHostAdapter.cpp + for pc in pkgconfig/*.pc.in ; do $p 's/(Version:) .*/$1 '$version'/' $pc done diff -r ebc47e614cf5 -r 34754c776530 rdf/generator/vamp-rdf-template-generator.cpp --- a/rdf/generator/vamp-rdf-template-generator.cpp Wed Aug 25 16:09:15 2010 +0000 +++ b/rdf/generator/vamp-rdf-template-generator.cpp Thu Aug 26 09:30:53 2010 +0000 @@ -250,7 +250,7 @@ res+=" vamp:bin_count "+to_string(o.binCount)+" ;\n"; bool haveBinNames = false; - for (int i=0; i < o.binNames.size(); i++) { + for (unsigned int i=0; i < o.binNames.size(); i++) { if (o.binNames[i] != "") { haveBinNames = true; break; @@ -309,7 +309,7 @@ res+=" vamp:bin_count "+to_string(o.binCount)+" ;\n"; bool haveBinNames = false; - for (int i=0; i < o.binNames.size(); i++) { + for (unsigned int i=0; i < o.binNames.size(); i++) { if (o.binNames[i] != "") { haveBinNames = true; break; diff -r ebc47e614cf5 -r 34754c776530 src/vamp-hostsdk/PluginHostAdapter.cpp --- a/src/vamp-hostsdk/PluginHostAdapter.cpp Wed Aug 25 16:09:15 2010 +0000 +++ b/src/vamp-hostsdk/PluginHostAdapter.cpp Thu Aug 26 09:30:53 2010 +0000 @@ -37,8 +37,8 @@ #include #include -#if ( VAMP_SDK_MAJOR_VERSION != 2 || VAMP_SDK_MINOR_VERSION != 0 ) -#error Incorrect Vamp SDK header included (not the expected 2.0 SDK) +#if ( VAMP_SDK_MAJOR_VERSION != 2 || VAMP_SDK_MINOR_VERSION != 2 ) +#error Unexpected version of Vamp SDK header included #endif _VAMP_SDK_HOSTSPACE_BEGIN(PluginHostAdapter.cpp) diff -r ebc47e614cf5 -r 34754c776530 src/vamp-sdk/PluginAdapter.cpp --- a/src/vamp-sdk/PluginAdapter.cpp Wed Aug 25 16:09:15 2010 +0000 +++ b/src/vamp-sdk/PluginAdapter.cpp Thu Aug 26 09:30:53 2010 +0000 @@ -39,8 +39,8 @@ #include #include -#if ( VAMP_SDK_MAJOR_VERSION != 2 || VAMP_SDK_MINOR_VERSION != 0 ) -#error Incorrect Vamp SDK header included (not the expected 2.0 SDK) +#if ( VAMP_SDK_MAJOR_VERSION != 2 || VAMP_SDK_MINOR_VERSION != 2 ) +#error Unexpected version of Vamp SDK header included #endif