Only make the export button sensitive if there's something to export
[ardour.git] / libs / fst / scanner.cc
index d56bdb168c5ce1b5b403392ef0ce43818078dfdb..18f4048cbbbb26f1713c61693b4583ad9a2517c0 100644 (file)
 #ifdef LXVST_SUPPORT
 #include "../ardour/linux_vst_support.cc"
 #endif
+#ifdef MACVST_SUPPORT
+#include "../ardour/mac_vst_support.cc"
+#endif
 #include "../ardour/filesystem_paths.cc"
 #include "../ardour/directory_names.cc"
 
+#include "../ardour/vst_state.cc"
 
 #ifdef LXVST_SUPPORT
 void
@@ -117,6 +121,12 @@ int main (int argc, char **argv) {
                infos = vstfx_get_info_fst(dllpath);
        }
 #endif
+
+#ifdef MACVST_SUPPORT
+       else if (slen > 4 && 0 == g_ascii_strcasecmp (&dllpath[slen-4], ".vst")) {
+               infos = vstfx_get_info_mac(dllpath);
+       }
+#endif
        else {
                fprintf(stderr, "'%s' is not a supported VST plugin.\n", dllpath);
        }