blob: 8225993b4edf529fd3b061dae07c6dde7ddf7f6f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <vector>
#include "ardour/filesystem_paths.h"
#include "ardour/linux_vst_support.h"
#include "ardour/vst_info_file.h"
/* make stupid waf happy.
* waf cannot build multiple variants of .o object files from the same
* source using different wscripts.. it mingles e.g.
* build/libs/ardour/vst_info_file.cc.1.o for
* both lib/ardour/wscript and lib/fst/wscript
*
* ...but waf does track include dependencies.
*/
#include "../ardour/vst_info_file.cc"
#include "../ardour/linux_vst_support.cc"
#include "../ardour/filesystem_paths.cc"
#include "../ardour/directory_names.cc"
#include "../pbd/error.cc"
#include "../pbd/basename.cc"
#include "../pbd/search_path.cc"
#include "../pbd/transmitter.cc"
#include "../pbd/whitespace.cc"
#ifdef LXVST_SUPPORT
void
vstfx_destroy_editor (VSTState* /*vstfx*/) { }
#endif
int main (int argc, char **argv) {
if (argc != 2) {
fprintf(stderr, "usage: %s <vst>\n", argv[0]);
return EXIT_FAILURE;
}
char *dllpath = argv[1];
std::vector<VSTInfo *> *infos;
#ifdef LXVST_SUPPORT
if (strstr (dllpath, ".so" ) == 0) {
infos = vstfx_get_info_lx(dllpath);
}
#endif
#ifdef WINDOWS_VST_SUPPORT
if (strstr (dllpath, ".dll" ) == 0) {
infos = vstfx_get_info_fst(dllpath);
}
#endif
if (infos->empty()) {
return EXIT_FAILURE;
} else {
return EXIT_SUCCESS;
}
}
|