summaryrefslogtreecommitdiff
path: root/cppuhelper
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2013-10-05 20:28:40 +0300
committerTor Lillqvist <tml@collabora.com>2013-10-05 21:10:42 +0300
commit01e1a2465ef3e7658b749893d518e4720e04c40b (patch)
treeca12c00f9c992e746f2692eab103cb84b1c2cffe /cppuhelper
parent849352c724426c06dea98c9b3df10ef629f04942 (diff)
URE folder path fixes for the HAVE_FEATURE_MACOSX_MACLIKE_APP_STRUCTURE case
Change-Id: I5019cce2172db7b3ac74e25f5ea9dc62e9fd03f8
Diffstat (limited to 'cppuhelper')
-rw-r--r--cppuhelper/source/paths.cxx18
1 files changed, 10 insertions, 8 deletions
diff --git a/cppuhelper/source/paths.cxx b/cppuhelper/source/paths.cxx
index ab541076b2ab..41abeb4ef370 100644
--- a/cppuhelper/source/paths.cxx
+++ b/cppuhelper/source/paths.cxx
@@ -18,6 +18,7 @@
*/
#include <config_features.h>
+#include <config_folders.h>
#include "sal/config.h"
@@ -72,15 +73,16 @@ rtl::OUString cppu::getUnoIniUri() {
#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" ) )
+ // We keep both the LO and URE dylibs direcly in "Frameworks"
+ // (that is, LIBO_LIB_FOLDER) and rc files in "Resources"
+ // (LIBO_ETC_FOLDER). Except for unorc, of which there are two,
+ // the "LO" one (which is in "Resources") and the "URE" one (which
+ // is in "Resources/ure/etc" (LIBO_URE_ETC_FOLDER)). 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( "/" LIBO_LIB_FOLDER ) )
{
- uri = uri.copy( 0, uri.getLength() - (sizeof("Frameworks")-1) ) + "Resources/ure";
+ uri = uri.copy( 0, uri.getLength() - (sizeof(LIBO_LIB_FOLDER)-1) ) + LIBO_URE_ETC_FOLDER;
}
#endif
#endif