From 1270f6b3bcf6d867b8d12869863bb588831116bc Mon Sep 17 00:00:00 2001 From: sfb Date: Sat, 22 Oct 2011 17:00:09 -0500 Subject: [PATCH] merge default into gsoc2011-translationovqt --- .../src/extension_system/plugin_spec.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/code/nel/tools/3d/object_viewer_qt/src/extension_system/plugin_spec.cpp b/code/nel/tools/3d/object_viewer_qt/src/extension_system/plugin_spec.cpp index 5c4e04ecb..1e3ec0182 100644 --- a/code/nel/tools/3d/object_viewer_qt/src/extension_system/plugin_spec.cpp +++ b/code/nel/tools/3d/object_viewer_qt/src/extension_system/plugin_spec.cpp @@ -61,14 +61,19 @@ PluginSpec::PluginSpec() m_plugin(0), m_pluginManager(0) { -#ifdef Q_OS_WIN -# ifdef DEBUG +// Compilation mode specific suffixes +#ifdef NL_OS_WINDOWS +# if defined(NL_DEBUG) m_suffix = "_d.dll"; -# else +# elif defined(NL_RELEASE) m_suffix = "_r.dll"; +# else +# error "Unknown compilation mode, can't build suffix" # endif -#else +#elif defined (NL_OS_UNIX) m_suffix = ".so"; +#else +# error "You must define the lib suffix for your platform" #endif }