Undo basis/brand split: Move SDK and ure-link, remove OOO_BASE_DIR and BaseInstallation.

This commit is contained in:
Stephan Bergmann 2011-10-21 17:18:13 +02:00
parent 3535ceeac6
commit b786a33cfd
65 changed files with 175 additions and 627 deletions

View File

@ -66,7 +66,6 @@ if test -d $DESTDIR$INSTALLDIR/basis$PRODUCTVERSION/sdk ; then
sed -e "s,@OO_SDK_NAME@,openoffice.org${PRODUCTVERSION}_sdk," \
-e "s,@OO_SDK_HOME@,$INSTALLDIR/basis$PRODUCTVERSION/sdk," \
-e "s,@OFFICE_HOME@,$INSTALLDIR," \
-e "s,@OFFICE_BASE_HOME@,$INSTALLDIR/basis$PRODUCTVERSION," \
-e "s,@OO_SDK_URE_HOME@,$INSTALLDIR/basis$PRODUCTVERSION/ure-link," \
-e "s,@OO_SDK_MAKE_HOME@,/usr/bin," \
-e "s,@OO_SDK_ZIP_HOME@,/usr/bin," \

View File

@ -58,7 +58,6 @@ namespace cli_ure {
}
#define INSTALL_PATH L"Software\\LibreOffice\\UNO\\InstallPath"
#define BASIS_LINK L"\\basis-link"
#define URE_LINK L"\\ure-link"
#define URE_BIN L"\\bin"
#define UNO_PATH L"UNO_PATH"
@ -178,37 +177,22 @@ WCHAR* getUnoPath()
WCHAR * szInstallPath = getInstallPath();
if (szInstallPath)
{
//build the path tho the basis-link file
oneDirUp(szInstallPath);
int sizeLinkPath = lstrlen(szInstallPath) + lstrlen(INSTALL_PATH) + 1;
if (sizeLinkPath < MAX_PATH)
sizeLinkPath = MAX_PATH;
szLinkPath = new WCHAR[sizeLinkPath];
szLinkPath[0] = L'\0';
lstrcat(szLinkPath, szInstallPath);
lstrcat(szLinkPath, BASIS_LINK);
//get the path to the actual Basis folder
if (cli_ure::resolveLink(szLinkPath))
//build the path to the ure-link file
szUrePath = new WCHAR[MAX_PATH];
szUrePath[0] = L'\0';
lstrcat(szUrePath, szInstallPath);
lstrcat(szUrePath, URE_LINK);
//get the path to the actual Ure folder
if (cli_ure::resolveLink(szUrePath))
{
//build the path to the ure-link file
int sizeUrePath = lstrlen(szLinkPath) + lstrlen(URE_LINK) + 1;
if (sizeUrePath < MAX_PATH)
sizeUrePath = MAX_PATH;
szUrePath = new WCHAR[sizeUrePath];
szUrePath[0] = L'\0';
lstrcat(szUrePath, szLinkPath);
lstrcat(szUrePath, URE_LINK);
//get the path to the actual Ure folder
if (cli_ure::resolveLink(szUrePath))
{
//build the path to the URE/bin directory
szUreBin = new WCHAR[lstrlen(szUrePath) + lstrlen(URE_BIN) + 1];
szUreBin[0] = L'\0';
lstrcat(szUreBin, szUrePath);
lstrcat(szUreBin, URE_BIN);
}
//build the path to the URE/bin directory
szUreBin = new WCHAR[lstrlen(szUrePath) + lstrlen(URE_BIN) + 1];
szUreBin[0] = L'\0';
lstrcat(szUreBin, szUrePath);
lstrcat(szUreBin, URE_BIN);
}
}
#if OSL_DEBUG_LEVEL >=2

View File

@ -107,7 +107,6 @@ OfficeInstallationDirectories::OfficeInstallationDirectories(
m_aUserDirMacro( RTL_CONSTASCII_USTRINGPARAM( "$(userdataurl)" ) ),
m_xCtx( xCtx ),
m_pOfficeBrandDir( 0 ),
m_pOfficeBaseDir( 0 ),
m_pUserDir( 0 )
{
}
@ -117,7 +116,6 @@ OfficeInstallationDirectories::OfficeInstallationDirectories(
OfficeInstallationDirectories::~OfficeInstallationDirectories()
{
delete m_pOfficeBrandDir;
delete m_pOfficeBaseDir;
delete m_pUserDir;
}
@ -168,24 +166,13 @@ OfficeInstallationDirectories::makeRelocatableURL( const rtl::OUString& URL )
}
else
{
nIndex = aCanonicalURL.indexOf( *m_pOfficeBaseDir );
nIndex = aCanonicalURL.indexOf( *m_pUserDir );
if ( nIndex != -1 )
{
return rtl::OUString(
aCanonicalURL.replaceAt( nIndex,
m_pOfficeBaseDir->getLength(),
m_aOfficeBaseDirMacro ) );
}
else
{
nIndex = aCanonicalURL.indexOf( *m_pUserDir );
if ( nIndex != -1 )
{
return rtl::OUString(
aCanonicalURL.replaceAt( nIndex,
m_pUserDir->getLength(),
m_aUserDirMacro ) );
}
m_pUserDir->getLength(),
m_aUserDirMacro ) );
}
}
}
@ -212,28 +199,15 @@ OfficeInstallationDirectories::makeAbsoluteURL( const rtl::OUString& URL )
}
else
{
nIndex = URL.indexOf( m_aOfficeBaseDirMacro );
nIndex = URL.indexOf( m_aUserDirMacro );
if ( nIndex != -1 )
{
initDirs();
return rtl::OUString(
URL.replaceAt( nIndex,
m_aOfficeBaseDirMacro.getLength(),
*m_pOfficeBaseDir ) );
}
else
{
nIndex = URL.indexOf( m_aUserDirMacro );
if ( nIndex != -1 )
{
initDirs();
return rtl::OUString(
URL.replaceAt( nIndex,
m_aUserDirMacro.getLength(),
*m_pUserDir ) );
}
m_aUserDirMacro.getLength(),
*m_pUserDir ) );
}
}
}
@ -331,7 +305,6 @@ void OfficeInstallationDirectories::initDirs()
if ( m_pOfficeBrandDir == 0 )
{
m_pOfficeBrandDir = new rtl::OUString;
m_pOfficeBaseDir = new rtl::OUString;
m_pUserDir = new rtl::OUString;
uno::Reference< util::XMacroExpander > xExpander;
@ -355,16 +328,6 @@ void OfficeInstallationDirectories::initDirs()
makeCanonicalFileURL( *m_pOfficeBrandDir );
*m_pOfficeBaseDir =
xExpander->expandMacros(
rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
"${$BRAND_BASE_DIR/program/" SAL_CONFIGFILE( "bootstrap" ) ":BaseInstallation}" ) ) );
OSL_ENSURE( m_pOfficeBaseDir->getLength() > 0,
"Unable to obtain office base installation directory!" );
makeCanonicalFileURL( *m_pOfficeBaseDir );
*m_pUserDir =
xExpander->expandMacros(
rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(

View File

@ -101,7 +101,6 @@ private:
com::sun::star::uno::Reference<
com::sun::star::uno::XComponentContext > m_xCtx;
rtl::OUString * m_pOfficeBrandDir;
rtl::OUString * m_pOfficeBaseDir;
rtl::OUString * m_pUserDir;
};

View File

@ -69,7 +69,7 @@ TEST .PHONY: $(SHL1TARGETN) $(MISC)/unit.rdb
mkdir $(MISC)/unitdata/basis
mkdir $(MISC)/unitdata/basis/program
echo '[Bootstrap]' > $(MISC)/unitdata/basis/program/uno$(MY_INI)
echo 'UNO_SHARED_PACKAGES_CACHE = $$OOO_BASE_DIR' \
echo 'UNO_SHARED_PACKAGES_CACHE = $$BRAND_BASE_DIR' \
>> $(MISC)/unitdata/basis/program/uno$(MY_INI)
echo 'UNO_USER_PACKAGES_CACHE =' \
'$${$$BRAND_BASE_DIR/program/bootstrap$(MY_INI):UserInstallation}' \

View File

@ -26,5 +26,4 @@
#***********************************************************************/
[Bootstrap]
OOO_BASE_DIR = $ORIGIN/basis
BRAND_BASE_DIR = $ORIGIN/brand

View File

@ -126,12 +126,7 @@ sal_Bool MNS_InitXPCOM(sal_Bool* aProfileExists)
nsCOMPtr<nsILocalFile> binDir;
// Note: if path3 construction fails, mozilla will default to using MOZILLA_FIVE_HOME in the NS_InitXPCOM2()
rtl::OUString path1(
#if defined WNT
RTL_CONSTASCII_USTRINGPARAM("$BRAND_BASE_DIR/program")
#else
RTL_CONSTASCII_USTRINGPARAM("$OOO_BASE_DIR/program")
#endif
);
RTL_CONSTASCII_USTRINGPARAM("$BRAND_BASE_DIR/program"));
rtl::Bootstrap::expandMacros(path1);
rtl::OString path2;
if ((osl::FileBase::getSystemPathFromFileURL(path1, path1) ==

View File

@ -27,7 +27,6 @@ $(eval $(call gb_Package_Package,desktop_scripts,$(SRCDIR)/desktop/scripts))
ifeq ($(OS),WNT)
$(eval $(call gb_Package_add_file,desktop_scripts,bin/basis-link,basis-link))
$(eval $(call gb_Package_add_file,desktop_scripts,bin/ure-link,ure-link))
else

View File

@ -61,7 +61,7 @@ $(eval $(call desktop_Pagein_add_libs_with_dir,common,\
cppuhelper \
cppu \
sal \
,../basis-link/ure-link/lib \
,../ure-link/lib \
))
$(eval $(call desktop_Pagein_add_libs,common,\

View File

@ -1 +0,0 @@
Basis

View File

@ -131,8 +131,8 @@ fi
case "`uname -s`" in
NetBSD|OpenBSD|FreeBSD|DragonFly)
# this is a temporary hack until we can live with the default search paths
sd_prog1="$sd_prog/../basis-link/program"
sd_prog2="$sd_prog/../basis-link/ure-link/lib"
sd_prog1="$sd_prog"
sd_prog2="$sd_prog/../ure-link/lib"
LD_LIBRARY_PATH=$sd_prog1:$sd_prog2${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
JAVA_HOME=$(javaPathHelper -h libreoffice-java 2> /dev/null)
export LD_LIBRARY_PATH
@ -141,7 +141,7 @@ NetBSD|OpenBSD|FreeBSD|DragonFly)
fi
;;
AIX)
LIBPATH=$sd_prog:$sd_prog/../basis-link/program:$sd_prog/../basis-link/ure-link/lib${LIBPATH:+:$LIBPATH}
LIBPATH=$sd_prog:$sd_prog/../ure-link/lib${LIBPATH:+:$LIBPATH}
export LIBPATH
;;
esac

View File

@ -40,14 +40,14 @@ sd_prog=`pwd`
case $1 in
c++)
printf '%s' "$sd_prog/../basis-link/ure-link/lib"
printf '%s' "$sd_prog/../ure-link/lib"
;;
java)
printf '0%s\0%s\0%s\0%s\0%s' \
"$sd_prog/../basis-link/ure-link/share/java/ridl.jar" \
"$sd_prog/../basis-link/ure-link/share/java/jurt.jar" \
"$sd_prog/../basis-link/ure-link/share/java/juh.jar" \
"$sd_prog/../basis-link/program/classes/unoil.jar" "$sd_prog"
"$sd_prog/../ure-link/share/java/ridl.jar" \
"$sd_prog/../ure-link/share/java/jurt.jar" \
"$sd_prog/../ure-link/share/java/juh.jar" \
"$sd_prog/../program/classes/unoil.jar" "$sd_prog"
;;
*)
exit 1

View File

@ -45,8 +45,8 @@ cd "$sd_cwd"
# this is a temporary hack until we can live with the default search paths
case "`uname -s`" in
NetBSD|OpenBSD|FreeBSD|DragonFly)
sd_prog1="$sd_prog/../basis-link/program"
sd_prog2="$sd_prog/../basis-link/ure-link/lib"
sd_prog1="$sd_prog"
sd_prog2="$sd_prog/../ure-link/lib"
LD_LIBRARY_PATH=$sd_prog1:$sd_prog2${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
JAVA_HOME=$(javaPathHelper -h libreoffice-java 2> /dev/null)
export LD_LIBRARY_PATH
@ -55,8 +55,8 @@ NetBSD|OpenBSD|FreeBSD|DragonFly)
fi
;;
AIX)
sd_prog1="$sd_prog/../basis-link/program"
sd_prog2="$sd_prog/../basis-link/ure-link/lib"
sd_prog1="$sd_prog"
sd_prog2="$sd_prog/../ure-link/lib"
LIBPATH=$sd_prog1:$sd_prog2${LIBPATH:+:${LIBPATH}}
export LIBPATH
;;
@ -83,8 +83,8 @@ then
fi
# extend the ld_library_path for java: javaldx checks the sofficerc for us
if [ -x "$sd_prog/../basis-link/ure-link/bin/javaldx" ] ; then
my_path=`"$sd_prog/../basis-link/ure-link/bin/javaldx" $BOOTSTRAPVARS $JVMFWKPARAMS \
if [ -x "$sd_prog/../ure-link/bin/javaldx" ] ; then
my_path=`"$sd_prog/../ure-link/bin/javaldx" $BOOTSTRAPVARS $JVMFWKPARAMS \
"-env:INIFILENAME=vnd.sun.star.pathname:$sd_prog/redirectrc"`
if [ -n "$my_path" ] ; then
sd_platform=`uname -s`

View File

@ -1 +1 @@
..\URE
URE

View File

@ -737,7 +737,7 @@ exec_javaldx (Args *args)
rtl_uString_newFromAscii( &pApp, "file://" );
rtl_uString_newConcat( &pApp, pApp, args->pAppPath );
pTmp = NULL;
rtl_uString_newFromAscii( &pTmp, "../basis-link/ure-link/bin/javaldx" );
rtl_uString_newFromAscii( &pTmp, "../ure-link/bin/javaldx" );
rtl_uString_newConcat( &pApp, pApp, pTmp );
rtl_uString_release( pTmp );

View File

@ -111,63 +111,30 @@ void extendLoaderEnvironment(WCHAR * binPath, WCHAR * iniDirectory) {
nameEnd[-1] = 'n';
tools::buildPath(binPath, iniDirectory, iniDirEnd, name, nameEnd - name);
*iniDirEnd = L'\0';
WCHAR path[MAX_PATH];
std::size_t const maxEnv = 32767;
WCHAR pad[MAX_PATH + maxEnv];
// hopefully std::size_t is large enough to not overflow
WCHAR * pathEnd = tools::buildPath(
path, iniDirectory, iniDirEnd, MY_STRING(L"..\\basis-link"));
pad, iniDirectory, iniDirEnd, MY_STRING(L"..\\ure-link"));
if (pathEnd == NULL) {
fail();
}
pathEnd = tools::resolveLink(pad);
if (pathEnd == NULL) {
fail();
}
pathEnd = tools::buildPath(pad, pad, pathEnd, MY_STRING(L"\\bin"));
if (pathEnd == NULL) {
fail();
}
std::size_t const maxEnv = 32767;
WCHAR pad[2 * MAX_PATH + maxEnv];
// hopefully std::size_t is large enough to not overflow
WCHAR * padEnd = NULL;
WCHAR env[maxEnv];
DWORD n = GetEnvironmentVariableW(L"PATH", env, maxEnv);
if ((n >= maxEnv || n == 0) && GetLastError() != ERROR_ENVVAR_NOT_FOUND) {
fail();
}
env[n] = L'\0';
bool exclude1;
pathEnd = tools::resolveLink(path);
if (pathEnd == NULL) {
if (GetLastError() != ERROR_FILE_NOT_FOUND) {
fail();
}
// This path is only taken by testtool.exe in basis program directory;
// its PATH needs to include the brand program directory:
pathEnd = tools::buildPath(
path, iniDirectory, iniDirEnd, MY_STRING(L".."));
if (pathEnd == NULL) {
fail();
}
padEnd = tools::buildPath(
pad, path, pathEnd, MY_STRING(L"\\..\\program"));
if (padEnd == NULL) {
fail();
}
exclude1 = contains(env, pad, padEnd);
} else {
exclude1 = true;
}
WCHAR * pad2 = exclude1 ? pad : padEnd + 1;
pathEnd = tools::buildPath(path, path, pathEnd, MY_STRING(L"\\ure-link"));
if (pathEnd == NULL) {
fail();
}
pathEnd = tools::resolveLink(path);
if (pathEnd == NULL) {
fail();
}
padEnd = tools::buildPath(pad2, path, pathEnd, MY_STRING(L"\\bin"));
if (padEnd == NULL) {
fail();
}
bool exclude2 = contains(env, pad2, padEnd);
if (!(exclude1 && exclude2)) {
if (!(exclude1 || exclude2)) {
pad2[-1] = L';';
}
WCHAR * p = exclude2 ? pad2 - 1 : padEnd;
if (!contains(env, pad, pathEnd)) {
WCHAR * p = pathEnd;
if (n != 0) {
*p++ = L';';
}

View File

@ -88,15 +88,8 @@ int wmain(int argc, wchar_t ** argv, wchar_t **) {
#endif
wchar_t path[MAX_PATH];
wchar_t * pathEnd = getBrandPath(path);
if (tools::buildPath(path, path, pathEnd, MY_STRING(L"..\\basis-link"))
== NULL)
{
exit(EXIT_FAILURE);
}
pathEnd = tools::resolveLink(path);
if (pathEnd == NULL ||
(tools::buildPath(path, path, pathEnd, MY_STRING(L"\\ure-link")) ==
NULL))
if (tools::buildPath(path, path, pathEnd, MY_STRING(L"..\\ure-link")) ==
NULL)
{
exit(EXIT_FAILURE);
}
@ -116,18 +109,9 @@ int wmain(int argc, wchar_t ** argv, wchar_t **) {
wchar_t path[MAX_PATH];
wchar_t * pathEnd = getBrandPath(path);
writePath(path, pathEnd, MY_STRING(L""));
if (tools::buildPath(path, path, pathEnd, MY_STRING(L"..\\basis-link"))
== NULL)
{
exit(EXIT_FAILURE);
}
pathEnd = tools::resolveLink(path);
if (pathEnd == NULL) {
exit(EXIT_FAILURE);
}
writeNull();
writePath(path, pathEnd, MY_STRING(L"\\program\\classes\\unoil.jar"));
if (tools::buildPath(path, path, pathEnd, MY_STRING(L"\\ure-link")) ==
writePath(path, pathEnd, MY_STRING(L"classes\\unoil.jar"));
if (tools::buildPath(path, path, pathEnd, MY_STRING(L"..\\ure-link")) ==
NULL)
{
exit(EXIT_FAILURE);

View File

@ -145,19 +145,12 @@ bool extendEnvironment(boost::scoped_array< WCHAR > * environment) {
//TODO: conversion errors
if (len == 0 ||
(tools::buildPath(
path, pathBegin, path + len - 1, MY_STRING(L"\\basis-link"))
path, pathBegin, path + len - 1, MY_STRING(L"\\ure-link"))
== NULL))
{
return false;
}
WCHAR * pathEnd = tools::resolveLink(path);
if (pathEnd == NULL ||
(tools::buildPath(path, pathBegin, pathEnd, MY_STRING(L"\\ure-link")) ==
NULL))
{
return false;
}
pathEnd = tools::resolveLink(path);
if (pathEnd == NULL) {
return false;
}

View File

@ -303,19 +303,15 @@ Reference< lang::XMultiServiceFactory > SAL_CALL start_office(NSP_PIPE_FD read_f
// env string
::rtl::OUStringBuffer buf;
OUString aIniPath, aPluginPipeName;
OUString aPath, aPluginPipeName;
if(!Bootstrap::get(OUSTR("BRAND_BASE_DIR"), aIniPath))
if(!Bootstrap::get(OUSTR("BRAND_BASE_DIR"), aPath))
{
debug_fprintf(NSP_LOG_APPEND,"failed to get BRAND_BASE_DIR!\n");
return Reference< lang::XMultiServiceFactory >(NULL);
}
aIniPath += OUSTR("/program/");
aIniPath += OUSTR(SAL_CONFIGFILE("bootstrap"));
Bootstrap aVersionFile(aIniPath);
aVersionFile.getFrom(OUSTR("BaseInstallation"), aPluginPipeName, OUString());
aPluginPipeName = ::rtl::OUString::valueOf( aPluginPipeName.hashCode() );
aPluginPipeName = ::rtl::OUString::valueOf( aPath.hashCode() );
// accept string
OSL_ASSERT( buf.getLength() == 0 );

View File

@ -124,7 +124,7 @@ static inline rtl::OUString getBuildId()
//------------------------------------------------------------------------------
static inline rtl::OUString getBaseInstallation()
{
rtl::OUString aPathVal(UNISTRING("${$BRAND_BASE_DIR/program/" SAL_CONFIGFILE("bootstrap") ":BaseInstallation}"));
rtl::OUString aPathVal(UNISTRING("$BRAND_BASE_DIR"));
rtl::Bootstrap::expandMacros(aPathVal);
return aPathVal;
}

View File

@ -36,7 +36,6 @@ var oo_user_sdk_dir=WshSysEnv("APPDATA") + "\\" + oo_sdk_name;
var oo_user_sdk_env_script=oo_user_sdk_dir + "\\setsdkenv_windows.bat";
var office_home=getOfficeHome();
var office_base_home=getOfficeBaseHome();
var oo_sdk_ure_home=getUreHome();
var oo_sdk_make_home=getMakeHome();
@ -215,12 +214,6 @@ function getOfficeHome()
function searchOffice()
{
var tmp = oo_sdk_home;
var officepath ="";
var index=-1;
if ((index = tmp.lastIndexOf("\\Basis")) != -1) {
tmp = tmp.substr(0, index);
}
if (aFileSystemObject.FileExists(tmp + "\\program\\soffice.exe")) {
return tmp;
@ -230,23 +223,10 @@ function searchOffice()
}
function getOfficeBaseHome()
{
var officebase = oo_sdk_home;
var index=officebase.lastIndexOf("\\");
officebase = officebase.substr(0, index);
return officebase;
}
function getUreHome()
{
var tmpure = oo_sdk_home;
var ure = "";
var index=0;
if ((index = tmpure.lastIndexOf("Basis")) != -1)
tmpure = tmpure.substr(0, index);
if (aFileSystemObject.FileExists(tmpure + "\\URE\\bin\\uno.exe")) {
ure = tmpure + "\URE";
@ -792,16 +772,13 @@ function writeBatFile(fdir, file)
"set OO_SDK_NAME=" + oo_sdk_name +
"\n\n" +
"REM Installation directory of the Software Development Kit.\n" +
"REM Example: set OO_SDK_HOME=C:\\Program Files\\LibreOffice 3\\Basis\\sdk\n" +
"REM Example: set OO_SDK_HOME=C:\\Program Files\\LibreOffice 3\\sdk\n" +
"set OO_SDK_HOME=" + oo_sdk_home +
"\n\n" +
"REM Office installation directory.\n" +
"REM Example: set OFFICE_HOME=C:\\Program Files\\LibreOffice 3\n" +
"set OFFICE_HOME=" + office_home +
"\n\n" +
"REM Example: set OFFICE_HOME=C:\\Program Files\\LibreOffice 3\\Basis\n" +
"set OFFICE_BASE_HOME=" + office_base_home +
"\n\n" +
"REM URE installation directory.\n" +
"REM Example: set OO_SDK_URE_HOME=C:\\Program Files\\LibreOffice 3\\URE\n" +
"set OO_SDK_URE_HOME=" + oo_sdk_ure_home +
@ -873,11 +850,6 @@ function writeBatFile(fdir, file)
"if defined OFFICE_HOME (\n" +
" set OFFICE_PROGRAM_PATH=%OFFICE_HOME%\\program\n" +
" )\n" +
"\n" +
"REM Set office program path.\n" +
"if defined OFFICE_BASE_HOME (\n" +
" set OFFICE_BASE_PROGRAM_PATH=%OFFICE_BASE_HOME%\\program\n" +
" )\n" +
"\n" +
"REM Set UNO path, necessary to ensure that the cpp examples using the\n" +
"REM new UNO bootstrap mechanism use the configured office installation\n" +
@ -892,8 +864,8 @@ function writeBatFile(fdir, file)
"set OO_SDK_URE_JAVA_DIR=%OO_SDK_URE_HOME%\\java\n" +
"REM ) else (\n" +
"set OO_SDK_OFFICE_BIN_DIR=%OFFICE_PROGRAM_PATH%\n" +
"set OO_SDK_OFFICE_LIB_DIR=%OFFICE_BASE_PROGRAM_PATH%\n" +
"set OO_SDK_OFFICE_JAVA_DIR=%OFFICE_BASE_PROGRAM_PATH%\\classes\n" +
"set OO_SDK_OFFICE_LIB_DIR=%OFFICE_PROGRAM_PATH%\n" +
"set OO_SDK_OFFICE_JAVA_DIR=%OFFICE_PROGRAM_PATH%\\classes\n" +
"REM )\n" +
"\n" +
"REM Set classpath\n" +
@ -945,7 +917,6 @@ function writeBatFile(fdir, file)
"echo *\n" +
"echo * SDK = %OO_SDK_HOME%\n" +
"echo * Office = %OFFICE_HOME%\n" +
"echo * Office Base = %OFFICE_BASE_HOME%\n" +
"echo * URE = %OO_SDK_URE_HOME%\n" +
"echo * Make = %OO_SDK_MAKE_HOME%\n" +
"echo * Zip = %OO_SDK_ZIP_HOME%\n" +

View File

@ -30,8 +30,6 @@ $main::OFFICE_OR_URE_SUGGESTION = "Office";
$main::OFFICE_HOME = "";
$main::OFFICE_BASE_HOME = substr($main::sdkpath, 0, rindex($main::sdkpath, "/sdk"));
$main::OO_SDK_URE_HOME = `cd $main::sdkpath/../ure-link && pwd`;
chomp($main::OO_SDK_URE_HOME);
@ -108,21 +106,12 @@ if ( $main::OFFICE_OR_URE eq "Office" )
}
# check more details
if ( -d "$main::OFFICE_HOME/Contents/basis-link" ) {
$main::OFFICE_BASE_HOME = "$main::OFFICE_HOME/Contents/basis-link";
if ( -d "$main::OFFICE_BASE_HOME/ure-link" ) {
$main::OO_SDK_URE_HOME = "$main::OFFICE_BASE_HOME/ure-link";
} else {
$main::OFFICE_HOME = "";
$main::OFFICE_BASE_HOME = "";
$main::OO_SDK_URE_HOME = "";
print " Error: no URE found in office installation, please specify the path to a valid installation.\n";
}
if ( -d "$main::OFFICE_HOME/Contents/ure-link" ) {
$main::OO_SDK_URE_HOME = "$main::OFFICE_HOME/Contents/ure-link";
} else {
$main::OFFICE_HOME = "";
$main::OFFICE_BASE_HOME = "";
$main::OO_SDK_URE_HOME = "";
print " Error: no base layer found in office installation, please specify the path to a valid installation.\n";
print " Error: no URE found in office installation, please specify the path to a valid installation.\n";
}
}
} else
@ -785,7 +774,6 @@ sub prepareScriptFile()
$_ =~ s#\@OO_SDK_NAME\@#$main::OO_SDK_NAME#go;
$_ =~ s#\@OO_SDK_HOME\@#$main::OO_SDK_HOME#go;
$_ =~ s#\@OFFICE_HOME\@#$main::OFFICE_HOME#go;
$_ =~ s#\@OFFICE_BASE_HOME\@#$main::OFFICE_BASE_HOME#go;
$_ =~ s#\@OO_SDK_URE_HOME\@#$main::OO_SDK_URE_HOME#go;
$_ =~ s#\@OO_SDK_MAKE_HOME\@#$main::OO_SDK_MAKE_HOME#go;
$_ =~ s#\@OO_SDK_ZIP_HOME\@#$main::OO_SDK_ZIP_HOME#go;

View File

@ -79,7 +79,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
if (nCount < 1)
{
printf("using: DocumentLoader -env:URE_MORE_TYPES=<office_types_rdb_url> <file_url> [<uno_connection_url>]\n\n"
"example: DocumentLoader -env:URE_MORE_TYPES=\"file:///.../basis-link/program/offapi.rdb\" \"file:///e:/temp/test.odt\" \"uno:socket,host=localhost,port=2083;urp;StarOffice.ServiceManager\"\n");
"example: DocumentLoader -env:URE_MORE_TYPES=\"file:///.../program/offapi.rdb\" \"file:///e:/temp/test.odt\" \"uno:socket,host=localhost,port=2083;urp;StarOffice.ServiceManager\"\n");
exit(1);
}
if (nCount == 2)

View File

@ -65,11 +65,6 @@ if ( "${OFFICE_HOME}" != "" ) then
setenv OFFICE_PROGRAM_PATH "${OFFICE_HOME}/${programdir}"
endif
# Set office base program path.
if ( "${OFFICE_BASE_HOME}" != "" ) then
setenv OFFICE_BASE_PROGRAM_PATH "${OFFICE_BASE_HOME}/program"
endif
# Set UNO path, necessary to ensure that the cpp examples using the
# new UNO bootstrap mechanism use the configured office installation.
@ -83,8 +78,8 @@ if ( "${OO_SDK_URE_HOME}" != "" ) then
setenv OO_SDK_URE_JAVA_DIR "${OO_SDK_URE_HOME}/share/java"
else
setenv OO_SDK_URE_BIN_DIR "${OFFICE_PROGRAM_PATH}"
setenv OO_SDK_URE_LIB_DIR "${OFFICE_BASE_PROGRAM_PATH}"
setenv OO_SDK_URE_JAVA_DIR "${OFFICE_BASE_PROGRAM_PATH}/classes"
setenv OO_SDK_URE_LIB_DIR "${OFFICE_PROGRAM_PATH}"
setenv OO_SDK_URE_JAVA_DIR "${OFFICE_PROGRAM_PATH}/classes"
endif
# Set SDK example output directory
@ -261,7 +256,6 @@ echo " * SDK environment is prepared for ${platform}"
echo " *"
echo " * SDK = ${OO_SDK_HOME}"
echo " * Office = ${OFFICE_HOME}"
echo " * Office Base = ${OFFICE_BASE_HOME}"
echo " * URE = ${OO_SDK_URE_HOME}"
echo " * Make = ${OO_SDK_MAKE_HOME}"
echo " * Zip = ${OO_SDK_ZIP_HOME}"

View File

@ -15,7 +15,6 @@ OO_SDK_HOME='@OO_SDK_HOME@'
# Office installation directory.
# Example: OFFICE_HOME=/opt/libreoffice
OFFICE_HOME='@OFFICE_HOME@'
OFFICE_BASE_HOME='@OFFICE_BASE_HOME@'
# URE installation directory.
# Example: OO_SDK_URE_HOME=/opt/libreoffice/ure
@ -87,13 +86,6 @@ then
export OFFICE_PROGRAM_PATH
fi
# Set office program path (only set when using an Office).
if [ "${OFFICE_BASE_HOME}" ]
then
OFFICE_BASE_PROGRAM_PATH=${OFFICE_BASE_HOME}/program
export OFFICE_BASE_PROGRAM_PATH
fi
# Set UNO path, necessary to ensure that the cpp examples using the
# new UNO bootstrap mechanism use the configured office installation (only set
@ -111,8 +103,8 @@ then
OO_SDK_URE_JAVA_DIR=${OO_SDK_URE_HOME}/share/java
else
OO_SDK_URE_BIN_DIR=${OFFICE_PROGRAM_PATH}
OO_SDK_URE_LIB_DIR=${OFFICE_BASE_PROGRAM_PATH}
OO_SDK_URE_JAVA_DIR=${OFFICE_BASE_PROGRAM_PATH}/classes
OO_SDK_URE_LIB_DIR=${OFFICE_PROGRAM_PATH}
OO_SDK_URE_JAVA_DIR=${OFFICE_PROGRAM_PATH}/classes
fi
export OO_SDK_URE_BIN_DIR
export OO_SDK_URE_LIB_DIR
@ -225,7 +217,7 @@ esac
PATH=${OO_SDK_HOME}/bin:${OO_SDK_OUT}/${exampleout}/bin:${OO_SDK_URE_BIN_DIR}:${OFFICE_PROGRAM_PATH}:.:${PATH}
# Set the classpath
CLASSPATH=${OO_SDK_URE_JAVA_DIR}/juh.jar:${OO_SDK_URE_JAVA_DIR}/jurt.jar:${OO_SDK_URE_JAVA_DIR}/ridl.jar:${OO_SDK_URE_JAVA_DIR}/unoloader.jar:${OFFICE_BASE_PROGRAM_PATH}/classes/unoil.jar:${CLASSPATH}
CLASSPATH=${OO_SDK_URE_JAVA_DIR}/juh.jar:${OO_SDK_URE_JAVA_DIR}/jurt.jar:${OO_SDK_URE_JAVA_DIR}/ridl.jar:${OO_SDK_URE_JAVA_DIR}/unoloader.jar:${OFFICE_PROGRAM_PATH}/classes/unoil.jar:${CLASSPATH}
export CLASSPATH
@ -307,7 +299,6 @@ echo " * SDK environment is prepared for ${platform}"
echo " *"
echo " * SDK = $OO_SDK_HOME"
echo " * Office = $OFFICE_HOME"
echo " * Office Base = $OFFICE_BASE_HOME"
echo " * URE = $OO_SDK_URE_HOME"
echo " * Make = $OO_SDK_MAKE_HOME"
echo " * Zip = $OO_SDK_ZIP_HOME"

View File

@ -7,16 +7,13 @@ REM Example: set OO_SDK_NAME=libreoffice3.4_sdk
set OO_SDK_NAME=libreoffice3.4_sdk
REM Installation directory of the Software Development Kit.
REM Example: set OO_SDK_HOME=C:\Program Files\LibreOffice 3\Basis\sdk
REM Example: set OO_SDK_HOME=C:\Program Files\LibreOffice 3\sdk
set OO_SDK_HOME=
REM Office installation directory.
REM Example: set OFFICE_HOME=C:\Program Files\LibreOffice 3
set OFFICE_HOME=
REM Example: set OFFICE_HOME=C:\Program Files\LibreOffice 3\Basis
set OFFICE_BASE_HOME=
REM URE installation directory.
REM Example: set OO_SDK_URE_HOME=C:\Program Files\LibreOffice 3\URE
set OO_SDK_URE_HOME=
@ -45,7 +42,7 @@ REM Example: set OO_SDK_JAVA_HOME=C:\Program Files\Java\jdk1.6.0_05
set OO_SDK_JAVA_HOME=
REM Special output directory
REM Example: set OO_SDK_OUT=C:\Program Files\Libreoffice 3\Basis\sdk
REM Example: set OO_SDK_OUT=C:\Program Files\Libreoffice 3\sdk
set OO_SDK_OUT=
REM Automatic deployment
@ -90,11 +87,6 @@ if defined OFFICE_HOME (
set OFFICE_PROGRAM_PATH=%OFFICE_HOME%\program
)
REM Set office program path.
if defined OFFICE_BASE_HOME (
set OFFICE_BASE_PROGRAM_PATH=%OFFICE_BASE_HOME%\program
)
REM Set UNO path, necessary to ensure that the cpp examples using the
REM new UNO bootstrap mechanism use the configured office installation
REM (only set when using an Office).
@ -108,8 +100,8 @@ set OO_SDK_URE_LIB_DIR=%OO_SDK_URE_HOME%\bin
set OO_SDK_URE_JAVA_DIR=%OO_SDK_URE_HOME%\java
REM ) else (
set OO_SDK_OFFICE_BIN_DIR=%OFFICE_PROGRAM_PATH%
set OO_SDK_OFFICE_LIB_DIR=%OFFICE_BASE_PROGRAM_PATH%
set OO_SDK_OFFICE_JAVA_DIR=%OFFICE_BASE_PROGRAM_PATH%\classes
set OO_SDK_OFFICE_LIB_DIR=%OFFICE_PROGRAM_PATH%
set OO_SDK_OFFICE_JAVA_DIR=%OFFICE_PROGRAM_PATH%\classes
REM )
REM Set classpath
@ -157,7 +149,6 @@ echo * SDK environment is prepared for Windows
echo *
echo * SDK = %OO_SDK_HOME%
echo * Office = %OFFICE_HOME%
echo * Office Base = %OFFICE_BASE_HOME%
echo * URE = %OO_SDK_URE_HOME%
echo * Make = %OO_SDK_MAKE_HOME%
echo * Zip = %OO_SDK_ZIP_HOME%

View File

@ -19,7 +19,7 @@ IDL_DIR=$(PRJ)/idl
BIN_DIR=$(PRJ)/bin
CLASSES_DIR=$(PRJ)/classes
URE_CLASSES_DIR=$(subst \,/,$(OO_SDK_URE_JAVA_DIR))
OFFICE_CLASSES_DIR=$(subst \,/,$(OFFICE_BASE_PROGRAM_PATH))/classes
OFFICE_CLASSES_DIR=$(subst \,/,$(OFFICE_PROGRAM_PATH))/classes
COMP_PACKAGE_DIR=$(subst /,$(PS),$(OUT_BIN))
SDKTYPEFLAG=$(OUT_MISC)/oosdk_cpp_types.flag
@ -27,8 +27,8 @@ SDKTYPEFLAG=$(OUT_MISC)/oosdk_cpp_types.flag
URE_TYPES="$(subst \,/,$(URE_MISC)$(PS)types.rdb)"
URE_SERVICES=$(subst \\,\,$(URE_MISC)$(PS)services.rdb)
OFFICE_TYPES="$(subst \,/,$(OFFICE_BASE_PROGRAM_PATH)$(PS)offapi.rdb)"
OFFICE_SERVICES=$(subst \\,\,$(OFFICE_BASE_PROGRAM_PATH)$(PS)services.rdb)
OFFICE_TYPES="$(subst \,/,$(OFFICE_PROGRAM_PATH)$(PS)offapi.rdb)"
OFFICE_SERVICES=$(subst \\,\,$(OFFICE_PROGRAM_PATH)$(PS)services.rdb)
OFFICE_TYPE_LIBRARY="$(OFFICE_TYPES)"

View File

@ -45,14 +45,14 @@ cd "$sd_cwd"
case "`uname -s`" in
FreeBSD)
sd_prog1="$sd_prog/../basis-link/program"
sd_prog2="$sd_prog/../basis-link/ure-link/lib"
sd_prog1="$sd_prog"
sd_prog2="$sd_prog/../ure-link/lib"
LD_LIBRARY_PATH=$sd_prog1:$sd_prog2${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
export LD_LIBRARY_PATH
;;
AIX)
sd_prog1="$sd_prog/../basis-link/program"
sd_prog2="$sd_prog/../basis-link/ure-link/lib"
sd_prog1="$sd_prog"
sd_prog2="$sd_prog/../ure-link/lib"
LIBPATH=$sd_prog1:$sd_prog2${LIBPATH:+:$LIBPATH}
export LIBPATH
;;
@ -68,8 +68,8 @@ do
done
# extend the ld_library_path for java: javaldx checks the sofficerc for us
if [ -x "$sd_prog/../basis-link/ure-link/bin/javaldx" ] ; then
my_path=`"$sd_prog/../basis-link/ure-link/bin/javaldx" $BOOTSTRAPVARS \
if [ -x "$sd_prog/../ure-link/bin/javaldx" ] ; then
my_path=`"$sd_prog/../ure-link/bin/javaldx" $BOOTSTRAPVARS \
"-env:INIFILENAME=vnd.sun.star.pathname:$sd_prog/redirectrc"`
if [ -n "$my_path" ] ; then
sd_platform=`uname -s`

View File

@ -147,20 +147,12 @@ int wmain(int argc, wchar_t ** argv, wchar_t **) {
exit(EXIT_FAILURE);
}
wchar_t urepath[MAX_PATH];
if (tools::buildPath(urepath, path, pathEnd, MY_STRING(L"..\\basis-link"))
if (tools::buildPath(urepath, path, pathEnd, MY_STRING(L"..\\ure-link"))
== NULL)
{
exit(EXIT_FAILURE);
}
wchar_t * urepathEnd = urepathEnd = tools::resolveLink(urepath);
if (urepathEnd == NULL ||
(tools::buildPath(
urepath, urepath, urepathEnd, MY_STRING(L"\\ure-link"))
== NULL))
{
exit(EXIT_FAILURE);
}
urepathEnd = tools::resolveLink(urepath);
wchar_t * urepathEnd = tools::resolveLink(urepath);
if (urepathEnd == NULL) {
exit(EXIT_FAILURE);
}

View File

@ -44,7 +44,7 @@ PATH=$sd_prog${PATH+:$PATH}
export PATH
# Set %%OOO_LIBRARY_PATH_VAR%% so that "import pyuno" finds libpyuno.so:
%%OOO_LIBRARY_PATH_VAR%%=$sd_prog:$sd_prog/../basis-link/ure-link/lib${%%OOO_LIBRARY_PATH_VAR%%:+:$%%OOO_LIBRARY_PATH_VAR%%}
%%OOO_LIBRARY_PATH_VAR%%=$sd_prog:$sd_prog/../ure-link/lib${%%OOO_LIBRARY_PATH_VAR%%:+:$%%OOO_LIBRARY_PATH_VAR%%}
export %%OOO_LIBRARY_PATH_VAR%%
# Set UNO_PATH so that "officehelper.bootstrap()" can find soffice executable:

View File

@ -49,8 +49,7 @@ Module gid_Module_Root_Brand
gid_Brand_Dir_Share_Uno_Packages_Cache,
gid_Brand_Dir_Share_Registry,
gid_Brand_Dir_Share_Xdg);
Files = (gid_Brand_File_BasisLink,
gid_Brand_File_Bin_Crashreport,
Files = (gid_Brand_File_Bin_Crashreport,
gid_Brand_File_Bin_Crashreport_Script,
gid_Brand_File_Bin_Crashreport_Com,
gid_Brand_File_Bin_Python,
@ -103,8 +102,7 @@ Module gid_Module_Root_Brand
gid_License_Txt,
git_License_Odt,
gid_Credits_Odt);
Unixlinks = (gid_Brand_Unixlink_BasisLink,
gid_Brand_Unixlink_Program,
Unixlinks = (gid_Brand_Unixlink_Program,
gid_Brand_Unixlink_Unopkg,
gid_Brand_Unixlink_Urelibs);
End
@ -152,7 +150,7 @@ End
Directory gid_Brand_Dir_Readme
#if defined MACOSX
ParentID = gid_Brand_Dir_BasisLink;
ParentID = gid_Dir_Bundle_Contents;
#else
ParentID = gid_Dir_Brand_Root;
#endif
@ -428,38 +426,13 @@ Directory gid_Brand_Dir_Share_Xdg
End
#endif
// Link to basis
#if defined WNT
File gid_Brand_File_BasisLink
TXT_FILE_BODY;
Dir = gid_Dir_Brand_Root;
Name = "basis-link";
Styles = (PACKED);
End
#elif defined MACOSX
Directory gid_Brand_Dir_BasisLink
ParentID = gid_Dir_Bundle_Contents;
DosName = "basis-link";
End
#else
Unixlink gid_Brand_Unixlink_BasisLink
BIN_FILE_BODY;
Styles = ();
// Styles = (LAYERLINK);
Name = "basis-link";
Dir = gid_Dir_Brand_Root;
Target = "basis${OOOBASEVERSION}";
End
#endif
// UnixLinks
#if defined MACOSX
Unixlink gid_Brand_Unixlink_Urelibs
Dir = gid_Brand_Dir_Program;
Name = "urelibs";
Target = "../basis-link/ure-link/lib";
Target = "../ure-link/lib";
End
#endif
@ -478,7 +451,7 @@ End
File gid_Brand_File_Html_Thirdpartylicensereadme
Name = "THIRDPARTYLICENSEREADME.html";
#ifdef MACOSX
Dir = gid_Brand_Dir_BasisLink;
Dir = gid_Dir_Bundle_Contents;
#else
Dir = gid_Dir_Brand_Root;
#endif
@ -827,15 +800,6 @@ End
// ProfileItems
ProfileItem gid_Brand_Profileitem_Bootstrap_Baseinstall
ProfileID = gid_Brand_Profile_Bootstrap_Ini;
ModuleID = gid_Module_Root_Brand;
Section = "Bootstrap";
Order = 2;
Key = "BaseInstallation";
Value = "${OOO_BASE_DIR}";
End
ProfileItem gid_Brand_Profileitem_Bootstrap_Productkey
ProfileID = gid_Brand_Profile_Bootstrap_Ini;
ModuleID = gid_Module_Root_Brand;
@ -1143,18 +1107,6 @@ ProfileItem gid_Brand_Profileitem_Fundamental_Brand_Base_Dir
Value = "${ORIGIN}/..";
End
ProfileItem gid_Brand_Profileitem_Fundamental_Ooo_Base_Dir
ModuleID = gid_Module_Root_Brand;
ProfileID = gid_Brand_Profile_Fundamental_Ini;
Section = "Bootstrap";
Key = "OOO_BASE_DIR";
#if defined WNT
Value = "${.link:${BRAND_BASE_DIR}/basis-link}";
#else
Value = "${BRAND_BASE_DIR}/basis-link";
#endif
End
ProfileItem gid_Brand_Profileitem_Fundamental_Uno_Bundled_Extensions
ModuleID = gid_Module_Root_Brand;
ProfileID = gid_Brand_Profile_Fundamental_Ini;
@ -1274,9 +1226,9 @@ ProfileItem gid_Brand_Profileitem_Fundamental_Ure_Bin_Dir
Section = "Bootstrap";
Key = "URE_BIN_DIR";
#if defined WNT
Value = "${.link:${OOO_BASE_DIR}/ure-link}/bin";
Value = "${.link:${BRAND_BASE_DIR}/ure-link}/bin";
#else
Value = "${OOO_BASE_DIR}/ure-link/bin";
Value = "${BRAND_BASE_DIR}/ure-link/bin";
#endif
End
@ -1286,9 +1238,9 @@ ProfileItem gid_Brand_Profileitem_Fundamental_Ure_Lib_Dir
Section = "Bootstrap";
Key = "URE_LIB_DIR";
#if defined WNT
Value = "${.link:${OOO_BASE_DIR}/ure-link}/bin";
Value = "${.link:${BRAND_BASE_DIR}/ure-link}/bin";
#else
Value = "${OOO_BASE_DIR}/ure-link/lib";
Value = "${BRAND_BASE_DIR}/ure-link/lib";
#endif
End
@ -1439,7 +1391,7 @@ End
File gid_License_Txt
TXT_FILE_BODY;
#if defined MACOSX
Dir = gid_Brand_Dir_BasisLink;
Dir = gid_Dir_Bundle_Contents;
#else
Dir = gid_Dir_Brand_Root;
#endif
@ -1455,7 +1407,7 @@ End
File gid_License_Odt
BIN_FILE_BODY;
#if defined MACOSX
Dir = gid_Brand_Dir_BasisLink;
Dir = gid_Dir_Bundle_Contents;
#else
Dir = gid_Dir_Brand_Root;
#endif
@ -1466,7 +1418,7 @@ End
File gid_Credits_Odt
BIN_FILE_BODY;
#if defined MACOSX
Dir = gid_Brand_Dir_BasisLink;
Dir = gid_Dir_Bundle_Contents;
#else
Dir = gid_Dir_Brand_Root;
#endif

View File

@ -1153,15 +1153,6 @@ Directory gid_Dir_Share_Fingerprint
DosName = "fingerprint";
End
Directory gid_Dir_Basis_Sdk
#if defined MACOSX
ParentID = gid_Brand_Dir_BasisLink;
#else
ParentID = gid_Dir_Ooo_Basis;
#endif
DosName = "sdk";
End
Directory gid_Dir_Help
#if defined MACOSX
ParentID = gid_Dir_Bundle_Contents;

View File

@ -46,13 +46,13 @@ End
#if defined WNT
File gid_File_UreLink
TXT_FILE_BODY;
Dir = gid_Dir_Ooo_Basis;
Dir = gid_Dir_Brand_Root;
Name = "ure-link";
Styles = (PACKED);
End
#elif defined MACOSX
Directory gid_Dir_UreLink
ParentID = gid_Brand_Dir_BasisLink;
ParentID = gid_Dir_Bundle_Contents;
DosName = "ure-link";
End
#else
@ -61,7 +61,7 @@ Unixlink gid_Unixlink_UreLink
Styles = ();
// Styles = (LAYERLINK);
Name = "ure-link";
Dir = gid_Dir_Ooo_Basis;
Target = "../ure";
Dir = gid_Dir_Brand_Root;
Target = "ure";
End
#endif

View File

@ -39,55 +39,35 @@ Installation gid_Installation_Sdk
#endif
End
#ifndef MACOSX
#if defined MACOSX
Directory gid_Dir_Basis_Sdk
ParentID = PREDEFINED_PROGDIR;
DosName = "LibreOffice${OOOBASEVERSION}_SDK";
End
#elif defined WNT
#ifdef WNT
Directory gid_Dir_Sdkoo_Root
ParentID = PREDEFINED_PROGDIR;
HostName = "${PRODUCTNAME}_${PRODUCTVERSION}_${POSTVERSIONEXTENSION}";
Styles = (OFFICEDIRECTORY, ISINSTALLLOCATION);
End
#endif
#ifndef WNT
Directory gid_Dir_Ooo_Openofficeorg_Sdk
ParentID = PREDEFINED_PROGDIR;
#ifdef WNT
HostName = "${BASISROOTNAME}";
#else
HostName = ".";
#endif
End
#endif
#ifndef WNT
Directory gid_Dir_Ooo_Basis_Sdk
ParentID = gid_Dir_Ooo_Openofficeorg_Sdk;
#ifdef WNT
HostName = "Basis ${OOOBASEVERSION}";
#else
HostName = "basis${OOOBASEVERSION}";
#endif
Styles = (BASISDIRECTORY);
End
#endif
#endif
Directory gid_Dir_Basis_Sdk
#if defined MACOSX
ParentID = PREDEFINED_PROGDIR;
DosName = "LibreOffice${OOOBASEVERSION}_SDK";
#else
#if defined WNT
ParentID = gid_Dir_Sdkoo_Root;
#else
ParentID = gid_Dir_Ooo_Basis_Sdk;
#endif
DosName = "sdk";
#endif
End
#else
Directory gid_Dir_Basis_Sdk
ParentID = PREDEFINED_PROGDIR;
DosName = "sdk";
End
#endif
Directory gid_Dir_Share_Sdk
ParentID = gid_Dir_Basis_Sdk;
DosName = "share";

View File

@ -38,8 +38,7 @@ boolean tryLoadingLibrary( xmcf, context, name )
}
libURL = xme.expandMacros(
"${$BRAND_BASE_DIR/program/" + bootstrapName + "::BaseInstallation}" +
"/share/basic/ScriptBindingLibrary/" +
"$BRAND_BASE_DIR/share/basic/ScriptBindingLibrary/" +
name.toLowerCase() + ".xlb/");
System.err.println("libURL is: " + libURL);

View File

@ -203,8 +203,7 @@ public class HighlightText implements com.sun.star.awt.XActionListener {
}
String libURL = xme.expandMacros(
"${$BRAND_BASE_DIR/program/" + bootstrapName + "::BaseInstallation}" +
"/share/basic/ScriptBindingLibrary/" +
"$BRAND_BASE_DIR/share/basic/ScriptBindingLibrary/" +
name.toLowerCase() + ".xlb/");
System.err.println("libURL is: " + libURL);

View File

@ -32,8 +32,7 @@ function tryLoadingLibrary( xmcf, context, name )
}
libURL = xme.expandMacros(
"${$BRAND_BASE_DIR/program/" + bootstrapName + "::BaseInstallation}" +
"/share/basic/ScriptBindingLibrary/" +
"$BRAND_BASE_DIR/share/basic/ScriptBindingLibrary/" +
name.toLowerCase() + ".xlb/");
System.err.println("libURL is: " + libURL);

View File

@ -134,9 +134,7 @@ public class ScriptMetaData extends ScriptEntry implements Cloneable {
// to be exposed at all
private static final String SHARE =
"vnd.sun.star.expand:${$BRAND_BASE_DIR/program/" +
PathUtils.BOOTSTRAP_NAME +
"::BaseInstallation}/share";
"vnd.sun.star.expand:$BRAND_BASE_DIR/share";
private static final String USER =
"vnd.sun.star.expand:${$BRAND_BASE_DIR/program/" +

View File

@ -142,7 +142,7 @@ public abstract class ScriptProvider
new Type(XMacroExpander.class), serviceObj);
XMLParserFactory.setOfficeDTDURL(me.expandMacros(
"${$BRAND_BASE_DIR/program/bootstraprc::BaseInstallation}/share/dtd/officedocument/1_0/"));
"$BRAND_BASE_DIR/share/dtd/officedocument/1_0/"));
}
catch ( Exception e )
@ -224,7 +224,7 @@ public abstract class ScriptProvider
if ( originalContextURL.startsWith( "share" ) )
{
contextUrl = "vnd.sun.star.expand:${$BRAND_BASE_DIR/program/" + PathUtils.BOOTSTRAP_NAME + "::BaseInstallation}/share";
contextUrl = "vnd.sun.star.expand:$BRAND_BASE_DIR/share";
extensionDb = "vnd.sun.star.expand:${$BRAND_BASE_DIR/program/" + PathUtils.BOOTSTRAP_NAME + "::UserInstallation}/user";
extensionRepository = "shared";
}

View File

@ -46,8 +46,7 @@ namespace uri = ::com::sun::star::uri;
namespace script = ::com::sun::star::script;
static const char SHARE[] = "share";
static const char SHARE_URI[] =
"vnd.sun.star.expand:${$BRAND_BASE_DIR/program/" SAL_CONFIGFILE( "bootstrap") "::BaseInstallation}";
static const char SHARE_URI[] = "vnd.sun.star.expand:$BRAND_BASE_DIR";
static const char SHARE_UNO_PACKAGES[] = "share:uno_packages";
static const char SHARE_UNO_PACKAGES_URI[] =

View File

@ -143,7 +143,7 @@ class MyUriHelper:
def __init__( self, ctx, location ):
self.s_UriMap = \
{ "share" : "vnd.sun.star.expand:${$BRAND_BASE_DIR/program/" + toIniName( "bootstrap") + "::BaseInstallation}/share/Scripts/python" , \
{ "share" : "vnd.sun.star.expand:$BRAND_BASE_DIR/share/Scripts/python" , \
"share:uno_packages" : "vnd.sun.star.expand:$UNO_SHARED_PACKAGES_CACHE/uno_packages", \
"user" : "vnd.sun.star.expand:${$BRAND_BASE_DIR/program/" + toIniName( "bootstrap") + "::UserInstallation}/user/Scripts/python" , \
"user:uno_packages" : "vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages" }

View File

@ -27,7 +27,6 @@
Start
module = "gid_Module_Root_Brand"
# script = "shellscripts_brand.txt"
solarispackagename = "%WITHOUTDOTUNIXPACKAGENAME%BRANDPACKAGEVERSION"
packagename = "%UNIXPACKAGENAME%BRANDPACKAGEVERSION"
requires = "%UREPACKAGEPREFIX%BRANDPACKAGEVERSION-ure,%BASISPACKAGEPREFIX%OOOBASEVERSION-core01,%BASISPACKAGEPREFIX%OOOBASEVERSION-core02,%BASISPACKAGEPREFIX%OOOBASEVERSION-core03,%BASISPACKAGEPREFIX%OOOBASEVERSION-core04,%BASISPACKAGEPREFIX%OOOBASEVERSION-core05,%BASISPACKAGEPREFIX%OOOBASEVERSION-core06,%BASISPACKAGEPREFIX%OOOBASEVERSION-core07,%BASISPACKAGEPREFIX%OOOBASEVERSION-images"

View File

@ -1,69 +0,0 @@
%preinstall << END
END
%postinstall << END
# echo Command after installing
# searching for the PRODUCTINSTALLLOCATION for the different platforms
platform=`uname -s`
case $$platform in
SunOS)
BASISPACKAGE=openofficeorg-core01
BASISDIR=`pkginfo -r $$BASISPACKAGE`
PRODUCTINSTALLLOCATION="$$BASEDIR"
;;
Linux)
BASISPACKAGE=libreoffice-core01
BASISDIR=`rpm -q --queryformat "%{INSTALLPREFIX}" $$BASISPACKAGE`
PRODUCTINSTALLLOCATION="$$RPM_INSTALL_PREFIX"
;;
*)
PRODUCTINSTALLLOCATION="$$BASEDIR"
;;
esac
# creating link to basis layer
if [ -d $$BASISDIR/libreoffice/basisBASISDIRECTORYVERSION ]
then
ln -s $$BASISDIR/libreoffice/basisBASISDIRECTORYVERSION $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/basis-link >/dev/null 2>&1
else
ln -s ../libreoffice/basisBASISDIRECTORYVERSION $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/basis-link >/dev/null 2>&1
fi
exit 0
END
%preremove << END
END
%postremove << END
# echo Command after removing
LASTUNINSTALL=1 # important for RPM deinstallation
# searching for the PRODUCTINSTALLLOCATION for the different platforms
platform=`uname -s`
case $$platform in
SunOS)
PRODUCTINSTALLLOCATION="$$BASEDIR"
;;
Linux)
PRODUCTINSTALLLOCATION="$$RPM_INSTALL_PREFIX"
if [ "$$1" = 1 ] # one package left after deinstallation -> update
then
LASTUNINSTALL=0
fi
;;
*)
PRODUCTINSTALLLOCATION="$$BASEDIR"
;;
esac
if [ -h $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/basis-link -a $$LASTUNINSTALL -eq 1 ]
then
rm -f $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME/basis-link 2>/dev/null
rmdir $$PRODUCTINSTALLLOCATION/PRODUCTDIRECTORYNAME 2>/dev/null
fi
exit 0
END

View File

@ -101,66 +101,20 @@ extern "C" UINT __stdcall CreateLayerLinks(MSIHANDLE handle)
{
string sInstallPath = GetMsiProperty(handle, TEXT("INSTALLLOCATION"));
string sOfficeInstallPath = sInstallPath;
string sBasisInstallPath = sInstallPath + TEXT("Basis\\");
string sUreInstallPath = sInstallPath + TEXT("URE\\");
string sUreInstallPath = sInstallPath + TEXT("URE");
string sBasisLinkPath = sInstallPath + TEXT("basis-link");
string sUreLinkPath = sInstallPath + TEXT("Basis\\ure-link");
string sUreLinkPath = sInstallPath + TEXT("ure-link");
if ( IsSetMsiProperty(handle, TEXT("ADMININSTALL")) )
{
sBasisInstallPath = TEXT("Basis");
sUreInstallPath = TEXT("..\\URE");
}
stripFinalBackslash(&sBasisInstallPath);
stripFinalBackslash(&sUreInstallPath);
// creating basis-link in brand layer
// creating ure-link
HANDLE h1file = CreateFile(
sBasisLinkPath.c_str(),
GENERIC_WRITE,
0,
NULL,
CREATE_NEW,
FILE_ATTRIBUTE_NORMAL,
NULL);
if (IsValidHandle(h1file))
{
DWORD dummy;
// Converting string into UTF-8 encoding and writing into file "basis-link"
int nCharsRequired = MultiByteToWideChar( CP_ACP, 0, sBasisInstallPath.c_str(), -1, NULL, 0 );
if ( nCharsRequired )
{
LPWSTR lpPathW = new WCHAR[nCharsRequired];
if ( MultiByteToWideChar( CP_ACP, 0, sBasisInstallPath.c_str(), -1, lpPathW, nCharsRequired ) )
{
nCharsRequired = WideCharToMultiByte( CP_UTF8, 0, lpPathW, -1, NULL, 0, NULL, NULL );
if ( nCharsRequired )
{
LPSTR lpPathUTF8 = new CHAR[nCharsRequired];
WideCharToMultiByte( CP_UTF8, 0, lpPathW, -1, lpPathUTF8, nCharsRequired, NULL, NULL );
WriteFile( h1file, lpPathUTF8, strlen(lpPathUTF8) ,&dummy, 0 );
delete lpPathUTF8;
}
}
delete lpPathW;
}
CloseHandle(h1file);
}
// creating ure-link in basis layer
HANDLE h2file = CreateFile(
HANDLE hfile = CreateFile(
sUreLinkPath.c_str(),
GENERIC_WRITE,
0,
@ -169,11 +123,11 @@ extern "C" UINT __stdcall CreateLayerLinks(MSIHANDLE handle)
FILE_ATTRIBUTE_NORMAL,
NULL);
if (IsValidHandle(h2file))
if (IsValidHandle(hfile))
{
DWORD dummy;
// Converting string into UTF-8 encoding and writing into file "basis-link"
// Converting string into UTF-8 encoding and writing into file "ure-link"
int nCharsRequired = MultiByteToWideChar( CP_ACP, 0, sUreInstallPath.c_str(), -1, NULL, 0 );
if ( nCharsRequired )
@ -187,7 +141,7 @@ extern "C" UINT __stdcall CreateLayerLinks(MSIHANDLE handle)
LPSTR lpPathUTF8 = new CHAR[nCharsRequired];
WideCharToMultiByte( CP_UTF8, 0, lpPathW, -1, lpPathUTF8, nCharsRequired, NULL, NULL );
WriteFile( h2file, lpPathUTF8, strlen(lpPathUTF8) ,&dummy, 0 );
WriteFile( hfile, lpPathUTF8, strlen(lpPathUTF8) ,&dummy, 0 );
delete lpPathUTF8;
}
@ -196,7 +150,7 @@ extern "C" UINT __stdcall CreateLayerLinks(MSIHANDLE handle)
delete lpPathW;
}
CloseHandle(h2file);
CloseHandle(hfile);
}
return ERROR_SUCCESS;
@ -206,16 +160,8 @@ extern "C" UINT __stdcall RemoveLayerLinks(MSIHANDLE handle)
{
string sInstallPath = GetMsiProperty(handle, TEXT("INSTALLLOCATION"));
string sOfficeInstallPath = sInstallPath;
string sBasisInstallPath = sInstallPath + TEXT("Basis\\");
string sUreInstallPath = sInstallPath + TEXT("URE\\");
string sBasisLinkPath = sOfficeInstallPath + TEXT("basis-link");
string sUreLinkPath = sBasisInstallPath + TEXT("ure-link");
string sUreDirName = sUreInstallPath + TEXT("bin");
// Deleting link to basis layer
DeleteFile(sBasisLinkPath.c_str());
string sUreLinkPath = sInstallPath + TEXT("ure-link");
string sUreDirName = sInstallPath + TEXT("URE\\bin");
// Check, if URE is still installed
bool ureDirExists = true;

View File

@ -124,7 +124,7 @@ create=false
link=false
# This option is only here to enable using the script during build of
# solenv/gdb . We must (or, better, want to :) avoid using the
# installation subpaths (like basis-link), because all libs in solver
# installation subpaths (like ure-link), because all libs in solver
# are in the same dir.
flat=false
@ -169,8 +169,8 @@ if [[ ${DESTDIR}${pythondir} != ${GDBDIR} ]]; then
cp -r "${GDBDIR}/libreoffice" "${DESTDIR}${pythondir}"
fi
make_autoload cppu basis-link/ure-link/lib libuno_cppu."$DYLIB".3
make_autoload sal basis-link/ure-link/lib libuno_sal."$DYLIB".3
make_autoload cppu ure-link/lib libuno_cppu."$DYLIB".3
make_autoload sal ure-link/lib libuno_sal."$DYLIB".3
make_autoload svl program libsvllo."$DYLIB"
make_autoload sw program libswlo."$DYLIB"
make_autoload tl program libtllo."$DYLIB"

View File

@ -42,12 +42,12 @@ use strict;
# ends up in program/ooenv
( my $moz_lib = `pkg-config --variable=libdir mozilla-nss` ) =~ tr/\n/:/;
my $env_script = '
java_path=`$thisdir/../basis-link/ure-link/bin/javaldx 2>/dev/null`
java_path=`$thisdir/../ure-link/bin/javaldx 2>/dev/null`
export LD_LIBRARY_PATH="$thisdir:$java_path:' . $moz_lib . '$LD_LIBRARY_PATH"
ulimit -c unlimited
export PATH="$thisdir/:$thisdir/../basis-link/program:$thisdir/../basis-link/ure-link/bin:$PATH"
export PATH="$thisdir:$thisdir/../ure-link/bin:$PATH"
export GNOME_DISABLE_CRASH_DIALOG=1
export STAR_RESOURCEPATH=$thisdir/../basis-link/program/resource
export STAR_RESOURCEPATH=$thisdir/resource
# debugging assistance
export SAL_DISABLE_FLOATGRAB=1
export G_SLICE=always-malloc
@ -110,7 +110,7 @@ substr ($OOO_BUILD, 0, 1) eq '/' || die "linkoo requires absolute paths ($OOO_
# setup global variables
my $brand_program_dir = 'program';
my $ure_lib_dir = 'basis-link/ure-link/lib';
my $ure_lib_dir = 'ure-link/lib';
my $win_ure_lib_dir = 'URE/bin';
my @exceptions = ( 'cppuhelper', 'sunjavaplugin', 'libjvmfwk' );

View File

@ -34,13 +34,13 @@ sub action($$$)
('app/UREBIN/URELIB' => '@executable_path/../lib',
'app/OOO/URELIB' => '@executable_path/../ure-link/lib',
'app/SDK/URELIB' => '@executable_path/../../ure-link/lib',
'app/BRAND/URELIB' => '@executable_path/../basis-link/ure-link/lib',
'app/BRAND/URELIB' => '@executable_path/../ure-link/lib',
'app/BRAND/OOO' => '@executable_path',
'app/NONE/URELIB' => '@__VIA_LIBRARY_PATH__',
'app/NONE/OOO' => '@__VIA_LIBRARY_PATH__',
'app/NONE/NONE' => '@__VIA_LIBRARY_PATH__',
'shl/URELIB/URELIB' => '@loader_path',
'shl/OOO/URELIB' => '@loader_path/../basis-link/ure-link/lib',
'shl/OOO/URELIB' => '@loader_path/../ure-link/lib',
'shl/OOO/OOO' => '@loader_path',
'shl/LOADER/LOADER' => '@loader_path',
'shl/OXT/URELIB' => '@executable_path/urelibs',

View File

@ -73,7 +73,7 @@ $(if $(strip $(UNO_SERVICES)),\
$(foreach rdb,$(UNO_SERVICES),\
$(call gb_CppunitTarget__make_url,$(call gb_RdbTarget_get_target,$(rdb))))") \
$(if $(URE),\
$(foreach dir,URE_INTERNAL_LIB_DIR OOO_BASE_DIR BRAND_BASE_DIR,\
$(foreach dir,URE_INTERNAL_LIB_DIR BRAND_BASE_DIR,\
-env:$(dir)=$(call gb_CppunitTarget__make_url,$(gb_CppunitTest_LIBDIR))))
endef

View File

@ -42,7 +42,6 @@ $(call gb_RdbTarget_get_target,%) :
' BEGIN { RS=">"; } \
/^<\?xml version.*/ { next; } \
/.*[^\r\n\t\s].*/ { \
gsub(/vnd.sun.star.expand:\$$OOO_BASE_DIR\/program/, "vnd.sun.star.expand:$$OOO_BASE_DIR",$$0); \
gsub(/vnd.sun.star.expand:\$$BRAND_BASE_DIR\/program/, "vnd.sun.star.expand:$$BRAND_BASE_DIR",$$0); \
print $$0 ">"; \
}' $(call gb_RdbTarget__get_rdbs,$(COMPONENTS),$(OLD_COMPONENTS)) \

View File

@ -190,8 +190,8 @@ endef
gb_LinkTarget__RPATHS := \
URELIB:\dORIGIN \
UREBIN:\dORIGIN/../lib:\dORIGIN \
OOO:\dORIGIN:\dORIGIN/../basis-link/ure-link/lib \
BRAND:\dORIGIN:\dORIGIN/../basis-link/ure-link/lib \
OOO:\dORIGIN:\dORIGIN/../ure-link/lib \
BRAND:\dORIGIN:\dORIGIN/../ure-link/lib \
SDKBIN:\dORIGIN/../../ure-link/lib \
NONE:\dORIGIN/../lib:\dORIGIN \

View File

@ -305,8 +305,8 @@ endef
gb_LinkTarget__RPATHS := \
URELIB:\dORIGIN \
UREBIN:\dORIGIN/../lib:\dORIGIN \
OOO:\dORIGIN:\dORIGIN/../basis-link/ure-link/lib \
BRAND:\dORIGIN:\dORIGIN/../basis-link/ure-link/lib \
OOO:\dORIGIN:\dORIGIN/../ure-link/lib \
BRAND:\dORIGIN:\dORIGIN/../ure-link/lib \
SDKBIN:\dORIGIN/../../ure-link/lib \
NONE:\dORIGIN/../lib:\dORIGIN \

View File

@ -36,8 +36,8 @@ CDEFS+=-D_THREAD_SAFE
.INCLUDE : productversion.mk
COLON=":"
URELIBDIRS=$(subst,$(SPACECHAR),$(COLON) $(foreach,i,{$(PRODUCTLIST)} /opt/$i$(PRODUCTVERSIONSHORT)/basis-link/ure-link/lib))
UREBINDIRS=$(subst,$(SPACECHAR),$(COLON) $(foreach,i,{$(PRODUCTLIST)} /opt/$i$(PRODUCTVERSIONSHORT)/basis-link/ure-link/bin))
URELIBDIRS=$(subst,$(SPACECHAR),$(COLON) $(foreach,i,{$(PRODUCTLIST)} /opt/$i$(PRODUCTVERSIONSHORT)/ure-link/lib))
UREBINDIRS=$(subst,$(SPACECHAR),$(COLON) $(foreach,i,{$(PRODUCTLIST)} /opt/$i$(PRODUCTVERSIONSHORT)/ure-link/bin))
BRANDPROGRAMDIRS=$(subst,$(SPACECHAR),$(COLON) $(foreach,i,{$(PRODUCTLIST)} /opt/$i$(PRODUCTVERSIONSHORT)/program))
LINKFLAGSRUNPATH_URELIB:=-Wl,-blibpath:$(URELIBDIRS):/usr/lib:/lib

View File

@ -175,9 +175,9 @@ LINKFLAGSDEFS*=-Wl,-z,defs
LINKFLAGSRUNPATH_URELIB=-Wl,-rpath,\''$$ORIGIN'\',--enable-new-dtags
LINKFLAGSRUNPATH_UREBIN=-Wl,-rpath,\''$$ORIGIN/../lib:$$ORIGIN'\',--enable-new-dtags
#TODO: drop $ORIGIN once no URE executable is also shipped in OOo
LINKFLAGSRUNPATH_OOO=-Wl,-rpath,\''$$ORIGIN:$$ORIGIN/../basis-link/ure-link/lib'\',--enable-new-dtags
LINKFLAGSRUNPATH_OOO=-Wl,-rpath,\''$$ORIGIN:$$ORIGIN/../ure-link/lib'\',--enable-new-dtags
LINKFLAGSRUNPATH_SDK=-Wl,-rpath,\''$$ORIGIN/../../ure-link/lib'\',--enable-new-dtags
LINKFLAGSRUNPATH_BRAND=-Wl,-rpath,\''$$ORIGIN:$$ORIGIN/../basis-link/ure-link/lib'\',--enable-new-dtags
LINKFLAGSRUNPATH_BRAND=-Wl,-rpath,\''$$ORIGIN:$$ORIGIN/../ure-link/lib'\',--enable-new-dtags
LINKFLAGSRUNPATH_OXT=
LINKFLAGSRUNPATH_NONE=
# flag -Wl,-z,noexecstack sets the NX bit on the stack

View File

@ -130,9 +130,9 @@ CFLAGSCC+=$(C_RESTRICTIONFLAGS)
LINKFLAGSRUNPATH_URELIB=-R\''$$ORIGIN'\'
LINKFLAGSRUNPATH_UREBIN=-R\''$$ORIGIN/../lib:$$ORIGIN'\'
#TODO: drop $ORIGIN once no URE executable is also shipped in OOo
LINKFLAGSRUNPATH_OOO=-R\''$$ORIGIN:$$ORIGIN/../basis-link/ure-link/lib'\'
LINKFLAGSRUNPATH_OOO=-R\''$$ORIGIN:$$ORIGIN/../ure-link/lib'\'
LINKFLAGSRUNPATH_SDK=-R\''$$ORIGIN/../../ure-link/lib'\'
LINKFLAGSRUNPATH_BRAND=-R\''$$ORIGIN:$$ORIGIN/../basis-link/ure-link/lib'\'
LINKFLAGSRUNPATH_BRAND=-R\''$$ORIGIN:$$ORIGIN/../ure-link/lib'\'
LINKFLAGSRUNPATH_OXT=
LINKFLAGSRUNPATH_NONE=
LINKFLAGS=-w -mt -z combreloc -PIC -temp=/tmp -norunpath -library=no%Cstd

View File

@ -136,9 +136,9 @@ CFLAGSCC+=$(C_RESTRICTIONFLAGS)
LINKFLAGSRUNPATH_URELIB=-R\''$$ORIGIN'\'
LINKFLAGSRUNPATH_UREBIN=-R\''$$ORIGIN/../lib:$$ORIGIN'\'
#TODO: drop $ORIGIN once no URE executable is also shipped in OOo
LINKFLAGSRUNPATH_OOO=-R\''$$ORIGIN:$$ORIGIN/../basis-link/ure-link/lib'\'
LINKFLAGSRUNPATH_OOO=-R\''$$ORIGIN:$$ORIGIN/../ure-link/lib'\'
LINKFLAGSRUNPATH_SDK=-R\''$$ORIGIN/../../ure-link/lib'\'
LINKFLAGSRUNPATH_BRAND=-R\''$$ORIGIN:$$ORIGIN/../basis-link/ure-link/lib'\'
LINKFLAGSRUNPATH_BRAND=-R\''$$ORIGIN:$$ORIGIN/../ure-link/lib'\'
LINKFLAGSRUNPATH_OXT=
LINKFLAGSRUNPATH_NONE=
LINKFLAGS=-w -mt -z combreloc -PIC -temp=/tmp -norunpath -library=no%Cstd

View File

@ -131,8 +131,8 @@ CFLAGSCC+=$(C_RESTRICTIONFLAGS)
LINKFLAGSRUNPATH_URELIB=-R\''$$ORIGIN'\'
LINKFLAGSRUNPATH_UREBIN=-R\''$$ORIGIN/../lib:$$ORIGIN'\'
#TODO: drop $ORIGIN once no URE executable is also shipped in OOo
LINKFLAGSRUNPATH_OOO=-R\''$$ORIGIN:$$ORIGIN/../basis-link/ure-link/lib'\'
LINKFLAGSRUNPATH_BRAND=-R\''$$ORIGIN:$$ORIGIN/../basis-link/ure-link/lib'\'
LINKFLAGSRUNPATH_OOO=-R\''$$ORIGIN:$$ORIGIN/../ure-link/lib'\'
LINKFLAGSRUNPATH_BRAND=-R\''$$ORIGIN:$$ORIGIN/../ure-link/lib'\'
LINKFLAGSRUNPATH_OXT=
LINKFLAGSRUNPATH_NONE=
LINKFLAGS=-m64 -w -mt -z combreloc -PIC -temp=/tmp -norunpath

View File

@ -91,6 +91,5 @@ test .PHONY: $(SHL1TARGETN) $(MISC)/$(TARGET)/services.rdb $(MISC)$/$(TARGET)$/t
$(CPPUNITTESTER) $(SHL1TARGETN) \
-env:UNO_SERVICES=$(my_file)$(PWD)/$(MISC)/$(TARGET)/services.rdb \
-env:UNO_TYPES="$(my_file)$(PWD)/$(MISC)/$(TARGET)/types.rdb $(my_file)$(PWD)/$(MISC)/$(TARGET)/udkapi.rdb" \
-env:OOO_BASE_DIR="$(my_file)$(PWD)/$(MISC)/$(TARGET)" \
-env:BRAND_BASE_DIR="$(my_file)$(PWD)/$(MISC)/$(TARGET)" \
-env:UNO_USER_PACKAGES_CACHE="$(my_file)$(PWD)/$(MISC)/$(TARGET)"

View File

@ -1069,11 +1069,7 @@ void GraphicFilter::ImplInit()
if( bUseConfig )
{
#if defined WNT
rtl::OUString url(RTL_CONSTASCII_USTRINGPARAM("$BRAND_BASE_DIR/program"));
#else
rtl::OUString url(RTL_CONSTASCII_USTRINGPARAM("$OOO_BASE_DIR/program"));
#endif
rtl::Bootstrap::expandMacros(url); //TODO: detect failure
utl::LocalFileHelper::ConvertURLToPhysicalName(url, aFilterPath);
}

View File

@ -1130,44 +1130,6 @@ end function
function getOfficeBasisPath as string
const CFN = "global::system::iniinfo.inc:getOfficeBasisPath: "
'get the basis directory from the information of basis-link
dim ltemp(5) as string
dim sFile as string
dim sTemp as string
dim sPath as string
sTemp = gNetzOfficePath
sFile = gNetzOfficePath & "basis-link"
if FileExists( sFile ) then
if ( lcase( gPlatform ) = "osx" ) then
'MacOS X
sTemp = sFile
else
if ( gPlatGroup = "unx" ) then
'Unixes
sPath = getLinkDestination( sFile )
sTemp = fRelativeToAbsolutePath( gNetzOfficePath & sPath )
if ( NOT FileExists( sTemp ) ) then
sTemp = fRelativeToAbsolutePath( sPath )
endif
else
'all other platforms are Windows/DOS style
ListRead( lTemp, sFile )
if lTemp(1) <> "" then
stemp = lTemp(1)
sTemp = fRelativeToAbsolutePath( gNetzOfficePath & sTemp )
endif
endif
endif
else
warnlog( CFN & "Basis-link could not be found" )
endif
if ( NOT FileExists( sTemp ) ) then
warnlog( CFN & "Retrieved invalid path" )
endif
getOfficeBasisPath = sTemp & gPathSigne
'get the basis directory
getOfficeBasisPath = gNetzOfficePath & gPathSigne
end function

View File

@ -107,7 +107,7 @@ sResetOfficeBas="${sLocation}global/tools/resetoffice.bas"
if [ -z "$sTestTool" ]
then
sTestTool=`GetValueFromSection Current OOoProgramDir "$testtoolrc"`
sTestTool="$sTestTool/basis-link/program/testtool.bin"
sTestTool="$sTestTool/program/testtool.bin"
fi

View File

@ -15,8 +15,8 @@ Testing workbench and editor for Layout engine.
* FIXME: New three layer install/rpath feature needs these workarounds
|
| test -d $OOO_INSTALL_PREFIX/openoffice.org3 && export OOO_PREFIX_BRAND=$OOO_INSTALL_PREFIX/openoffice.org3 || export OOO_PREFIX_BRAND=$OOO_INSTALL_PREFIX
| cp -f ../..$INPATH/lib/libtkx.so $OOO_PREFIX/openoffice.org/basis3.0/program
| export LD_LIBRARY_PATH=$OOO_PREFIX_BRAND/basis-link/program:$OOO_PREFIX_BRAND/basis-link/ure-link/lib
| cp -f ../..$INPATH/lib/libtkx.so $OOO_PREFIX/openoffice.org/program
| export LD_LIBRARY_PATH=$OOO_PREFIX_BRAND/program:$OOO_PREFIX_BRAND/ure-link/lib
|
| (see source/layout/helper.cxx)

View File

@ -7,5 +7,5 @@ for d in $(cd ../../../../.. && pwd)/ooo-svn /usr/lib/ooo3/; do
done
export SAL_ALLOW_LINKOO_SYMLINKS=1
test -d $OOO_INSTALL_PREFIX/openoffice.org3 && export OOO_PREFIX_BRAND=$OOO_INSTALL_PREFIX/openoffice.org3 || export OOO_PREFIX_BRAND=$OOO_INSTALL_PREFIX
export LD_LIBRARY_PATH="$OOO_PREFIX_BRAND/basis-link/program:$OOO_PREFIX_BRAND/basis-link/ure-link/lib"
export LD_LIBRARY_PATH="$OOO_PREFIX_BRAND/program:$OOO_PREFIX_BRAND/ure-link/lib"
../../unx*.pro/bin/test "$@"

View File

@ -1,12 +1,8 @@
OOO_INSTALL_PREFIX_URL=file://${OOO_INSTALL_PREFIX}
OOO_BASIS_URL=${OOO_INSTALL_PREFIX_URL}/basis-link
OOO_BASIS_BIN_URL=${OOO_BASIS_URL}/program
OOO_URE_URL=${OOO_BASIS_URL}/ure-link
OOO_BASIS_BIN_URL=${OOO_INSTALL_PREFIX_URL}/program
OOO_URE_URL=${OOO_INSTALL_PREFIX_URL}/ure-link
#
#CFG_INIFILE=${OOO_BASIS_BIN_URL}/configmgrrc
#BaseInstallation=${OOO_BASIS_URL}
BRAND_BASE_DIR=${OOO_INSTALL_PREFIX_URL}
OOO_BASE_DIR=${OOO_BASIS_URL}
#
UNO_TYPES=${OOO_URE_URL}/share/misc/types.rdb ${OOO_BASIS_BIN_URL}/offapi.rdb
UNO_SERVICES=${OOO_URE_URL}/share/misc/services.rdb ${OOO_BASIS_BIN_URL}/services.rdb

View File

@ -63,11 +63,10 @@ OUString getOfficePath( enum whichOfficePath ePath )
{
bOnce = true;
OUString aIni;
Bootstrap::get( OUString( RTL_CONSTASCII_USTRINGPARAM( "BRAND_BASE_DIR" ) ), aIni );
aIni += OUString( RTL_CONSTASCII_USTRINGPARAM( "/program/" SAL_CONFIGFILE( "bootstrap" ) ) );
Bootstrap::get( OUString( RTL_CONSTASCII_USTRINGPARAM( "BRAND_BASE_DIR" ) ), aNetPath );
aIni = aNetPath + OUString( RTL_CONSTASCII_USTRINGPARAM( "/program/" SAL_CONFIGFILE( "bootstrap" ) ) );
Bootstrap aBootstrap( aIni );
aBootstrap.getFrom( OUString( RTL_CONSTASCII_USTRINGPARAM( "CustomDataUrl" ) ), aConfigPath );
aBootstrap.getFrom( OUString( RTL_CONSTASCII_USTRINGPARAM( "BaseInstallation" ) ), aNetPath );
aBootstrap.getFrom( OUString( RTL_CONSTASCII_USTRINGPARAM( "UserInstallation" ) ), aUserPath );
OUString aUPath = aUserPath;

View File

@ -303,7 +303,7 @@ bool nsscrypto_initialize( const css::uno::Reference< css::lang::XMultiServiceFa
#if defined SYSTEM_MOZILLA
OUString rootModule(RTL_CONSTASCII_USTRINGPARAM("libnssckbi"SAL_DLLEXTENSION));
#else
OUString rootModule(RTL_CONSTASCII_USTRINGPARAM("${OOO_BASE_DIR}/program/libnssckbi"SAL_DLLEXTENSION));
OUString rootModule(RTL_CONSTASCII_USTRINGPARAM("${BRAND_BASE_DIR}/program/libnssckbi"SAL_DLLEXTENSION));
#endif
::rtl::Bootstrap::expandMacros(rootModule);