Re-enable building test-active.oxt

Change-Id: I56bd0630f8d238488d9d6598d87acefe1a08fdf0
This commit is contained in:
Stephan Bergmann 2013-12-16 11:23:54 +01:00
parent c3353da0f0
commit 1327020b67
12 changed files with 92 additions and 80 deletions

View file

@ -630,6 +630,7 @@ $(eval $(call gb_Helper_register_libraries,UNOVERLIBS, \
))
$(eval $(call gb_Helper_register_libraries,EXTENSIONLIBS, \
active_native \
mysqlc \
passive_native \
))
@ -676,6 +677,7 @@ $(eval $(call gb_Helper_register_jars,OOO, \
$(eval $(call gb_Helper_register_jars,OXT, \
EvolutionarySolver \
active_java \
mediawiki \
nlpsolver \
passive_java \

View file

@ -0,0 +1,23 @@
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# 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/.
#
$(eval $(call gb_Extension_Extension,test-active,desktop/test/deployment/active,nodeliver))
$(eval $(call gb_Extension_add_files,test-active,, \
$(SRCDIR)/desktop/test/deployment/active/Addons.xcu \
$(SRCDIR)/desktop/test/deployment/active/ProtocolHandler.xcu \
$(SRCDIR)/desktop/test/deployment/active/active_python.py \
$(call gb_Jar_get_target,active_java) \
))
$(eval $(call gb_Extension_add_libraries,test-active, \
active_native \
))
# vim: set noet sw=4 ts=4:

View file

@ -0,0 +1,28 @@
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# 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/.
#
$(eval $(call gb_Jar_Jar,active_java))
$(eval $(call gb_Jar_add_sourcefiles,active_java, \
desktop/test/deployment/active/com/sun/star/comp/test/deployment/Dispatch \
desktop/test/deployment/active/com/sun/star/comp/test/deployment/Provider \
desktop/test/deployment/active/com/sun/star/comp/test/deployment/Services \
))
$(eval $(call gb_Jar_set_manifest,active_java,$(SRCDIR)/desktop/test/deployment/active/MANIFEST.MF))
$(eval $(call gb_Jar_set_packageroot,active_java,com))
$(eval $(call gb_Jar_use_jars,active_java, \
juh \
ridl \
unoil \
))
# vim: set noet sw=4 ts=4:

View file

@ -0,0 +1,28 @@
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# 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/.
#
$(eval $(call gb_Library_Library,active_native))
$(eval $(call gb_Library_add_exception_objects,active_native, \
desktop/test/deployment/active/active_native \
))
$(eval $(call gb_Library_use_externals,active_native, \
boost_headers \
))
$(eval $(call gb_Library_use_libraries,active_native, \
cppu \
cppuhelper \
sal \
))
$(eval $(call gb_Library_use_sdk_api,active_native))
# vim: set noet sw=4 ts=4:

View file

@ -108,6 +108,14 @@ $(eval $(call gb_Module_add_targets,desktop,\
endif
ifneq (,$(filter Extension_test-active,$(MAKECMDGOALS)))
$(eval $(call gb_Module_add_targets,desktop, \
Extension_test-active \
Jar_active_java \
Library_active_native \
))
endif
ifneq (,$(filter Extension_test-passive,$(MAKECMDGOALS)))
$(eval $(call gb_Module_add_targets,desktop, \
Extension_test-passive \

View file

@ -24,7 +24,7 @@
m:full-path="ProtocolHandler.xcu"/>
<m:file-entry
m:media-type="application/vnd.sun.star.uno-component;type=native;platform=@PLATFORM@"
m:full-path="@PATH@"/>
m:full-path="active_native.uno@SHARED_EXTENSION@"/>
<m:file-entry
m:media-type="application/vnd.sun.star.uno-component;type=Java"
m:full-path="active_java.jar"/>

View file

@ -252,7 +252,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory(
pImplName, pServiceManager, pRegistryKey, services);
}
extern "C" sal_Bool SAL_CALL component_writeInfo(
extern "C" SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL component_writeInfo(
void * pServiceManager, void * pRegistryKey)
{
if (!component_writeInfoHelper(pServiceManager, pRegistryKey, services)) {

View file

@ -1,78 +0,0 @@
#
# 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/.
#
# This file incorporates work covered by the following license notice:
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed
# with this work for additional information regarding copyright
# ownership. The ASF licenses this file to you under the Apache
# License, Version 2.0 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
PRJ = ../../..
PRJNAME = desktop
TARGET = test_deployment_active
ENABLE_EXCEPTIONS = TRUE
PACKAGE = com/sun/star/comp/test/deployment/active_java
JAVAFILES = Dispatch.java Provider.java Services.java
JARFILES = juh.jar ridl.jar unoil.jar
.INCLUDE: settings.mk
DLLPRE =
SLOFILES = $(SHL1OBJS)
SHL1TARGET = active_native.uno
SHL1OBJS = $(SLO)/active_native.obj
SHL1RPATH = OXT
SHL1STDLIBS = $(CPPUHELPERLIB) $(CPPULIB) $(SALLIB)
SHL1VERSIONMAP = $(SOLARENV)/src/reg-component.map
DEF1NAME = $(SHL1TARGET)
.INCLUDE: target.mk
.IF "$(ENABLE_JAVA)" != ""
ALLTAR : $(MISC)/active.oxt
$(MISC)/active.oxt : manifest.xml description.xml Addons.xcu \
ProtocolHandler.xcu $(SHL1TARGETN) $(MISC)/$(TARGET)/active_java.jar \
active_python.py
$(RM) $@
$(RM) -r $(MISC)/$(TARGET)/active.oxt-zip
$(MKDIR) $(MISC)/$(TARGET)/active.oxt-zip
$(MKDIRHIER) $(MISC)/$(TARGET)/active.oxt-zip/META-INF
$(SED) -e 's|@PATH@|$(SHL1TARGETN:f)|g' \
-e 's|@PLATFORM@|$(RTL_OS:l)_$(RTL_ARCH:l)|g' < manifest.xml \
> $(MISC)/$(TARGET)/active.oxt-zip/META-INF/manifest.xml
$(COPY) description.xml Addons.xcu ProtocolHandler.xcu $(SHL1TARGETN) \
$(MISC)/$(TARGET)/active_java.jar active_python.py \
$(MISC)/$(TARGET)/active.oxt-zip/
cd $(MISC)/$(TARGET)/active.oxt-zip && zip ../../active.oxt \
META-INF/manifest.xml description.xml Addons.xcu ProtocolHandler.xcu \
$(SHL1TARGETN:f) active_java.jar active_python.py
$(MISC)/$(TARGET)/active_java.jar : MANIFEST.MF $(JAVATARGET)
$(MKDIRHIER) $(@:d)
$(RM) $@
$(RM) -r $(MISC)/$(TARGET)/active_java.jar-zip
$(MKDIR) $(MISC)/$(TARGET)/active_java.jar-zip
$(MKDIRHIER) $(MISC)/$(TARGET)/active_java.jar-zip/META-INF \
$(MISC)/$(TARGET)/active_java.jar-zip/$(PACKAGE)
$(COPY) MANIFEST.MF $(MISC)/$(TARGET)/active_java.jar-zip/META-INF/
$(COPY) $(foreach,i,$(JAVAFILES:b) $(CLASSDIR)/$(PACKAGE)/$i.class) \
$(MISC)/$(TARGET)/active_java.jar-zip/$(PACKAGE)/
cd $(MISC)/$(TARGET)/active_java.jar-zip && zip ../active_java.jar \
META-INF/MANIFEST.MF $(foreach,i,$(JAVAFILES:b) $(PACKAGE)/$i.class)
.ENDIF

View file

@ -99,6 +99,7 @@ certain functionality.
@li @c desktop.migration
@li @c desktop.offacc
@li @c desktop.splash
@li @c desktop.test
@section Draw