From 6805fbe127e9c56fbc09e88b5e30e51b945ea701 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 4 Jun 2010 21:45:29 +0000 Subject: Run unit tests even if lcov is unavailable. Library path kludges for building against MacPorts on OSX. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2576 a436a847-0d15-0410-975c-d299462d15a1 --- src/shared/runtime_paths.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/shared/runtime_paths.cpp b/src/shared/runtime_paths.cpp index 832c3472..a65131fb 100644 --- a/src/shared/runtime_paths.cpp +++ b/src/shared/runtime_paths.cpp @@ -87,10 +87,17 @@ data_file_path(const std::string& name) std::string module_path(const std::string& name) { + std::string ret; #ifdef BUNDLE - return Glib::Module::build_path(Glib::build_path(bundle_path, INGEN_MODULE_DIR), name); + ret = Glib::Module::build_path(Glib::build_path(bundle_path, INGEN_MODULE_DIR), name); #else - return Glib::Module::build_path(INGEN_MODULE_DIR, name); + ret = Glib::Module::build_path(INGEN_MODULE_DIR, name); +#endif +#ifdef __APPLE__ + // MacPorts glib doesnt seem to do portable path building correctly... + if (ret.substr(ret.length() - 3) == ".so") + ret = ret.substr(0, ret.length() - 2).append("dylib"); + return ret; #endif } -- cgit v1.2.1