Kaydet (Commit) 01e1a246 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

URE folder path fixes for the HAVE_FEATURE_MACOSX_MACLIKE_APP_STRUCTURE case

Change-Id: I5019cce2172db7b3ac74e25f5ea9dc62e9fd03f8
üst 849352c7
...@@ -320,6 +320,7 @@ export LIBO_SHARE_JAVA_FOLDER=@LIBO_SHARE_JAVA_FOLDER@ ...@@ -320,6 +320,7 @@ export LIBO_SHARE_JAVA_FOLDER=@LIBO_SHARE_JAVA_FOLDER@
export LIBO_SHARE_PRESETS_FOLDER=@LIBO_SHARE_PRESETS_FOLDER@ export LIBO_SHARE_PRESETS_FOLDER=@LIBO_SHARE_PRESETS_FOLDER@
export LIBO_SHARE_RESOURCE_FOLDER=@LIBO_SHARE_RESOURCE_FOLDER@ export LIBO_SHARE_RESOURCE_FOLDER=@LIBO_SHARE_RESOURCE_FOLDER@
export LIBO_URE_BIN_FOLDER=@LIBO_URE_BIN_FOLDER@ export LIBO_URE_BIN_FOLDER=@LIBO_URE_BIN_FOLDER@
export LIBO_URE_ETC_FOLDER=@LIBO_URE_ETC_FOLDER@
export LIBO_URE_LIB_FOLDER=@LIBO_URE_LIB_FOLDER@ export LIBO_URE_LIB_FOLDER=@LIBO_URE_LIB_FOLDER@
export LIBO_URE_LIB_FOLDER_FOR_BUILD=@LIBO_URE_LIB_FOLDER_FOR_BUILD@ export LIBO_URE_LIB_FOLDER_FOR_BUILD=@LIBO_URE_LIB_FOLDER_FOR_BUILD@
export LIBO_URE_SHARE_FOLDER=@LIBO_URE_SHARE_FOLDER@ export LIBO_URE_SHARE_FOLDER=@LIBO_URE_SHARE_FOLDER@
......
...@@ -2977,9 +2977,9 @@ if test $_os = Darwin -a "$enable_canonical_installation_tree_structure" = yes; ...@@ -2977,9 +2977,9 @@ if test $_os = Darwin -a "$enable_canonical_installation_tree_structure" = yes;
LIBO_SHARE_RESOURCE_FOLDER=Resources/resource LIBO_SHARE_RESOURCE_FOLDER=Resources/resource
LIBO_SHARE_SHELL_FOLDER=Resources/shell LIBO_SHARE_SHELL_FOLDER=Resources/shell
LIBO_URE_BIN_FOLDER=MacOS LIBO_URE_BIN_FOLDER=MacOS
LIBO_URE_ETC_FOLDER=Resources LIBO_URE_ETC_FOLDER=Resources/ure/etc
LIBO_URE_LIB_FOLDER=Frameworks LIBO_URE_LIB_FOLDER=Frameworks
LIBO_URE_SHARE_FOLDER=Resources/ure LIBO_URE_SHARE_FOLDER=Resources/ure/share
LIBO_URE_SHARE_JAVA_FOLDER=Resources/java LIBO_URE_SHARE_JAVA_FOLDER=Resources/java
ENABLE_MACOSX_MACLIKE_APP_STRUCTURE=TRUE ENABLE_MACOSX_MACLIKE_APP_STRUCTURE=TRUE
AC_DEFINE(HAVE_FEATURE_MACOSX_MACLIKE_APP_STRUCTURE) AC_DEFINE(HAVE_FEATURE_MACOSX_MACLIKE_APP_STRUCTURE)
...@@ -2996,7 +2996,7 @@ elif test $_os = Darwin; then ...@@ -2996,7 +2996,7 @@ elif test $_os = Darwin; then
LIBO_SHARE_RESOURCE_FOLDER=MacOS/resource LIBO_SHARE_RESOURCE_FOLDER=MacOS/resource
LIBO_SHARE_SHELL_FOLDER=MacOS/shell LIBO_SHARE_SHELL_FOLDER=MacOS/shell
LIBO_URE_BIN_FOLDER=ure-link/bin LIBO_URE_BIN_FOLDER=ure-link/bin
LIBO_URE_ETC_FOLDER=ure-link/bin LIBO_URE_ETC_FOLDER=ure-link/lib
LIBO_URE_LIB_FOLDER=ure-link/lib LIBO_URE_LIB_FOLDER=ure-link/lib
LIBO_URE_SHARE_FOLDER=ure-link/share LIBO_URE_SHARE_FOLDER=ure-link/share
LIBO_URE_SHARE_JAVA_FOLDER=ure-link/share/java LIBO_URE_SHARE_JAVA_FOLDER=ure-link/share/java
...@@ -3030,7 +3030,7 @@ else ...@@ -3030,7 +3030,7 @@ else
LIBO_SHARE_RESOURCE_FOLDER=program/resource LIBO_SHARE_RESOURCE_FOLDER=program/resource
LIBO_SHARE_SHELL_FOLDER=program/shell LIBO_SHARE_SHELL_FOLDER=program/shell
LIBO_URE_BIN_FOLDER=ure/bin LIBO_URE_BIN_FOLDER=ure/bin
LIBO_URE_ETC_FOLDER=ure/bin LIBO_URE_ETC_FOLDER=ure/lib
LIBO_URE_LIB_FOLDER=ure/lib LIBO_URE_LIB_FOLDER=ure/lib
LIBO_URE_SHARE_FOLDER=ure/share LIBO_URE_SHARE_FOLDER=ure/share
LIBO_URE_SHARE_JAVA_FOLDER=ure/share/java LIBO_URE_SHARE_JAVA_FOLDER=ure/share/java
...@@ -3063,6 +3063,7 @@ AC_SUBST(LIBO_SHARE_JAVA_FOLDER) ...@@ -3063,6 +3063,7 @@ AC_SUBST(LIBO_SHARE_JAVA_FOLDER)
AC_SUBST(LIBO_SHARE_PRESETS_FOLDER) AC_SUBST(LIBO_SHARE_PRESETS_FOLDER)
AC_SUBST(LIBO_SHARE_RESOURCE_FOLDER) AC_SUBST(LIBO_SHARE_RESOURCE_FOLDER)
AC_SUBST(LIBO_URE_BIN_FOLDER) AC_SUBST(LIBO_URE_BIN_FOLDER)
AC_SUBST(LIBO_URE_ETC_FOLDER)
AC_SUBST(LIBO_URE_LIB_FOLDER) AC_SUBST(LIBO_URE_LIB_FOLDER)
AC_SUBST(LIBO_URE_SHARE_FOLDER) AC_SUBST(LIBO_URE_SHARE_FOLDER)
AC_SUBST(LIBO_URE_SHARE_JAVA_FOLDER) AC_SUBST(LIBO_URE_SHARE_JAVA_FOLDER)
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
*/ */
#include <config_features.h> #include <config_features.h>
#include <config_folders.h>
#include "sal/config.h" #include "sal/config.h"
...@@ -72,15 +73,16 @@ rtl::OUString cppu::getUnoIniUri() { ...@@ -72,15 +73,16 @@ rtl::OUString cppu::getUnoIniUri() {
#else #else
rtl::OUString uri(get_this_libpath()); rtl::OUString uri(get_this_libpath());
#if HAVE_FEATURE_MACOSX_MACLIKE_APP_STRUCTURE #if HAVE_FEATURE_MACOSX_MACLIKE_APP_STRUCTURE
// We keep both the LO and URE dylibs direcly in the Frameworks // We keep both the LO and URE dylibs direcly in "Frameworks"
// folder and rc files in Resources. Except for unorc, of which // (that is, LIBO_LIB_FOLDER) and rc files in "Resources"
// there are two, the "LO" one (which is in Resources) and the // (LIBO_ETC_FOLDER). Except for unorc, of which there are two,
// "URE" one which is in Resources/ure. As this code goes into the // the "LO" one (which is in "Resources") and the "URE" one (which
// cppuhelper library which is part of URE, we are looking for the // is in "Resources/ure/etc" (LIBO_URE_ETC_FOLDER)). As this code
// latter one here. I think... // goes into the cppuhelper library which is part of URE, we are
if (uri.endsWith( "/Frameworks" ) ) // 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
#endif #endif
......
...@@ -51,7 +51,9 @@ struct Bootstrap : ...@@ -51,7 +51,9 @@ struct Bootstrap :
OUStringBuffer buf(256); OUStringBuffer buf(256);
buf.append(getLibraryLocation()); buf.append(getLibraryLocation());
#if HAVE_FEATURE_MACOSX_MACLIKE_APP_STRUCTURE #if HAVE_FEATURE_MACOSX_MACLIKE_APP_STRUCTURE
buf.appendAscii( "/../" LIBO_ETC_FOLDER ); // For some reason the jvmfwk3rc file is traditionally in
// "ure/lib", i.e. in LIBO_URE_ETC_FOLDER
buf.appendAscii( "/../" LIBO_URE_ETC_FOLDER );
#endif #endif
buf.appendAscii(SAL_CONFIGFILE("/jvmfwk3")); buf.appendAscii(SAL_CONFIGFILE("/jvmfwk3"));
OUString sIni = buf.makeStringAndClear(); OUString sIni = buf.makeStringAndClear();
......
...@@ -28,7 +28,7 @@ else ...@@ -28,7 +28,7 @@ else
$(eval $(call gb_Package_add_symbolic_link,ure_install,ure-link,ure)) $(eval $(call gb_Package_add_symbolic_link,ure_install,ure-link,ure))
endif endif
$(eval $(call gb_Package_add_files,ure_install,$(LIBO_URE_LIB_FOLDER),\ $(eval $(call gb_Package_add_files,ure_install,$(LIBO_URE_ETC_FOLDER),\
$(call gb_Helper_get_rcfile,jvmfwk3) \ $(call gb_Helper_get_rcfile,jvmfwk3) \
$(call gb_Helper_get_rcfile,uno) \ $(call gb_Helper_get_rcfile,uno) \
)) ))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment