]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/Config.h.in
MAC compilation issues solved... Now some tests please
[cpPlugins.git] / lib / cpPlugins / Interface / Config.h.in
index a076a2b328b7a3e7dd9cc9c0a9be859ae682e63b..8835c0a48c72f74f88215deec326498876e1857e 100644 (file)
 #  undef cpPlugins_Interface_QT4
 #endif // cpPlugins_Interface_QT4_USED == 1
 
+// Base configuration for each OS
+#ifdef _WIN32
+#  define PLUGIN_PREFIX ""
+#  define PLUGIN_EXT ".dll"
+#  ifdef _WIN64
+#  endif
+#elif __APPLE__
+#  include "TargetConditionals.h"
+#  if TARGET_IPHONE_SIMULATOR
+#    define PLUGIN_PREFIX "lib"
+#    define PLUGIN_EXT ".dylib"
+#  elif TARGET_OS_IPHONE
+#    define PLUGIN_PREFIX "lib"
+#    define PLUGIN_EXT ".dylib"
+#  elif TARGET_OS_MAC
+#    define PLUGIN_PREFIX "lib"
+#    define PLUGIN_EXT ".dylib"
+#  else
+#    error "Unknown Apple platform"
+#  endif
+#elif __linux__
+#  define PLUGIN_PREFIX "lib"
+#  define PLUGIN_EXT ".so"
+#elif __unix__ // all unices not caught above
+#  define PLUGIN_PREFIX "lib"
+#  define PLUGIN_EXT ".so"
+#elif defined(_POSIX_VERSION)
+#  define PLUGIN_PREFIX "lib"
+#  define PLUGIN_EXT ".so"
+#else
+#  error "Unknown compiler: I do not know how to manage dynamic libraries."
+#endif
+
+#define PLUGIN_CONFIG_FILE "plugins.cfg"
+
 #endif // __CPPLUGINS__INTERFACE__CONFIG__H__
 
 // eof - $RCSfile$