Skip to content
Snippets Groups Projects
Commit dbafa619 authored by Septen's avatar Septen
Browse files

PluginGenerator: added OpenEphys Project type. Changed path to templates

folder.
parent b8100c22
Branches
Tags
No related merge requests found
......@@ -48,7 +48,7 @@ public:
virtual bool isGUIApplication() const { return false; }
virtual bool isCommandLineApp() const { return false; }
virtual bool isAudioPlugin() const { return false; }
//virtual bool isOpenEphysPlugin() const { return false; }
virtual bool isOpenEphysPlugin() const { return false; }
protected:
ProjectType (const String& type, const String& desc);
......@@ -123,16 +123,16 @@ struct ProjectType_AudioPlugin : public ProjectType
bool isAudioPlugin() const override { return true; }
};
//struct ProjectType_OpenEphysPlugin : public ProjectType
//{
// ProjectType_OpenEphysPlugin() : ProjectType (getTypeName(), "Open-Ephys Plug-in") {}
//
//
// // TODO <Kirill A>: declare and handle this new project
// // type name in the places where should be used
// static const char* getTypeName() noexcept { return "openephysplug"; }
// bool isOpenEphysPlugin() const override { return true; }
//
struct ProjectType_OpenEphysPlugin : public ProjectType
{
ProjectType_OpenEphysPlugin() : ProjectType (getTypeName(), "Open-Ephys Plug-in") {}
// TODO <Kirill A>: declare and handle this new project
// type name in the places where should be used
static const char* getTypeName() noexcept { return "openephysplug"; }
bool isOpenEphysPlugin() const override { return true; }
};
//==============================================================================
inline Array<ProjectType*> ProjectType::getAllTypes()
{
......@@ -141,8 +141,9 @@ inline Array<ProjectType*> ProjectType::getAllTypes()
static ProjectType_StaticLibrary staticLib;
static ProjectType_DLL dll;
static ProjectType_AudioPlugin plugin;
static ProjectType_OpenEphysPlugin openEphysPlugin;
static ProjectType* allTypes[] = { &guiApp, &consoleApp, &staticLib, &dll, &plugin, nullptr };
static ProjectType* allTypes[] = { &guiApp, &consoleApp, &staticLib, &dll, &plugin, &openEphysPlugin, nullptr };
return Array<ProjectType*> (allTypes);
}
......
......@@ -246,13 +246,15 @@ struct OpenEphysPluginAppWizard : public NewProjectWizard
String processorType = getProcessorTypeString (m_processorType);
String pluginFriendlyName = appTitle;
// TODO <Kirill A> replace it with relative path or load files from BinaryData
File templateFilesFolder ("/home/zenbook/developer/open-ephys/plugin-GUI/Source/Processors/PluginManager/Templates");
// TODO <Kirill A> think about loading files right from the BinaryData
File templateFilesFolder ("../../../Source/Processors/PluginManager/Templates");
project.getProjectTypeValue() = ProjectType_AudioPlugin::getTypeName();
project.getProjectTypeValue() = ProjectType_OpenEphysPlugin::getTypeName();
Project::Item sourceGroup (createSourceGroup (project));
project.getConfigFlag ("JUCE_QUICKTIME") = Project::configFlagDisabled; // disabled because it interferes with RTAS build on PC
project.shouldBuildVST().setValue (false);
project.shouldBuildVST3().setValue (false);
setExecutableNameForAllTargets (project, File::createLegalFileName (appTitle));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment