Adapt ure/source/uretest/ to passive component registration

(regview only works for old binary .rdb files, so test-regview needs to use
types.rdb now)

Change-Id: Icd68122c08ae723010c42a8515e09c2d81f0cdda
This commit is contained in:
Stephan Bergmann 2012-12-18 14:19:01 +01:00
parent a25bec0cb2
commit b980eca67e
5 changed files with 31 additions and 28 deletions

View File

@ -32,12 +32,6 @@ public final class JavaTest implements XTest {
throw new TestException("test", this);
}
public static boolean __writeRegistryServiceInfo(XRegistryKey key) {
return
FactoryHelper.writeRegistryServiceInfo(
IMPLEMENTATION_NAME, SERVICE_NAME, key);
}
public static XSingleServiceFactory __getServiceFactory(
String name, XMultiServiceFactory factory, XRegistryKey key)
{

View File

@ -279,13 +279,10 @@ out.sdk/types.urd: types.idl | out.sdk
$(IDLC) -O$(@D) -I$(IDL_DIR) -cid -we $<
out.sdk/services.rdb: out.sdk/cpptest.uno.$(SHAREDLIB_EXT) \
out.sdk/javatest.uno.jar | out.sdk
out.sdk/services.rdb: services.rdb.in | out.sdk/cpptest.uno.$(SHAREDLIB_EXT) \
out.sdk/javatest.uno.jar out.sdk
$(DEL) $(subst /,$(PS),$@)
$(REGCOMP) -register -r $@ \
-c $(URLPREFIX)$(cwd)/out.sdk/cpptest.uno.$(SHAREDLIB_EXT)
$(REGCOMP) -register -br "$(URE_TYPES)" -br "$(URE_SERVICES)" -r $@ \
-c $(URLPREFIX)$(cwd)/out.sdk/javatest.uno.jar
sed -e s/@SHAREDLIB_EXT@/$(SHAREDLIB_EXT)/ < $^ > $@
out.sdk:

View File

@ -33,7 +33,7 @@ URE_HOME ?= /opt/openoffice.org/ure
check: test-regview test-cpptest test-javatest test-javanative test-clientserver
.PHONY: test-regview
test-regview: out.pln/services.rdb
test-regview: out.pln/types.rdb
$(URE_HOME)/bin/regview $< > /dev/null
.PHONY: test-cpptest
@ -263,14 +263,9 @@ out.pln/types.urd: types.idl | out.pln
-I$(SDK_HOME)/idl -cid -we $<
out.pln/services.rdb: out.pln/cpptest.uno.so out.pln/javatest.uno.jar | out.pln
rm -f $@
$(URE_HOME)/bin/regcomp -register -r $@ \
-c file://$(PWD)/out.pln/cpptest.uno.so
$(URE_HOME)/bin/regcomp -register \
-br $(URE_HOME)/share/misc/types.rdb \
-br $(URE_HOME)/share/misc/services.rdb -r $@ \
-c file://$(PWD)/out.pln/javatest.uno.jar
out.pln/services.rdb: services.rdb.in | out.pln/cpptest.uno.so \
out.pln/javatest.uno.jar out.pln
sed -e s/@SHAREDLIB_EXT@/so/ < $^ > $@
out.pln/lib/libuno_cppu.so: | out.pln/lib

View File

@ -93,13 +93,6 @@ cppu::ImplementationEntry entries[] = {
}
extern "C" SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL component_writeInfo(
void * serviceManager, void * registryKey)
{
return cppu::component_writeInfoHelper(
serviceManager, registryKey, entries);
}
extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory(
char const * implName, void * serviceManager, void * registryKey)
{

View File

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
-->
<components xmlns="http://openoffice.org/2010/uno-components">
<component
loader="com.sun.star.loader.SharedLibrary"
uri="./cpptest.uno.@SHAREDLIB_EXT@">
<implementation name="test.cpp.cpptest.Component">
<service name="test.types.CppTest"/>
</implementation>
</component>
<component loader="com.sun.star.loader.Java2" uri="./javatest.uno.jar">
<implementation name="test.java.javatest.Component">
<service name="test.types.JavaTest"/>
</implementation>
</component>
</components>