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:
@@ -32,12 +32,6 @@ public final class JavaTest implements XTest {
|
|||||||
throw new TestException("test", this);
|
throw new TestException("test", this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean __writeRegistryServiceInfo(XRegistryKey key) {
|
|
||||||
return
|
|
||||||
FactoryHelper.writeRegistryServiceInfo(
|
|
||||||
IMPLEMENTATION_NAME, SERVICE_NAME, key);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static XSingleServiceFactory __getServiceFactory(
|
public static XSingleServiceFactory __getServiceFactory(
|
||||||
String name, XMultiServiceFactory factory, XRegistryKey key)
|
String name, XMultiServiceFactory factory, XRegistryKey key)
|
||||||
{
|
{
|
||||||
|
@@ -279,13 +279,10 @@ out.sdk/types.urd: types.idl | out.sdk
|
|||||||
$(IDLC) -O$(@D) -I$(IDL_DIR) -cid -we $<
|
$(IDLC) -O$(@D) -I$(IDL_DIR) -cid -we $<
|
||||||
|
|
||||||
|
|
||||||
out.sdk/services.rdb: out.sdk/cpptest.uno.$(SHAREDLIB_EXT) \
|
out.sdk/services.rdb: services.rdb.in | out.sdk/cpptest.uno.$(SHAREDLIB_EXT) \
|
||||||
out.sdk/javatest.uno.jar | out.sdk
|
out.sdk/javatest.uno.jar out.sdk
|
||||||
$(DEL) $(subst /,$(PS),$@)
|
$(DEL) $(subst /,$(PS),$@)
|
||||||
$(REGCOMP) -register -r $@ \
|
sed -e s/@SHAREDLIB_EXT@/$(SHAREDLIB_EXT)/ < $^ > $@
|
||||||
-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
|
|
||||||
|
|
||||||
|
|
||||||
out.sdk:
|
out.sdk:
|
||||||
|
@@ -33,7 +33,7 @@ URE_HOME ?= /opt/openoffice.org/ure
|
|||||||
check: test-regview test-cpptest test-javatest test-javanative test-clientserver
|
check: test-regview test-cpptest test-javatest test-javanative test-clientserver
|
||||||
|
|
||||||
.PHONY: test-regview
|
.PHONY: test-regview
|
||||||
test-regview: out.pln/services.rdb
|
test-regview: out.pln/types.rdb
|
||||||
$(URE_HOME)/bin/regview $< > /dev/null
|
$(URE_HOME)/bin/regview $< > /dev/null
|
||||||
|
|
||||||
.PHONY: test-cpptest
|
.PHONY: test-cpptest
|
||||||
@@ -263,14 +263,9 @@ out.pln/types.urd: types.idl | out.pln
|
|||||||
-I$(SDK_HOME)/idl -cid -we $<
|
-I$(SDK_HOME)/idl -cid -we $<
|
||||||
|
|
||||||
|
|
||||||
out.pln/services.rdb: out.pln/cpptest.uno.so out.pln/javatest.uno.jar | out.pln
|
out.pln/services.rdb: services.rdb.in | out.pln/cpptest.uno.so \
|
||||||
rm -f $@
|
out.pln/javatest.uno.jar out.pln
|
||||||
$(URE_HOME)/bin/regcomp -register -r $@ \
|
sed -e s/@SHAREDLIB_EXT@/so/ < $^ > $@
|
||||||
-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/lib/libuno_cppu.so: | out.pln/lib
|
out.pln/lib/libuno_cppu.so: | out.pln/lib
|
||||||
|
@@ -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(
|
extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory(
|
||||||
char const * implName, void * serviceManager, void * registryKey)
|
char const * implName, void * serviceManager, void * registryKey)
|
||||||
{
|
{
|
||||||
|
24
ure/source/uretest/services.rdb.in
Normal file
24
ure/source/uretest/services.rdb.in
Normal 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>
|
Reference in New Issue
Block a user