comparison plugin/PiperVampPluginFactory.cpp @ 1249:d45a16c232bd piper

Align Sonic Annotator with the new Piper-ified subrepos (bearing in mind we want neither Piper nor the plugin load checker in Sonic Annotator itself)
author Chris Cannam
date Fri, 04 Nov 2016 14:16:01 +0000
parents 58dd6a6fe414
children c2d66e3c83d0
comparison
equal deleted inserted replaced
1248:58dd6a6fe414 1249:d45a16c232bd
11 published by the Free Software Foundation; either version 2 of the 11 published by the Free Software Foundation; either version 2 of the
12 License, or (at your option) any later version. See the file 12 License, or (at your option) any later version. See the file
13 COPYING included with this distribution for more information. 13 COPYING included with this distribution for more information.
14 */ 14 */
15 15
16 #ifdef HAVE_PIPER
17
16 #include "PiperVampPluginFactory.h" 18 #include "PiperVampPluginFactory.h"
17 #include "PluginIdentifier.h" 19 #include "PluginIdentifier.h"
18 20
19 #include "system/System.h" 21 #include "system/System.h"
20 22
165 167
166 PluginScan *scan = PluginScan::getInstance(); 168 PluginScan *scan = PluginScan::getInstance();
167 auto candidateLibraries = 169 auto candidateLibraries =
168 scan->getCandidateLibrariesFor(PluginScan::VampPlugin); 170 scan->getCandidateLibrariesFor(PluginScan::VampPlugin);
169 171
172 SVDEBUG << "INFO: Have " << candidates.size() << " candidate Vamp plugin libraries" << endl;
173
170 vector<string> from; 174 vector<string> from;
171 for (const auto &c: candidateLibraries) { 175 for (const auto &c: candidateLibraries) {
172 if (c.helperTag == tag) { 176 if (c.helperTag == tag) {
173 string soname = QFileInfo(c.libraryPath).baseName().toStdString(); 177 string soname = QFileInfo(c.libraryPath).baseName().toStdString();
174 SVDEBUG << "INFO: For tag \"" << tag << "\" giving library " << soname << endl; 178 SVDEBUG << "INFO: For tag \"" << tag << "\" giving library " << soname << endl;
240 244
241 m_taxonomy[identifier] = catlist.join(" > "); 245 m_taxonomy[identifier] = catlist.join(" > ");
242 } 246 }
243 } 247 }
244 248
249 #endif