Changed: Use "lib" prefix under unices for plugins

This commit is contained in:
kervala 2012-09-23 23:58:03 +02:00
parent 003baa9140
commit dd05b36f99
2 changed files with 3 additions and 1 deletions

View file

@ -71,6 +71,7 @@ PluginSpec::PluginSpec()
# error "Unknown compilation mode, can't build suffix"
# endif
#elif defined (NL_OS_UNIX)
m_prefix = "lib";
m_suffix = ".so";
#else
# error "You must define the lib suffix for your platform"
@ -139,7 +140,7 @@ QList<PluginSpec *> PluginSpec::dependencySpecs() const
bool PluginSpec::setFileName(const QString &fileName)
{
m_fileName = fileName + m_suffix;
m_fileName = m_prefix + fileName + m_suffix;
m_filePath = m_location + "/" + m_fileName;
nlinfo(m_filePath.toStdString().c_str());

View file

@ -84,6 +84,7 @@ private:
QString m_description;
QString m_nameSpecFile;
QString m_prefix;
QString m_suffix;
int m_state;
bool m_enabled, m_enabledStartup;