[Libreoffice-commits] core.git: Branch 'aoo/trunk' - 4 commits - automation/source Module_ooo.mk postprocess/packcomponents Repository.mk solenv/ant xmlhelp/Ant_LuceneHelpWrapper.mk xmlhelp/inc xmlhelp/java xmlhelp/Library_tvhlp1.mk xmlhelp/Library_ucpchelp1.mk xmlhelp/Makefile xmlhelp/Module_xmlhelp.mk xmlhelp/Package_xml.mk xmlhelp/Package_xsl.mk xmlhelp/prj xmlhelp/source xmlhelp/util xmlhelp/Zip_helpxsl.mk
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Aug 16 10:27:37 UTC 2018
Rebased ref, commits from common ancestor:
commit d61d3a42a96e612c400782a3c973108c6e7edb4f
Author: Damjan Jovanovic <damjan at apache.org>
AuthorDate: Thu Aug 16 05:52:54 2018 +0000
Commit: Damjan Jovanovic <damjan at apache.org>
CommitDate: Thu Aug 16 05:52:54 2018 +0000
Add a few forgotten exports.
Patch by: me
diff --git a/automation/source/server/server.cxx b/automation/source/server/server.cxx
index cfc6cf821727..ee6cfadc54ca 100644
--- a/automation/source/server/server.cxx
+++ b/automation/source/server/server.cxx
@@ -961,7 +961,7 @@ RemoteControl::~RemoteControl()
static ::osl::Mutex aMutex;
static RemoteControl* pRemoteControl = 0;
-extern "C" void CreateRemoteControl()
+extern "C" AUTOMATION_DLLPUBLIC void CreateRemoteControl()
{
if ( !pRemoteControl )
{
@@ -971,19 +971,19 @@ extern "C" void CreateRemoteControl()
}
}
-extern "C" void DestroyRemoteControl()
+extern "C" AUTOMATION_DLLPUBLIC void DestroyRemoteControl()
{
::osl::MutexGuard aGuard( aMutex );
delete pRemoteControl;
pRemoteControl = 0;
}
-extern "C" void CreateEventLogger()
+extern "C" AUTOMATION_DLLPUBLIC void CreateEventLogger()
{
MacroRecorder::GetMacroRecorder()->SetActionLog();
}
-extern "C" void DestroyEventLogger()
+extern "C" AUTOMATION_DLLPUBLIC void DestroyEventLogger()
{
MacroRecorder::GetMacroRecorder()->SetActionLog( sal_False ); // Will delete MacroRecorder if necessary
}
diff --git a/automation/source/server/statemnt.hxx b/automation/source/server/statemnt.hxx
index d14820333b3a..25a22547336b 100644
--- a/automation/source/server/statemnt.hxx
+++ b/automation/source/server/statemnt.hxx
@@ -51,6 +51,7 @@
#include <vcl/event.hxx>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <automation/commtypes.hxx>
+#include <automation/automationdllapi.h>
class Window;
class SystemWindow;
@@ -78,7 +79,7 @@ class EditWindow;
extern "C"
{
#endif
- void SAL_CALL osl_TestToolDebugPrint( const sal_Char *pString );
+ AUTOMATION_DLLPUBLIC void SAL_CALL osl_TestToolDebugPrint( const sal_Char *pString );
#ifdef __cplusplus
}
#endif
commit 8394b85fd149a6f33480f32c29b784cf828eb8ec
Author: Damjan Jovanovic <damjan at apache.org>
AuthorDate: Thu Aug 16 01:05:08 2018 +0000
Commit: Damjan Jovanovic <damjan at apache.org>
CommitDate: Thu Aug 16 01:05:08 2018 +0000
On some operating systems, libxslt doesn't automatically link to libxml2,
so we have to link it manually.
Patch by: me
diff --git a/xmlhelp/Library_ucpchelp1.mk b/xmlhelp/Library_ucpchelp1.mk
index 135ddb7926b2..771f1d59eb18 100644
--- a/xmlhelp/Library_ucpchelp1.mk
+++ b/xmlhelp/Library_ucpchelp1.mk
@@ -58,6 +58,7 @@ $(eval $(call gb_Library_add_linked_libs,ucpchelp1,\
$(call gb_Library_use_externals,ucpchelp1,\
expat_utf8 \
+ libxml2 \
libxslt \
)
commit b4d208ee95cfb4c0b7f70acfa86c85110249a172
Author: Damjan Jovanovic <damjan at apache.org>
AuthorDate: Wed Aug 15 18:16:27 2018 +0000
Commit: Damjan Jovanovic <damjan at apache.org>
CommitDate: Wed Aug 15 18:16:27 2018 +0000
"stl" is a mandatory library to link to.
Windows always fails to link libraries without it.
Patch by: me
diff --git a/xmlhelp/Library_tvhlp1.mk b/xmlhelp/Library_tvhlp1.mk
index cceae74278d1..2b90a78d76d2 100644
--- a/xmlhelp/Library_tvhlp1.mk
+++ b/xmlhelp/Library_tvhlp1.mk
@@ -46,6 +46,7 @@ $(eval $(call gb_Library_add_linked_libs,tvhlp1,\
cppu \
cppuhelper \
sal \
+ stl \
$(gb_STDLIBS) \
))
diff --git a/xmlhelp/Library_ucpchelp1.mk b/xmlhelp/Library_ucpchelp1.mk
index d9746a314f75..135ddb7926b2 100644
--- a/xmlhelp/Library_ucpchelp1.mk
+++ b/xmlhelp/Library_ucpchelp1.mk
@@ -51,6 +51,7 @@ $(eval $(call gb_Library_add_linked_libs,ucpchelp1,\
cppu \
cppuhelper \
sal \
+ stl \
ucbhelper \
$(gb_STDLIBS) \
))
commit b8d46d0698c58f9e8ceb931d18927853f545d543
Author: Damjan Jovanovic <damjan at apache.org>
AuthorDate: Wed Aug 15 07:01:42 2018 +0000
Commit: Damjan Jovanovic <damjan at apache.org>
CommitDate: Wed Aug 15 07:01:42 2018 +0000
Port main/xmlhelp to gbuild.
Patch by: me
diff --git a/Module_ooo.mk b/Module_ooo.mk
index 67cea532ba17..ff41468b3ef3 100644
--- a/Module_ooo.mk
+++ b/Module_ooo.mk
@@ -103,6 +103,7 @@ $(eval $(call gb_Module_add_moduledirs,ooo,\
writerfilter \
x11_extensions \
xml2cmp \
+ xmlhelp \
xmloff \
xmlreader \
xmlscript \
diff --git a/Repository.mk b/Repository.mk
index 066bd2f1b6ff..51efa03c0438 100644
--- a/Repository.mk
+++ b/Repository.mk
@@ -153,6 +153,8 @@ $(eval $(call gb_Helper_register_libraries,OOOLIBS, \
textconversiondlgs \
ootk \
tl \
+ tvhlp1 \
+ ucpchelp1 \
utl \
unordf \
unoxml \
diff --git a/postprocess/packcomponents/makefile.mk b/postprocess/packcomponents/makefile.mk
index b8d543148c1a..4c0044c95c58 100644
--- a/postprocess/packcomponents/makefile.mk
+++ b/postprocess/packcomponents/makefile.mk
@@ -141,6 +141,8 @@ my_components = \
component/unoxml/source/rdf/unordf \
component/unoxml/source/service/unoxml \
component/writerfilter/util/writerfilter \
+ component/xmlhelp/source/treeview/tvhlp1 \
+ component/xmlhelp/util/ucpchelp1 \
component/xmloff/source/transform/xof \
component/xmloff/util/xo \
component/xmlscript/util/xcr \
@@ -184,8 +186,6 @@ my_components = \
svgfilter \
syssh \
t602filter \
- tvhlp1 \
- ucpchelp1 \
updatefeed \
updchk \
vbaevents \
@@ -275,7 +275,7 @@ my_components += component/slideshow/source/engine/OGLTrans/ogltrans
.IF "$(SOLAR_JAVA)" == "TRUE"
my_components += \
- LuceneHelpWrapper \
+ component/xmlhelp/java/LuceneHelpWrapper/LuceneHelpWrapper \
ScriptFramework \
ScriptProviderForJava \
XMergeBridge \
diff --git a/solenv/ant/externals.xml b/solenv/ant/externals.xml
index 8965778e6875..0dafa892159b 100644
--- a/solenv/ant/externals.xml
+++ b/solenv/ant/externals.xml
@@ -73,4 +73,16 @@
system-path="${COMMONS_LOGGING_JAR}"
internal-filename="commons-logging-1.1.3.jar"/>
+ <define-external
+ name="lucene-core"
+ system-test="${SYSTEM_LUCENE}"
+ system-path="${LUCENE_CORE_JAR}"
+ internal-filename="lucene-core-2.9.4-dev.jar"/>
+
+ <define-external
+ name="lucene-analyzers"
+ system-test="${SYSTEM_LUCENE}"
+ system-path="${LUCENE_ANALYZERS_JAR}"
+ internal-filename="lucene-analyzers-2.9.4-dev.jar"/>
+
</project>
diff --git a/xmlhelp/source/cxxhelp/util/makefile.mk b/xmlhelp/Ant_LuceneHelpWrapper.mk
similarity index 72%
rename from xmlhelp/source/cxxhelp/util/makefile.mk
rename to xmlhelp/Ant_LuceneHelpWrapper.mk
index e41bf2b105c8..565d77702552 100644
--- a/xmlhelp/source/cxxhelp/util/makefile.mk
+++ b/xmlhelp/Ant_LuceneHelpWrapper.mk
@@ -21,26 +21,9 @@
-PRJ=..$/..$/..
+$(eval $(call gb_Ant_Ant,LuceneHelpWrapper,$(SRCDIR)/xmlhelp/java/LuceneHelpWrapper/build.xml))
-PRJNAME= xmlhelp
-TARGET= jautil
-AUTOSEG= TRUE
+$(eval $(call gb_Ant_set_componentfile,LuceneHelpWrapper,xmlhelp/java/LuceneHelpWrapper/LuceneHelpWrapper,OOO))
-ENABLE_EXCEPTIONS=TRUE
-
-# --- Settings -----------------------------------------------------
-
-.INCLUDE : settings.mk
-
-.IF "$(GUI)"=="WNT"
-CFLAGS+=-GR
-.ENDIF
-
-SLOFILES=\
- $(SLO)$/Decompressor.obj
-
-# --- Targets ------------------------------------------------------
-
-.INCLUDE : target.mk
+# vim: set noet sw=4 ts=4:
diff --git a/xmlhelp/Library_tvhlp1.mk b/xmlhelp/Library_tvhlp1.mk
new file mode 100644
index 000000000000..cceae74278d1
--- /dev/null
+++ b/xmlhelp/Library_tvhlp1.mk
@@ -0,0 +1,61 @@
+#**************************************************************
+#
+# 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
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#**************************************************************
+
+
+
+$(eval $(call gb_Library_Library,tvhlp1))
+
+$(eval $(call gb_Library_add_precompiled_header,tvhlp1,$(SRCDIR)/xmlhelp/inc/pch/precompiled_xmlhelp))
+
+$(eval $(call gb_Library_set_componentfile,tvhlp1,xmlhelp/source/treeview/tvhlp1))
+
+$(eval $(call gb_Library_set_include,tvhlp1,\
+ $$(INCLUDE) \
+ -I$(SRCDIR)/xmlhelp/inc \
+ -I$(SRCDIR)/xmlhelp/inc/pch \
+ -I$(SRCDIR)/solenv/inc \
+ -I$(OUTDIR)/inc/stl \
+ -I$(OUTDIR)/inc \
+))
+
+$(eval $(call gb_Library_add_api,tvhlp1,\
+ offapi \
+ udkapi \
+))
+
+$(eval $(call gb_Library_add_linked_libs,tvhlp1,\
+ comphelper \
+ cppu \
+ cppuhelper \
+ sal \
+ $(gb_STDLIBS) \
+))
+
+$(call gb_Library_use_externals,tvhlp1,\
+ expat_utf8 \
+)
+
+$(eval $(call gb_Library_add_exception_objects,tvhlp1,\
+ xmlhelp/source/treeview/tvfactory \
+ xmlhelp/source/treeview/tvread \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/xmlhelp/Library_ucpchelp1.mk b/xmlhelp/Library_ucpchelp1.mk
new file mode 100644
index 000000000000..d9746a314f75
--- /dev/null
+++ b/xmlhelp/Library_ucpchelp1.mk
@@ -0,0 +1,81 @@
+#**************************************************************
+#
+# 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
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#**************************************************************
+
+
+
+$(eval $(call gb_Library_Library,ucpchelp1))
+
+$(eval $(call gb_Library_add_precompiled_header,ucpchelp1,$(SRCDIR)/xmlhelp/inc/pch/precompiled_xmlhelp))
+
+$(eval $(call gb_Library_set_componentfile,ucpchelp1,xmlhelp/util/ucpchelp1))
+
+$(eval $(call gb_Library_set_include,ucpchelp1,\
+ $$(INCLUDE) \
+ -I$(SRCDIR)/xmlhelp/inc \
+ -I$(SRCDIR)/xmlhelp/inc/pch \
+ -I$(SRCDIR)/xmlhelp/source/cxxhelp/inc \
+ -I$(SRCDIR)/solenv/inc \
+ -I$(OUTDIR)/inc/stl \
+ -I$(OUTDIR)/inc \
+))
+
+$(eval $(call gb_Library_add_api,ucpchelp1,\
+ offapi \
+ udkapi \
+))
+
+$(eval $(call gb_Library_add_defs,ucpchelp1,\
+ -DHAVE_EXPAT_H \
+))
+
+$(eval $(call gb_Library_add_linked_libs,ucpchelp1,\
+ comphelper \
+ cppu \
+ cppuhelper \
+ sal \
+ ucbhelper \
+ $(gb_STDLIBS) \
+))
+
+$(call gb_Library_use_externals,ucpchelp1,\
+ expat_utf8 \
+ libxslt \
+)
+
+$(eval $(call gb_Library_add_exception_objects,ucpchelp1,\
+ xmlhelp/source/cxxhelp/provider/bufferedinputstream \
+ xmlhelp/source/cxxhelp/provider/content \
+ xmlhelp/source/cxxhelp/provider/contentcaps \
+ xmlhelp/source/cxxhelp/provider/databases \
+ xmlhelp/source/cxxhelp/provider/db \
+ xmlhelp/source/cxxhelp/provider/inputstream \
+ xmlhelp/source/cxxhelp/provider/provider \
+ xmlhelp/source/cxxhelp/provider/resultset \
+ xmlhelp/source/cxxhelp/provider/resultsetbase \
+ xmlhelp/source/cxxhelp/provider/resultsetforroot \
+ xmlhelp/source/cxxhelp/provider/resultsetforquery \
+ xmlhelp/source/cxxhelp/provider/services \
+ xmlhelp/source/cxxhelp/provider/urlparameter \
+ xmlhelp/source/cxxhelp/qe/DocGenerator \
+ xmlhelp/source/cxxhelp/util/Decompressor \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/xmlhelp/Makefile b/xmlhelp/Makefile
new file mode 100644
index 000000000000..c1d144cbd4c9
--- /dev/null
+++ b/xmlhelp/Makefile
@@ -0,0 +1,32 @@
+#**************************************************************
+#
+# 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
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#**************************************************************
+
+ifeq ($(strip $(SOLARENV)),)
+$(error No environment set!)
+endif
+
+gb_PARTIALBUILD := T
+GBUILDDIR := $(SOLARENV)/gbuild
+include $(GBUILDDIR)/gbuild.mk
+
+$(eval $(call gb_Module_make_global_targets,$(shell ls $(dir $(realpath $(firstword $(MAKEFILE_LIST))))/Module*.mk)))
+
+# vim: set noet sw=4 ts=4:
diff --git a/xmlhelp/source/cxxhelp/qe/makefile.mk b/xmlhelp/Module_xmlhelp.mk
similarity index 73%
rename from xmlhelp/source/cxxhelp/qe/makefile.mk
rename to xmlhelp/Module_xmlhelp.mk
index d80fa55a714e..1cf9b0dd2245 100644
--- a/xmlhelp/source/cxxhelp/qe/makefile.mk
+++ b/xmlhelp/Module_xmlhelp.mk
@@ -21,25 +21,17 @@
-PRJ=..$/..$/..
+$(eval $(call gb_Module_Module,xmlhelp))
-PRJNAME= xmlhelp
-TARGET= jaqe
-AUTOSEG= TRUE
+$(eval $(call gb_Module_add_targets,xmlhelp,\
+ Ant_LuceneHelpWrapper \
+ Library_tvhlp1 \
+ Library_ucpchelp1 \
+ Package_xml \
+ Package_xsl \
+ Zip_helpxsl \
+))
-ENABLE_EXCEPTIONS=TRUE
-# --- Settings -----------------------------------------------------
-
-.INCLUDE : settings.mk
-
-.IF "$(GUI)"=="WNT"
-CFLAGS+=-GR
-.ENDIF
-
-SLOFILES=$(SLO)$/DocGenerator.obj
-
-# --- Targets ------------------------------------------------------
-
-.INCLUDE : target.mk
+# vim: set noet sw=4 ts=4:
diff --git a/xmlhelp/Package_xml.mk b/xmlhelp/Package_xml.mk
new file mode 100644
index 000000000000..3206cfad3d1c
--- /dev/null
+++ b/xmlhelp/Package_xml.mk
@@ -0,0 +1,26 @@
+###############################################################
+#
+# 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
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+###############################################################
+
+
+
+$(eval $(call gb_Package_Package,xmlhelp_xml,$(SRCDIR)/xmlhelp))
+
+$(eval $(call gb_Package_add_file,xmlhelp_xml,xml/ucpchelp.xml,util/ucpchelp.xml))
diff --git a/xmlhelp/Package_xsl.mk b/xmlhelp/Package_xsl.mk
new file mode 100644
index 000000000000..4a00682828d4
--- /dev/null
+++ b/xmlhelp/Package_xsl.mk
@@ -0,0 +1,29 @@
+###############################################################
+#
+# 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
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+###############################################################
+
+
+
+$(eval $(call gb_Package_Package,xmlhelp_xsl,$(SRCDIR)/xmlhelp))
+
+$(eval $(call gb_Package_add_file,xmlhelp_xsl,bin/embed.xsl,util/embed.xsl))
+$(eval $(call gb_Package_add_file,xmlhelp_xsl,bin/idxcaption.xsl,util/idxcaption.xsl))
+$(eval $(call gb_Package_add_file,xmlhelp_xsl,bin/idxcontent.xsl,util/idxcontent.xsl))
+$(eval $(call gb_Package_add_file,xmlhelp_xsl,bin/main_transform.xsl,util/main_transform.xsl))
diff --git a/xmlhelp/Zip_helpxsl.mk b/xmlhelp/Zip_helpxsl.mk
new file mode 100644
index 000000000000..333b8a7db82a
--- /dev/null
+++ b/xmlhelp/Zip_helpxsl.mk
@@ -0,0 +1,32 @@
+###############################################################
+#
+# 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
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+###############################################################
+
+
+
+$(eval $(call gb_Zip_Zip,helpxsl,$(SRCDIR)/xmlhelp/util))
+
+$(eval $(call gb_Zip_add_files,helpxsl,\
+ idxcaption.xsl \
+ idxcontent.xsl \
+ main_transform.xsl \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/xmlhelp/source/com/sun/star/help/LuceneHelpWrapper.component b/xmlhelp/java/LuceneHelpWrapper/LuceneHelpWrapper.component
similarity index 100%
rename from xmlhelp/source/com/sun/star/help/LuceneHelpWrapper.component
rename to xmlhelp/java/LuceneHelpWrapper/LuceneHelpWrapper.component
diff --git a/xmlhelp/source/com/sun/star/help/MANIFEST.MF b/xmlhelp/java/LuceneHelpWrapper/MANIFEST.MF
similarity index 100%
rename from xmlhelp/source/com/sun/star/help/MANIFEST.MF
rename to xmlhelp/java/LuceneHelpWrapper/MANIFEST.MF
diff --git a/xmlhelp/java/LuceneHelpWrapper/build.xml b/xmlhelp/java/LuceneHelpWrapper/build.xml
new file mode 100644
index 000000000000..8639d6361e15
--- /dev/null
+++ b/xmlhelp/java/LuceneHelpWrapper/build.xml
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--***********************************************************
+ *
+ * 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
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ ***********************************************************-->
+
+
+<project name="LuceneHelpWrapper" default="main">
+
+ <property file="../../../ant.properties"/>
+ <import file="${SRC_ROOT}/solenv/ant/aoo-ant.xml"/>
+
+ <target name="init-project">
+
+ <property name="jar.classpath" value="${external.lucene-core.jarclasspath} ${external.lucene-analyzers.jarclasspath}"/>
+ <property name="jar.manifest" value="${SRC_ROOT}/xmlhelp/java/LuceneHelpWrapper/MANIFEST.MF"/>
+
+ <path id="main.classpath">
+ <pathelement location="${OUTDIR}/bin/juh.jar"/>
+ <pathelement location="${OUTDIR}/bin/jurt.jar"/>
+ <pathelement location="${OUTDIR}/bin/ridl.jar"/>
+ <pathelement location="${OUTDIR}/bin/unoil.jar"/>
+ <pathelement location="${external.lucene-core.path}"/>
+ <pathelement location="${external.lucene-analyzers.path}"/>
+ <pathelement location="${OUTDIR}/bin/help"/>
+ </path>
+
+ </target>
+
+
+ <target name="import-helpindexer" extensionOf="pre-compile" depends="prepare">
+
+ <copy todir="${main.build.dir}">
+ <fileset dir="${OUTDIR}/bin/help" includes="**/*.class"/>
+ </copy>
+
+ </target>
+
+</project>
+
diff --git a/xmlhelp/source/com/sun/star/help/HelpComponent.java b/xmlhelp/java/LuceneHelpWrapper/src/main/java/com/sun/star/help/HelpComponent.java
similarity index 100%
rename from xmlhelp/source/com/sun/star/help/HelpComponent.java
rename to xmlhelp/java/LuceneHelpWrapper/src/main/java/com/sun/star/help/HelpComponent.java
diff --git a/xmlhelp/source/com/sun/star/help/HelpIndexer.java b/xmlhelp/java/LuceneHelpWrapper/src/main/java/com/sun/star/help/HelpIndexer.java
similarity index 100%
rename from xmlhelp/source/com/sun/star/help/HelpIndexer.java
rename to xmlhelp/java/LuceneHelpWrapper/src/main/java/com/sun/star/help/HelpIndexer.java
diff --git a/xmlhelp/source/com/sun/star/help/HelpSearch.java b/xmlhelp/java/LuceneHelpWrapper/src/main/java/com/sun/star/help/HelpSearch.java
similarity index 99%
rename from xmlhelp/source/com/sun/star/help/HelpSearch.java
rename to xmlhelp/java/LuceneHelpWrapper/src/main/java/com/sun/star/help/HelpSearch.java
index a95fd9165ff9..cc0bffb5691c 100644
--- a/xmlhelp/source/com/sun/star/help/HelpSearch.java
+++ b/xmlhelp/java/LuceneHelpWrapper/src/main/java/com/sun/star/help/HelpSearch.java
@@ -204,8 +204,8 @@ public class HelpSearch
// Command line interface for testing
private static String[] doQuery( Object[] args, Object[] aScoreOutArray ) throws Exception
{
- String aLanguageStr = "";
- String aIndexStr = "";
+ String aLanguageStr = "";
+ String aIndexStr = "";
String aQueryStr = "";
boolean bCaptionOnly = false;
diff --git a/xmlhelp/java/LuceneHelpWrapper/src/main/java/com/sun/star/help/LuceneHelpWrapper.component b/xmlhelp/java/LuceneHelpWrapper/src/main/java/com/sun/star/help/LuceneHelpWrapper.component
new file mode 100644
index 000000000000..019b50b664a1
--- /dev/null
+++ b/xmlhelp/java/LuceneHelpWrapper/src/main/java/com/sun/star/help/LuceneHelpWrapper.component
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--***********************************************************
+ *
+ * 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
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ ***********************************************************-->
+
+
+
+<component loader="com.sun.star.loader.Java2"
+ xmlns="http://openoffice.org/2010/uno-components">
+ <implementation name="com.sun.star.help.HelpIndexer">
+ <service name="com.sun.star.help.HelpIndexer"/>
+ </implementation>
+ <implementation name="com.sun.star.help.HelpSearch$_HelpSearch">
+ <service name="com.sun.star.help.HelpSearch"/>
+ </implementation>
+</component>
diff --git a/xmlhelp/source/com/sun/star/help/helplinker.pmk b/xmlhelp/java/LuceneHelpWrapper/src/main/java/com/sun/star/help/helplinker.pmk
similarity index 100%
rename from xmlhelp/source/com/sun/star/help/helplinker.pmk
rename to xmlhelp/java/LuceneHelpWrapper/src/main/java/com/sun/star/help/helplinker.pmk
diff --git a/xmlhelp/prj/build.lst b/xmlhelp/prj/build.lst
index 13ca8b3e6180..58fdb011a9bb 100644
--- a/xmlhelp/prj/build.lst
+++ b/xmlhelp/prj/build.lst
@@ -1,9 +1,2 @@
xh xmlhelp : comphelper ucbhelper LIBXSLT:libxslt unoil LUCENE:lucene javaunohelper l10ntools NULL
-xh xmlhelp usr1 - all xh_mkout NULL
-xh xmlhelp\inc nmake - all xh_inc NULL
-xh xmlhelp\source\treeview nmake - all xh_treeview xh_inc NULL
-xh xmlhelp\source\com\sun\star\help nmake - all xh_help xh_inc NULL
-xh xmlhelp\source\cxxhelp\util nmake - all xh_cutil xh_inc NULL
-xh xmlhelp\source\cxxhelp\qe nmake - all xh_qe xh_inc NULL
-xh xmlhelp\source\cxxhelp\provider nmake - all xh_provider xh_inc NULL
-xh xmlhelp\util nmake - all xh_util xh_cutil xh_qe xh_provider NULL
+xh xmlhelp\prj nmake - all xh_prj NULL
diff --git a/xmlhelp/prj/d.lst b/xmlhelp/prj/d.lst
index 740ff554ee34..e69de29bb2d1 100644
--- a/xmlhelp/prj/d.lst
+++ b/xmlhelp/prj/d.lst
@@ -1,12 +0,0 @@
-..\%__SRC%\bin\*.dll %_DEST%\bin%_EXT%\*.*
-..\%__SRC%\bin\HelpLinker* %_DEST%\bin%_EXT%
-..\%__SRC%\lib\lib*.so %_DEST%\lib%_EXT%
-..\%__SRC%\lib\*.dylib %_DEST%\lib%_EXT%\*.*
-..\%__SRC%\class\*.jar %_DEST%\bin%_EXT%\*.*
-..\util\ucpchelp.xml %_DEST%\xml%_EXT%\ucpchelp.xml
-..\util\*.xsl %_DEST%\bin%_EXT%\*.*
-..\%__SRC%\lib\ihelplinker.lib %_DEST%\lib%_EXT%\ihelplinker.lib
-..\%__SRC%\bin\helpxsl.zip %_DEST%\pck%_EXT%\helpxsl.zip
-..\%__SRC%\misc\LuceneHelpWrapper.component %_DEST%\xml%_EXT%\LuceneHelpWrapper.component
-..\%__SRC%\misc\tvhlp1.component %_DEST%\xml%_EXT%\tvhlp1.component
-..\%__SRC%\misc\ucpchelp1.component %_DEST%\xml%_EXT%\ucpchelp1.component
diff --git a/xmlhelp/inc/makefile.mk b/xmlhelp/prj/makefile.mk
similarity index 69%
rename from xmlhelp/inc/makefile.mk
rename to xmlhelp/prj/makefile.mk
index 479df6f6ac6a..c62c6a657d16 100644
--- a/xmlhelp/inc/makefile.mk
+++ b/xmlhelp/prj/makefile.mk
@@ -20,24 +20,25 @@
#**************************************************************
-PRJ=..
-
-PRJNAME=xmlhelp
-TARGET=inc
-
-# --- Settings -----------------------------------------------------
-
-.INCLUDE : settings.mk
-
-# --- Files --------------------------------------------------------
-# --- Targets -------------------------------------------------------
-
-.INCLUDE : target.mk
-
-.IF "$(ENABLE_PCH)"!=""
-ALLTAR : \
- $(SLO)$/precompiled.pch \
- $(SLO)$/precompiled_ex.pch
-
-.ENDIF # "$(ENABLE_PCH)"!=""
+PRJ=..
+TARGET=prj
+
+.INCLUDE : settings.mk
+
+.IF "$(VERBOSE)"!=""
+VERBOSEFLAG :=
+.ELSE
+VERBOSEFLAG := -s
+.ENDIF
+
+.IF "$(DEBUG)"!=""
+DEBUG_ARGUMENT=DEBUG=$(DEBUG)
+.ELIF "$(debug)"!=""
+DEBUG_ARGUMENT=debug=$(debug)
+.ELSE
+DEBUG_ARGUMENT=
+.ENDIF
+
+all:
+ cd $(PRJ) && $(GNUMAKE) $(VERBOSEFLAG) -r -j$(MAXPROCESS) $(gb_MAKETARGET) $(DEBUG_ARGUMENT) && $(GNUMAKE) $(VERBOSEFLAG) -r deliverlog
diff --git a/xmlhelp/source/com/sun/star/help/makefile.mk b/xmlhelp/source/com/sun/star/help/makefile.mk
deleted file mode 100644
index 32d0db59ad25..000000000000
--- a/xmlhelp/source/com/sun/star/help/makefile.mk
+++ /dev/null
@@ -1,86 +0,0 @@
-#**************************************************************
-#
-# 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
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-#**************************************************************
-
-
-
-PRJ = ..$/..$/..$/..$/..
-PRJNAME = xmlhelp
-TARGET = HelpLinker
-PACKAGE = com$/sun$/star$/help
-
-.IF "$(SOLAR_JAVA)"!=""
-# --- Settings -----------------------------------------------------
-
-.INCLUDE : settings.mk
-
-JAVACLASSFILES = \
- $(CLASSDIR)$/$(PACKAGE)$/HelpSearch.class \
- $(CLASSDIR)$/$(PACKAGE)$/HelpComponent.class \
- $(CLASSDIR)$/$(PACKAGE)$/HelpIndexer.class
-
-TRANSEX3FILES = \
- $(SOLARBINDIR)$/help$/$(PACKAGE)$/HelpIndexerTool.class \
- $(SOLARBINDIR)$/help$/$(PACKAGE)$/HelpFileDocument.class
-
-ADDFILES = $(subst,$(SOLARBINDIR)$/help,$(CLASSDIR) $(TRANSEX3FILES))
-
-JARFILES = ridl.jar jurt.jar unoil.jar juh.jar
-.IF "$(SYSTEM_LUCENE)" == "YES"
-EXTRAJARFILES = $(LUCENE_CORE_JAR) $(LUCENE_ANALYZERS_JAR)
-JARCLASSPATH = $(EXTRAJARFILES)
-.ELSE
-JARFILES += lucene-core-2.9.4-dev.jar lucene-analyzers-2.9.4-dev.jar
-JARCLASSPATH = lucene-core-2.9.4-dev.jar lucene-analyzers-2.9.4-dev.jar
-.ENDIF
-
-JARTARGET = LuceneHelpWrapper.jar
-JARCOMPRESS = TRUE
-CUSTOMMANIFESTFILE = MANIFEST.MF
-
-# --- Targets ------------------------------------------------------
-
-.INCLUDE : target.mk
-
-.IF "$(JARTARGETN)"!=""
-$(JAVATARGET) : $(ADDFILES)
-$(JARTARGETN) : $(ADDFILES)
-.ENDIF
-
-$(ADDFILES) : $(SOLARBINDIR)$/help$/$(PACKAGE)$/$$(@:f)
- $(MKDIRHIER) $(@:d)
- $(COPY) $< $@
-
-fix_system_lucene:
- @echo "Fix Java Class-Path entry for Lucene libraries from system."
- @$(SED) -r -e "s#^(Class-Path:).*#\1 file://$(LUCENE_CORE_JAR) file://$(LUCENE_ANALYZERS_JAR)#" \
- -i ../../../../../$(INPATH)/class/HelpLinker/META-INF/MANIFEST.MF
-
-ALLTAR : $(MISC)/LuceneHelpWrapper.component
-
-$(MISC)/LuceneHelpWrapper.component .ERRREMOVE : \
- $(SOLARENV)/bin/createcomponent.xslt LuceneHelpWrapper.component
- $(XSLTPROC) --nonet --stringparam uri \
- '$(COMPONENTPREFIX_BASIS_JAVA)$(JARTARGET)' -o $@ \
- $(SOLARENV)/bin/createcomponent.xslt LuceneHelpWrapper.component
-.ELSE
-all:
- @echo java disabled
-.ENDIF
diff --git a/xmlhelp/source/cxxhelp/provider/makefile.mk b/xmlhelp/source/cxxhelp/provider/makefile.mk
deleted file mode 100644
index baf7ad54ee92..000000000000
--- a/xmlhelp/source/cxxhelp/provider/makefile.mk
+++ /dev/null
@@ -1,89 +0,0 @@
-#**************************************************************
-#
-# 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
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-#**************************************************************
-
-
-
-PRJ=..$/..$/..
-PRJNAME=xmlhelp
-TARGET=chelp
-
-ENABLE_EXCEPTIONS=TRUE
-USE_DEFFILE=TRUE
-NO_BSYMBOLIC=TRUE
-
-
-# --- Settings ---------------------------------------------------------
-
-.INCLUDE: settings.mk
-
-# GCC versions 4.2.x introduced a warning "allocating zero-element array"
-# Allocating zero-element arrays is an allowed if not somewhat dubious
-# technique though, so this warning is plain wrong and has been fixed
-# in gcc 4.3. Unfortunately there is no way at all to suppress this warning.
-# Some files in this directory use zero allocated arrays, we need to
-# disable the WaE mechanism for the GCC 4.2.x series.
-.IF "$(COM)"=="GCC"
-.IF "$(CCNUMVER)">="000400020000" && "$(CCNUMVER)"<="000400020003"
-CFLAGSWERRCXX:=
-.ENDIF # "$(CCNUMVER)">="000400020000" && "$(CCNUMVER)"<="000400020003"
-.ENDIF # "$(COM)"=="GCC"
-
-CFLAGS += -DHAVE_EXPAT_H
-
-.IF "$(SYSTEM_LIBXML)" == "YES"
-CFLAGS+= $(LIBXML_CFLAGS)
-.ELSE
-LIBXMLINCDIR=external$/libxml
-CFLAGS+= -I$(SOLARINCDIR)$/$(LIBXMLINCDIR)
-.ENDIF
-
-.IF "$(SYSTEM_LIBXSLT)" == "YES"
-CFLAGS+= $(LIBXSLT_CFLAGS)
-.ELSE
-LIBXSLTINCDIR=external$/libxslt
-CFLAGS+= -I$(SOLARINCDIR)$/$(LIBXSLTINCDIR)
-.ENDIF
-
-.IF "$(GUI)"=="WNT"
-CFLAGS+=-GR
-.ENDIF
-
-# --- General -----------------------------------------------------
-
-SLOFILES=\
- $(SLO)$/db.obj \
- $(SLO)$/databases.obj \
- $(SLO)$/services.obj \
- $(SLO)$/resultset.obj \
- $(SLO)$/resultsetbase.obj \
- $(SLO)$/resultsetforroot.obj \
- $(SLO)$/resultsetforquery.obj \
- $(SLO)$/contentcaps.obj \
- $(SLO)$/provider.obj \
- $(SLO)$/content.obj \
- $(SLO)$/urlparameter.obj \
- $(SLO)$/inputstream.obj \
- $(SLO)$/bufferedinputstream.obj
-
-# --- Targets ----------------------------------------------------------
-
-.INCLUDE: target.mk
-
diff --git a/xmlhelp/source/cxxhelp/provider/services.cxx b/xmlhelp/source/cxxhelp/provider/services.cxx
index 4eb37f259d3a..8a385b0375a6 100644
--- a/xmlhelp/source/cxxhelp/provider/services.cxx
+++ b/xmlhelp/source/cxxhelp/provider/services.cxx
@@ -32,14 +32,14 @@
using namespace com::sun::star;
//=========================================================================
-extern "C" void SAL_CALL component_getImplementationEnvironment(
+extern "C" SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment(
const sal_Char ** ppEnvTypeName, uno_Environment ** /*ppEnv*/ )
{
*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}
//=========================================================================
-extern "C" void * SAL_CALL component_getFactory(
+extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory(
const sal_Char * pImplName,
void * pServiceManager,
void * /*pRegistryKey*/ )
diff --git a/xmlhelp/source/treeview/tvfactory.cxx b/xmlhelp/source/treeview/tvfactory.cxx
index 08c63574244e..e0cf8e3dc497 100644
--- a/xmlhelp/source/treeview/tvfactory.cxx
+++ b/xmlhelp/source/treeview/tvfactory.cxx
@@ -252,7 +252,7 @@ TVFactory::CreateInstance(
}
//=========================================================================
-extern "C" void SAL_CALL component_getImplementationEnvironment(
+extern "C" SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment(
const sal_Char ** ppEnvTypeName, uno_Environment ** ppEnv )
{
(void)ppEnv;
@@ -261,7 +261,7 @@ extern "C" void SAL_CALL component_getImplementationEnvironment(
}
//=========================================================================
-extern "C" void * SAL_CALL component_getFactory(
+extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory(
const sal_Char * pImplName,void * pServiceManager,void * pRegistryKey )
{
(void)pRegistryKey;
diff --git a/xmlhelp/util/makefile.mk b/xmlhelp/util/makefile.mk
deleted file mode 100644
index 275f2412198f..000000000000
--- a/xmlhelp/util/makefile.mk
+++ /dev/null
@@ -1,87 +0,0 @@
-#**************************************************************
-#
-# 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
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-#**************************************************************
-
-
-
-UCP_VERSION=1
-UCP_NAME=chelp
-
-PRJ=..
-PRJNAME=xmlhelp
-TARGET=ucp$(UCP_NAME)
-UCPHELP_MAJOR=1
-
-ENABLE_EXCEPTIONS=TRUE
-USE_DEFFILE=TRUE
-NO_BSYMBOLIC=TRUE
-
-# --- Settings ---------------------------------------------------------
-
-.INCLUDE: settings.mk
-
-.IF "$(GUI)"=="WNT"
-CFLAGS+=-GR
-.ENDIF
-
-# --- Shared-Library ---------------------------------------------------
-
-SHL1TARGET=$(TARGET)$(UCP_VERSION)
-SHL1DEF=$(MISC)$/$(SHL1TARGET).def
-SHL1IMPLIB=i$(TARGET)
-SHL1VERSIONMAP=$(SOLARENV)/src/component.map
-
-# Add additional libs here.
-SHL1STDLIBS= \
- $(CPPUHELPERLIB) \
- $(CPPULIB) \
- $(COMPHELPERLIB) \
- $(SALLIB) \
- $(EXPATASCII3RDLIB) \
- $(UCBHELPERLIB) \
- $(XSLTLIB)
-
-SHL1LIBS = \
- $(SLB)$/jaqe.lib \
- $(SLB)$/jautil.lib \
- $(SLB)$/chelp.lib
-
-# --- Def-File ---------------------------------------------------------
-
-DEF1NAME=$(SHL1TARGET)
-
-# --- Targets ----------------------------------------------------------
-
-ZIP1TARGET=helpxsl
-ZIP1FLAGS= -u -r
-#ZIP1DIR=$(PRJ)$/source$/auxiliary
-ZIP1LIST=main_transform*.xsl idxcaption.xsl idxcontent.xsl
-
-
-.INCLUDE: target.mk
-
-
-ALLTAR : $(MISC)/ucpchelp1.component
-
-$(MISC)/ucpchelp1.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
- ucpchelp1.component
- $(XSLTPROC) --nonet --stringparam uri \
- '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
- $(SOLARENV)/bin/createcomponent.xslt ucpchelp1.component
More information about the Libreoffice-commits
mailing list