Changed: Use "lib" prefix under unices for plugins

This commit is contained in:
kervala 2012-09-23 23:58:03 +02:00
parent 52d086fb8a
commit 8d9c96a97a
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" # error "Unknown compilation mode, can't build suffix"
# endif # endif
#elif defined (NL_OS_UNIX) #elif defined (NL_OS_UNIX)
m_prefix = "lib";
m_suffix = ".so"; m_suffix = ".so";
#else #else
# error "You must define the lib suffix for your platform" # 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) bool PluginSpec::setFileName(const QString &fileName)
{ {
m_fileName = fileName + m_suffix; m_fileName = m_prefix + fileName + m_suffix;
m_filePath = m_location + "/" + m_fileName; m_filePath = m_location + "/" + m_fileName;
nlinfo(m_filePath.toStdString().c_str()); nlinfo(m_filePath.toStdString().c_str());

View file

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