summaryrefslogtreecommitdiff
path: root/cppuhelper
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-08-16 01:26:14 +0300
committerTor Lillqvist <tml@iki.fi>2013-08-18 21:11:15 +0300
commit9a031cf7050bcf289792de0363560ef864ddc0be (patch)
treee19cf504f0767712e0384664947204d3eadb5b73 /cppuhelper
parente939dfb359761bae395122c1adf68222709da36e (diff)
Adapt for HAVE_FEATURE_MACOSX_MACLIKE_APP_STRUCTURE
Change-Id: I598efffda7be77171cdff9d3d5b8705972cfba18
Diffstat (limited to 'cppuhelper')
-rw-r--r--cppuhelper/source/paths.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/cppuhelper/source/paths.cxx b/cppuhelper/source/paths.cxx
index 5f60ab806028..ab541076b2ab 100644
--- a/cppuhelper/source/paths.cxx
+++ b/cppuhelper/source/paths.cxx
@@ -17,6 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <config_features.h>
+
#include "sal/config.h"
#include <cassert>
@@ -69,6 +71,18 @@ rtl::OUString cppu::getUnoIniUri() {
rtl::OUString uri("file:///assets/program");
#else
rtl::OUString uri(get_this_libpath());
+#if HAVE_FEATURE_MACOSX_MACLIKE_APP_STRUCTURE
+ // We keep both the LO and URE dylibs direcly in the Frameworks
+ // folder and rc files in Resources. Except for unorc, of which
+ // there are two, the "LO" one (which is in Resources) and the
+ // "URE" one which is in Resources/ure. As this code goes into the
+ // cppuhelper library which is part of URE, we are looking for the
+ // latter one here. I think...
+ if (uri.endsWith( "/Frameworks" ) )
+ {
+ uri = uri.copy( 0, uri.getLength() - (sizeof("Frameworks")-1) ) + "Resources/ure";
+ }
+#endif
#endif
return uri + "/" SAL_CONFIGFILE("uno");
}