summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Repository.mk2
-rw-r--r--desktop/Extension_test-active.mk23
-rw-r--r--desktop/Jar_active_java.mk28
-rw-r--r--desktop/Library_active_native.mk28
-rw-r--r--desktop/Module_desktop.mk8
-rw-r--r--desktop/test/deployment/active/META-INF/manifest.xml (renamed from desktop/test/deployment/active/manifest.xml)2
-rw-r--r--desktop/test/deployment/active/active_native.cxx2
-rw-r--r--desktop/test/deployment/active/com/sun/star/comp/test/deployment/Dispatch.java (renamed from desktop/test/deployment/active/Dispatch.java)0
-rw-r--r--desktop/test/deployment/active/com/sun/star/comp/test/deployment/Provider.java (renamed from desktop/test/deployment/active/Provider.java)0
-rw-r--r--desktop/test/deployment/active/com/sun/star/comp/test/deployment/Services.java (renamed from desktop/test/deployment/active/Services.java)0
-rw-r--r--desktop/test/deployment/active/makefile.mk78
-rw-r--r--include/sal/log-areas.dox1
12 files changed, 92 insertions, 80 deletions
diff --git a/Repository.mk b/Repository.mk
index d4a103c3c18b..3362b71843be 100644
--- a/Repository.mk
+++ b/Repository.mk
@@ -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 \
diff --git a/desktop/Extension_test-active.mk b/desktop/Extension_test-active.mk
new file mode 100644
index 000000000000..fbb329f24cfb
--- /dev/null
+++ b/desktop/Extension_test-active.mk
@@ -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:
diff --git a/desktop/Jar_active_java.mk b/desktop/Jar_active_java.mk
new file mode 100644
index 000000000000..5fa49e840297
--- /dev/null
+++ b/desktop/Jar_active_java.mk
@@ -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:
diff --git a/desktop/Library_active_native.mk b/desktop/Library_active_native.mk
new file mode 100644
index 000000000000..7c09c10737ec
--- /dev/null
+++ b/desktop/Library_active_native.mk
@@ -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:
diff --git a/desktop/Module_desktop.mk b/desktop/Module_desktop.mk
index 20e996b56393..b54bc96462d0 100644
--- a/desktop/Module_desktop.mk
+++ b/desktop/Module_desktop.mk
@@ -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 \
diff --git a/desktop/test/deployment/active/manifest.xml b/desktop/test/deployment/active/META-INF/manifest.xml
index 001ca8db46cf..7cca7841d48b 100644
--- a/desktop/test/deployment/active/manifest.xml
+++ b/desktop/test/deployment/active/META-INF/manifest.xml
@@ -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"/>
diff --git a/desktop/test/deployment/active/active_native.cxx b/desktop/test/deployment/active/active_native.cxx
index 2242c6bb4d6a..f84336d8e973 100644
--- a/desktop/test/deployment/active/active_native.cxx
+++ b/desktop/test/deployment/active/active_native.cxx
@@ -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)) {
diff --git a/desktop/test/deployment/active/Dispatch.java b/desktop/test/deployment/active/com/sun/star/comp/test/deployment/Dispatch.java
index f50cdeac59a5..f50cdeac59a5 100644
--- a/desktop/test/deployment/active/Dispatch.java
+++ b/desktop/test/deployment/active/com/sun/star/comp/test/deployment/Dispatch.java
diff --git a/desktop/test/deployment/active/Provider.java b/desktop/test/deployment/active/com/sun/star/comp/test/deployment/Provider.java
index 3b9f8b88ee79..3b9f8b88ee79 100644
--- a/desktop/test/deployment/active/Provider.java
+++ b/desktop/test/deployment/active/com/sun/star/comp/test/deployment/Provider.java
diff --git a/desktop/test/deployment/active/Services.java b/desktop/test/deployment/active/com/sun/star/comp/test/deployment/Services.java
index 1af3f42b7da9..1af3f42b7da9 100644
--- a/desktop/test/deployment/active/Services.java
+++ b/desktop/test/deployment/active/com/sun/star/comp/test/deployment/Services.java
diff --git a/desktop/test/deployment/active/makefile.mk b/desktop/test/deployment/active/makefile.mk
deleted file mode 100644
index baa79381e371..000000000000
--- a/desktop/test/deployment/active/makefile.mk
+++ /dev/null
@@ -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
diff --git a/include/sal/log-areas.dox b/include/sal/log-areas.dox
index 3d916e67d8ae..ed8e39e59ded 100644
--- a/include/sal/log-areas.dox
+++ b/include/sal/log-areas.dox
@@ -99,6 +99,7 @@ certain functionality.
@li @c desktop.migration
@li @c desktop.offacc
@li @c desktop.splash
+@li @c desktop.test
@section Draw