summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac2
-rwxr-xr-xdesktop/scripts/unopkg.sh4
-rw-r--r--desktop/unx/source/start.c2
-rw-r--r--odk/config/setsdkenv_unix.sh.in2
-rw-r--r--scp2/inc/macros.inc4
-rw-r--r--scp2/source/ooo/ure.scp2
-rw-r--r--solenv/gbuild/platform/solaris.mk2
-rw-r--r--solenv/gbuild/platform/unxgcc.mk2
-rwxr-xr-xsvx/source/gengal/gengal.sh4
-rw-r--r--ure/source/uretest/Makefile.pln62
-rw-r--r--ure/source/uretest/README2
11 files changed, 49 insertions, 39 deletions
diff --git a/configure.ac b/configure.ac
index 27d6bd6d2ef4..2d69742167f3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3056,7 +3056,7 @@ else
LIBO_SHARE_PRESETS_FOLDER=presets
LIBO_SHARE_RESOURCE_FOLDER=program/resource
LIBO_SHARE_SHELL_FOLDER=program/shell
- LIBO_URE_BIN_FOLDER=ure/bin
+ LIBO_URE_BIN_FOLDER=program
LIBO_URE_ETC_FOLDER=ure/lib
LIBO_URE_LIB_FOLDER=ure/lib
LIBO_URE_SHARE_FOLDER=ure/share
diff --git a/desktop/scripts/unopkg.sh b/desktop/scripts/unopkg.sh
index d16d2269d454..3d244a438e18 100755
--- a/desktop/scripts/unopkg.sh
+++ b/desktop/scripts/unopkg.sh
@@ -65,8 +65,8 @@ do
done
# extend the ld_library_path for java: javaldx checks the sofficerc for us
-if [ -x "$sd_prog/../ure-link/bin/javaldx" ] ; then
- my_path=`"$sd_prog/../ure-link/bin/javaldx" $BOOTSTRAPVARS \
+if [ -x "$sd_prog/javaldx" ] ; then
+ my_path=`"$sd_prog/javaldx" $BOOTSTRAPVARS \
"-env:INIFILENAME=vnd.sun.star.pathname:$sd_prog/redirectrc"`
if [ -n "$my_path" ] ; then
sd_platform=`uname -s`
diff --git a/desktop/unx/source/start.c b/desktop/unx/source/start.c
index 5fb0dc3ee02e..9e5f7f1e0c81 100644
--- a/desktop/unx/source/start.c
+++ b/desktop/unx/source/start.c
@@ -704,7 +704,7 @@ exec_javaldx (Args *args)
rtl_uString_newFromAscii( &pApp, "file://" );
rtl_uString_newConcat( &pApp, pApp, args->pAppPath );
pTmp = NULL;
- rtl_uString_newFromAscii( &pTmp, "../ure-link/bin/javaldx" );
+ rtl_uString_newFromAscii( &pTmp, "javaldx" );
rtl_uString_newConcat( &pApp, pApp, pTmp );
rtl_uString_release( pTmp );
diff --git a/odk/config/setsdkenv_unix.sh.in b/odk/config/setsdkenv_unix.sh.in
index c1b96fbda9d6..83e074effaff 100644
--- a/odk/config/setsdkenv_unix.sh.in
+++ b/odk/config/setsdkenv_unix.sh.in
@@ -112,7 +112,7 @@ case ${sdk_platform} in
OO_SDK_URE_JAVA_DIR=${OO_SDK_URE_HOME}/Resources/java
;;
*)
- OO_SDK_URE_BIN_DIR=${OO_SDK_URE_HOME}/bin
+ OO_SDK_URE_BIN_DIR=${OFFICE_PROGRAM_PATH}
OO_SDK_URE_LIB_DIR=${OO_SDK_URE_HOME}/lib
OO_SDK_URE_JAVA_DIR=${OO_SDK_URE_HOME}/share/java
;;
diff --git a/scp2/inc/macros.inc b/scp2/inc/macros.inc
index d8c737098071..0f21cdffb758 100644
--- a/scp2/inc/macros.inc
+++ b/scp2/inc/macros.inc
@@ -74,7 +74,11 @@
#define GID_BRAND_DIR_ETC gid_Brand_Dir_Program
#define GID_DIR_PY gid_Brand_Dir_Program
#define GID_DIR_URE gid_Dir_Common_Ure
+#if defined UNX
+ #define GID_DIR_URE_BIN gid_Brand_Dir_Program
+#else
#define GID_DIR_URE_BIN gid_Dir_Ure_Bin
+#endif
#define GID_DIR_URE_JAVA gid_Dir_Ure_Java
#define GID_DIR_URE_LIB gid_Dir_Ure_Lib
#define GID_DIR_URE_SHARE gid_Dir_Ure_Share
diff --git a/scp2/source/ooo/ure.scp b/scp2/source/ooo/ure.scp
index 9da2e26118b1..4c250b910664 100644
--- a/scp2/source/ooo/ure.scp
+++ b/scp2/source/ooo/ure.scp
@@ -33,10 +33,12 @@ Directory gid_Dir_Common_Ure
Styles = (UREDIRECTORY);
End
+#if defined WNT
Directory gid_Dir_Ure_Bin
ParentID = gid_Dir_Common_Ure;
DosName = "bin";
End
+#endif
#if !defined WNT
Directory gid_Dir_Ure_Lib
diff --git a/solenv/gbuild/platform/solaris.mk b/solenv/gbuild/platform/solaris.mk
index 0f0ff13808c5..b68c68ef7e3b 100644
--- a/solenv/gbuild/platform/solaris.mk
+++ b/solenv/gbuild/platform/solaris.mk
@@ -103,7 +103,7 @@ endef
gb_LinkTarget__RPATHS := \
URELIB:\dORIGIN \
- UREBIN:\dORIGIN/../lib:\dORIGIN \
+ UREBIN:\dORIGIN/../ure-link/lib \
OOO:\dORIGIN:\dORIGIN/../ure-link/lib \
SDKBIN:\dORIGIN/../../ure-link/lib \
OXT: \
diff --git a/solenv/gbuild/platform/unxgcc.mk b/solenv/gbuild/platform/unxgcc.mk
index 562d535ce61a..25487cba94a1 100644
--- a/solenv/gbuild/platform/unxgcc.mk
+++ b/solenv/gbuild/platform/unxgcc.mk
@@ -98,7 +98,7 @@ endef
gb_LinkTarget__RPATHS := \
URELIB:\dORIGIN \
- UREBIN:\dORIGIN/../lib:\dORIGIN \
+ UREBIN:\dORIGIN/../ure-link/lib \
OOO:\dORIGIN:\dORIGIN/../ure-link/lib \
SDKBIN:\dORIGIN/../../ure-link/lib \
OXT: \
diff --git a/svx/source/gengal/gengal.sh b/svx/source/gengal/gengal.sh
index 0ac61cf819ee..9b342854f594 100755
--- a/svx/source/gengal/gengal.sh
+++ b/svx/source/gengal/gengal.sh
@@ -65,8 +65,8 @@ do
done
# extend the ld_library_path for java: javaldx checks the sofficerc for us
-if [ -x "$sd_prog/../ure-link/bin/javaldx" ] ; then
- my_path=`"$sd_prog/../ure-link/bin/javaldx" $BOOTSTRAPVARS \
+if [ -x "$sd_prog/javaldx" ] ; then
+ my_path=`"$sd_prog/javaldx" $BOOTSTRAPVARS \
"-env:INIFILENAME=vnd.sun.star.pathname:$sd_prog/redirectrc"`
if [ -n "$my_path" ] ; then
sd_platform=`uname -s`
diff --git a/ure/source/uretest/Makefile.pln b/ure/source/uretest/Makefile.pln
index 38888d659f28..f239ab9f75ef 100644
--- a/ure/source/uretest/Makefile.pln
+++ b/ure/source/uretest/Makefile.pln
@@ -20,11 +20,11 @@
#SDK_HOME := /opt/openoffice.org/basis3.1/sdk
# The following variables can be set, if necessary (see README):
-#URE_HOME := /opt/openoffice.org/ure
+#URE_HOME := /opt/openoffice.org
#GCCS_COMPAT := LD_PRELOAD=/lib/libgcc_s.so.1
-URE_HOME ?= /opt/openoffice.org/ure
+URE_HOME ?= /opt/openoffice.org
.DELETE_ON_ERROR:
@@ -34,18 +34,18 @@ check: test-regview test-cpptest test-javatest test-javanative test-clientserver
.PHONY: test-regview
test-regview: out.pln/types.rdb
- $(URE_HOME)/bin/regview $< > /dev/null
+ $(URE_HOME)/program/regview $< > /dev/null
.PHONY: test-cpptest
test-cpptest: out.pln/cppmain.uno.so out.pln/types.rdb out.pln/services.rdb
- $(GCCS_COMPAT) $(URE_HOME)/bin/uno \
+ $(GCCS_COMPAT) $(URE_HOME)/program/uno \
-c test.cpp.cppmain.Component -l file://$(PWD)/$< \
-env:URE_MORE_TYPES=file://$(PWD)/out.pln/types.rdb \
-env:URE_MORE_SERVICES=file://$(PWD)/out.pln/services.rdb
.PHONY: test-javatest
test-javatest: out.pln/javamain.uno.jar out.pln/types.rdb out.pln/services.rdb
- $(GCCS_COMPAT) $(URE_HOME)/bin/uno \
+ $(GCCS_COMPAT) $(URE_HOME)/program/uno \
-c test.java.javamain.Component -l file://$(PWD)/$< \
-env:URE_MORE_TYPES=file://$(PWD)/out.pln/types.rdb \
-env:URE_MORE_SERVICES=file://$(PWD)/out.pln/services.rdb
@@ -55,20 +55,21 @@ test-javanative: out.pln/runner.jar out.pln/javanative.jar \
out.pln/types.rdb out.pln/services.rdb
URE_MORE_TYPES=file://$(PWD)/out.pln/types.rdb \
URE_MORE_SERVICES=file://$(PWD)/out.pln/services.rdb \
- $(GCCS_COMPAT) LD_LIBRARY_PATH=$(URE_HOME)/lib java \
- -jar out.pln/runner.jar file://$(URE_HOME)/share/java/ \
+ $(GCCS_COMPAT) LD_LIBRARY_PATH=$(URE_HOME)/ure-link/lib java \
+ -jar out.pln/runner.jar file://$(URE_HOME)/ure-link/share/java/ \
file://$(PWD)/out.pln/javanative.jar
.PHONY: test-clientserver
test-clientserver: out.pln/cppserver.uno.so out.pln/types.rdb \
out.pln/services.rdb out.pln/runner.jar out.pln/javaclient.jar
- $(GCCS_COMPAT) $(URE_HOME)/bin/uno -c test.cpp.cppserver.Component \
+ $(GCCS_COMPAT) $(URE_HOME)/program/uno -c test.cpp.cppserver.Component \
-l file://$(PWD)/out.pln/cppserver.uno.so \
-env:URE_MORE_TYPES=file://$(PWD)/out.pln/types.rdb \
-env:URE_MORE_SERVICES=file://$(PWD)/out.pln/services.rdb \
-u 'uno:pipe,name=ure_test;urp;server' --singleaccept &
sleep 5 && \
- java -jar out.pln/runner.jar file://$(URE_HOME)/share/java/ \
+ java -jar out.pln/runner.jar \
+ file://$(URE_HOME)/ure-link/share/java/ \
file://$(PWD)/out.pln/javaclient.jar \
'uno:pipe,name=ure_test;urp;server'
@@ -120,15 +121,16 @@ out.pln/cppserver.o: cppserver.cc out.pln/cpputypes.cppumaker.flag \
out.pln/cpputypes.cppumaker.flag: | out.pln
- LD_LIBRARY_PATH=$(URE_HOME)/lib $(SDK_HOME)/bin/cppumaker \
+ LD_LIBRARY_PATH=$(URE_HOME)/ure-link/lib $(SDK_HOME)/bin/cppumaker \
-O./out.pln/include/cpputypes \
'-Tcom.sun.star.beans.Introspection;com.sun.star.beans.theIntrospection;com.sun.star.bridge.BridgeFactory;com.sun.star.bridge.UnoUrlResolver;com.sun.star.connection.Acceptor;com.sun.star.connection.Connector;com.sun.star.io.Pipe;com.sun.star.io.TextInputStream;com.sun.star.io.TextOutputStream;com.sun.star.java.JavaVirtualMachine;com.sun.star.lang.DisposedException;com.sun.star.lang.EventObject;com.sun.star.lang.XMain;com.sun.star.lang.XMultiComponentFactory;com.sun.star.lang.XMultiServiceFactory;com.sun.star.lang.XSingleComponentFactory;com.sun.star.lang.XSingleServiceFactory;com.sun.star.lang.XTypeProvider;com.sun.star.loader.Java;com.sun.star.loader.SharedLibrary;com.sun.star.reflection.ProxyFactory;com.sun.star.registry.ImplementationRegistration;com.sun.star.registry.SimpleRegistry;com.sun.star.registry.XRegistryKey;com.sun.star.script.Converter;com.sun.star.script.Invocation;com.sun.star.security.AccessController;com.sun.star.security.Policy;com.sun.star.uno.DeploymentException;com.sun.star.uno.Exception;com.sun.star.uno.NamingService;com.sun.star.uno.RuntimeException;com.sun.star.uno.XAggregation;com.sun.star.uno.XComponentContext;com.sun.star.uno.XCurrentContext;com.sun.star.uno.XInterface;com.sun.star.uno.XWeak;com.sun.star.uri.ExternalUriReferenceTranslator;com.sun.star.uri.UriReferenceFactory;com.sun.star.uri.VndSunStarPkgUrlReferenceFactory;com.sun.star.util.theMacroExpander' \
- $(URE_HOME)/share/misc/types.rdb
+ $(URE_HOME)/ure-link/share/misc/types.rdb
touch $@
out.pln/types.cppumaker.flag: out.pln/types.rdb | out.pln
- LD_LIBRARY_PATH=$(URE_HOME)/lib $(SDK_HOME)/bin/cppumaker \
- -O./out.pln/include/types $< -X$(URE_HOME)/share/misc/types.rdb
+ LD_LIBRARY_PATH=$(URE_HOME)/ure-link/lib $(SDK_HOME)/bin/cppumaker \
+ -O./out.pln/include/types $< \
+ -X$(URE_HOME)/ure-link/share/misc/types.rdb
touch $@
@@ -146,7 +148,7 @@ out.pln/class/javamain/test/java/javamain/JavaMain.class: JavaMain.java \
rm -rf out.pln/class/javamain
mkdir out.pln/class/javamain
javac -classpath \
- $(URE_HOME)/share/java/jurt.jar:$(URE_HOME)/share/java/ridl.jar:out.pln/tester.jar \
+ $(URE_HOME)/ure-link/share/java/jurt.jar:$(URE_HOME)/ure-link/share/java/ridl.jar:out.pln/tester.jar \
-sourcepath . -d out.pln/class/javamain $<
@@ -156,14 +158,14 @@ out.pln/runner.jar: out.pln/class/runner/test/java/runner/Runner.class \
out.pln/runner.mf: runner.mf.template | out.pln
sed -e \
- 's~^Class-Path:$$~& file://$(URE_HOME)/share/java/unoloader.jar~' \
+ 's~^Class-Path:$$~& file://$(URE_HOME)/ure-link/share/java/unoloader.jar~' \
-e 's~^UNO-Type-Path:$$~& ~' $< > $@
out.pln/class/runner/test/java/runner/Runner.class: Runner.java | out.pln/class
rm -rf out.pln/class/runner
mkdir out.pln/class/runner
- javac -classpath $(URE_HOME)/share/java/unoloader.jar -sourcepath . \
- -d out.pln/class/runner $<
+ javac -classpath $(URE_HOME)/ure-link/share/java/unoloader.jar \
+ -sourcepath . -d out.pln/class/runner $<
out.pln/tester.jar: out.pln/class/tester/test/java/tester/Tester.class \
@@ -178,7 +180,8 @@ out.pln/class/tester/test/java/tester/Tester.class: Tester.java \
out.pln/types.jar | out.pln/class
rm -rf out.pln/class/tester
mkdir out.pln/class/tester
- javac -classpath $(URE_HOME)/share/java/ridl.jar:out.pln/types.jar \
+ javac -classpath \
+ $(URE_HOME)/ure-link/share/java/ridl.jar:out.pln/types.jar \
-sourcepath . -d out.pln/class/tester $<
@@ -196,7 +199,7 @@ out.pln/class/javatest/test/java/javatest/JavaTest.class: JavaTest.java \
rm -rf out.pln/class/javatest
mkdir out.pln/class/javatest
javac -classpath \
- $(URE_HOME)/share/java/jurt.jar:$(URE_HOME)/share/java/ridl.jar:out.pln/types.jar \
+ $(URE_HOME)/ure-link/share/java/jurt.jar:$(URE_HOME)/ure-link/share/java/ridl.jar:out.pln/types.jar \
-sourcepath . -d out.pln/class/javatest $<
@@ -214,7 +217,7 @@ out.pln/class/javanative/test/java/javanative/JavaNative.class: \
rm -rf out.pln/class/javanative
mkdir out.pln/class/javanative
javac -classpath \
- $(URE_HOME)/share/java/juh.jar:$(URE_HOME)/share/java/ridl.jar:out.pln/tester.jar \
+ $(URE_HOME)/ure-link/share/java/juh.jar:$(URE_HOME)/ure-link/share/java/ridl.jar:out.pln/tester.jar \
-sourcepath . -d out.pln/class/javanative $<
@@ -232,7 +235,7 @@ out.pln/class/javaclient/test/java/javaclient/JavaClient.class: \
rm -rf out.pln/class/javaclient
mkdir out.pln/class/javaclient
javac -classpath \
- $(URE_HOME)/share/java/juh.jar:$(URE_HOME)/share/java/ridl.jar:out.pln/types.jar \
+ $(URE_HOME)/ure-link/share/java/juh.jar:$(URE_HOME)/ure-link/share/java/ridl.jar:out.pln/types.jar \
-sourcepath . -d out.pln/class/javaclient $<
@@ -244,16 +247,17 @@ out.pln/types.mf: types.mf.template | out.pln
out.pln/types.javamaker.flag: out.pln/types.rdb | out.pln out.pln/class
rm -rf out.pln/class/types
- LD_LIBRARY_PATH=$(URE_HOME)/lib $(SDK_HOME)/bin/javamaker \
- -O./out.pln/class/types $< -X$(URE_HOME)/share/misc/types.rdb
+ LD_LIBRARY_PATH=$(URE_HOME)/ure-link/lib $(SDK_HOME)/bin/javamaker \
+ -O./out.pln/class/types $< \
+ -X$(URE_HOME)/ure-link/share/misc/types.rdb
touch $@
out.pln/types.rdb: out.pln/types.urd | out.pln
- $(URE_HOME)/bin/regmerge $@ /UCR $<
+ $(URE_HOME)/program/regmerge $@ /UCR $<
out.pln/types.urd: types.idl | out.pln
- LD_LIBRARY_PATH=$(URE_HOME)/lib $(SDK_HOME)/bin/idlc -O$(@D) \
+ LD_LIBRARY_PATH=$(URE_HOME)/ure-link/lib $(SDK_HOME)/bin/idlc -O$(@D) \
-I$(SDK_HOME)/idl -cid -we $<
@@ -263,16 +267,16 @@ out.pln/services.rdb: services.rdb.in | out.pln/cpptest.uno.so \
out.pln/lib/libuno_cppu.so: | out.pln/lib
- ln -fs $(URE_HOME)/lib/libuno_cppu.so.3 $@
+ ln -fs $(URE_HOME)/ure-link/lib/libuno_cppu.so.3 $@
out.pln/lib/libuno_cppuhelpergcc3.so: | out.pln/lib
- ln -fs $(URE_HOME)/lib/libuno_cppuhelpergcc3.so.3 $@
+ ln -fs $(URE_HOME)/ure-link/lib/libuno_cppuhelpergcc3.so.3 $@
out.pln/lib/libuno_sal.so: | out.pln/lib
- ln -fs $(URE_HOME)/lib/libuno_sal.so.3 $@
+ ln -fs $(URE_HOME)/ure-link/lib/libuno_sal.so.3 $@
out.pln/lib/libuno_salhelpergcc3.so: | out.pln/lib
- ln -fs $(URE_HOME)/lib/libuno_salhelpergcc3.so.3 $@
+ ln -fs $(URE_HOME)/ure-link/lib/libuno_salhelpergcc3.so.3 $@
out.pln:
diff --git a/ure/source/uretest/README b/ure/source/uretest/README
index 18b74c8a2520..2c611a8567b2 100644
--- a/ure/source/uretest/README
+++ b/ure/source/uretest/README
@@ -52,7 +52,7 @@ contains the java, javac, and jar executables. For the minimum version
requirements, see the SDK Installation Guide ($SDK_HOME/docs/install.html).
- URE_HOME (optional)
-Overwrites the default URE location, that is, /opt/openoffice.org/ure.
+Overwrites the default URE location, that is, /opt/openoffice.org.
- GCCS_COMPAT (optional)
Fixes incompatibility issues between the GCC that was used to build the URE and