Kaydet (Commit) eaa81cc2 authored tarafından Andras Timar's avatar Andras Timar

move help compiler/linker/indexer to a new module

we may want to use syntax highlighter class from svtools later,
which is not available for l10ntools

Change-Id: I5a06b77cb6935e3ef68015fb608aa26ac7c53fac
üst eb5b28c3
...@@ -74,6 +74,7 @@ forms\ ...@@ -74,6 +74,7 @@ forms\
formula\ formula\
fpicker\ fpicker\
framework\ framework\
helpcompiler\
hsqldb\ hsqldb\
hwpfilter\ hwpfilter\
i18npool\ i18npool\
......
...@@ -39,6 +39,7 @@ $(eval $(call gb_Module_add_moduledirs,cross_tail_build,\ ...@@ -39,6 +39,7 @@ $(eval $(call gb_Module_add_moduledirs,cross_tail_build,\
javaunohelper \ javaunohelper \
$(if $(filter DESKTOP,$(BUILD_TYPE)),\ $(if $(filter DESKTOP,$(BUILD_TYPE)),\
l10ntools \ l10ntools \
helpcompiler \
) \ ) \
o3tl \ o3tl \
oovbaapi \ oovbaapi \
......
...@@ -159,6 +159,7 @@ $(eval $(call gb_Module_add_moduledirs,tail_end,\ ...@@ -159,6 +159,7 @@ $(eval $(call gb_Module_add_moduledirs,tail_end,\
) \ ) \
xmerge \ xmerge \
$(if $(filter DESKTOP,$(BUILD_TYPE)), \ $(if $(filter DESKTOP,$(BUILD_TYPE)), \
helpcompiler \
xmlhelp) \ xmlhelp) \
xmloff \ xmloff \
xmlscript \ xmlscript \
......
dt desktop : TRANSLATIONS:translations sfx2 stoc BERKELEYDB:berkeleydb BOOST:boost svx DESKTOP:xmlhelp sal salhelper unoil officecfg offapi filter LIBXSLT:libxslt NULL dt desktop : TRANSLATIONS:translations sfx2 stoc BERKELEYDB:berkeleydb BOOST:boost svx DESKTOP:xmlhelp sal salhelper unoil officecfg offapi filter LIBXSLT:libxslt DESKTOP:helpcompiler NULL
dt desktop usr1 - all dt_mkout NULL dt desktop usr1 - all dt_mkout NULL
dt desktop\prj nmake - all dt_prj NULL dt desktop\prj nmake - all dt_prj NULL
...@@ -42,8 +42,8 @@ ...@@ -42,8 +42,8 @@
#include "unotools/pathoptions.hxx" #include "unotools/pathoptions.hxx"
#if !defined(ANDROID) && !defined(IOS) #if !defined(ANDROID) && !defined(IOS)
#include <l10ntools/compilehelp.hxx> #include <helpcompiler/compilehelp.hxx>
#include <l10ntools/HelpIndexer.hxx> #include <helpcompiler/HelpIndexer.hxx>
#endif #endif
#include <com/sun/star/ucb/SimpleFileAccess.hpp> #include <com/sun/star/ucb/SimpleFileAccess.hpp>
#include <com/sun/star/ucb/XSimpleFileAccess2.hpp> #include <com/sun/star/ucb/XSimpleFileAccess2.hpp>
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
$(eval $(call gb_Executable_Executable,HelpIndexer)) $(eval $(call gb_Executable_Executable,HelpIndexer))
$(eval $(call gb_Executable_use_package,HelpIndexer,\ $(eval $(call gb_Executable_use_package,HelpIndexer,\
l10ntools_inc \ helpcompiler_inc \
)) ))
$(eval $(call gb_Executable_use_libraries,HelpIndexer,\ $(eval $(call gb_Executable_use_libraries,HelpIndexer,\
...@@ -44,7 +44,7 @@ $(eval $(call gb_Executable_use_externals,HelpIndexer,\ ...@@ -44,7 +44,7 @@ $(eval $(call gb_Executable_use_externals,HelpIndexer,\
)) ))
$(eval $(call gb_Executable_add_exception_objects,HelpIndexer,\ $(eval $(call gb_Executable_add_exception_objects,HelpIndexer,\
l10ntools/source/help/HelpIndexer_main \ helpcompiler/source/HelpIndexer_main \
)) ))
# vim:set shiftwidth=4 softtabstop=4 expandtab: # vim:set shiftwidth=4 softtabstop=4 expandtab:
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
$(eval $(call gb_Executable_Executable,HelpLinker)) $(eval $(call gb_Executable_Executable,HelpLinker))
$(eval $(call gb_Executable_use_package,HelpLinker,\ $(eval $(call gb_Executable_use_package,HelpLinker,\
l10ntools_inc \ helpcompiler_inc \
)) ))
$(eval $(call gb_Executable_use_libraries,HelpLinker,\ $(eval $(call gb_Executable_use_libraries,HelpLinker,\
...@@ -44,7 +44,7 @@ $(eval $(call gb_Executable_use_externals,HelpLinker,\ ...@@ -44,7 +44,7 @@ $(eval $(call gb_Executable_use_externals,HelpLinker,\
)) ))
$(eval $(call gb_Executable_add_exception_objects,HelpLinker,\ $(eval $(call gb_Executable_add_exception_objects,HelpLinker,\
l10ntools/source/help/HelpLinker_main \ helpcompiler/source/HelpLinker_main \
)) ))
# vim:set shiftwidth=4 softtabstop=4 expandtab: # vim:set shiftwidth=4 softtabstop=4 expandtab:
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
$(eval $(call gb_Library_Library,helplinker)) $(eval $(call gb_Library_Library,helplinker))
$(eval $(call gb_Library_use_package,helplinker,\ $(eval $(call gb_Library_use_package,helplinker,\
l10ntools_inc\ helpcompiler_inc\
)) ))
$(eval $(call gb_Library_add_defs,helplinker,\ $(eval $(call gb_Library_add_defs,helplinker,\
...@@ -48,20 +48,20 @@ $(eval $(call gb_Library_use_externals,helplinker,\ ...@@ -48,20 +48,20 @@ $(eval $(call gb_Library_use_externals,helplinker,\
)) ))
$(eval $(call gb_Library_add_exception_objects,helplinker,\ $(eval $(call gb_Library_add_exception_objects,helplinker,\
l10ntools/source/help/HelpCompiler \ helpcompiler/source/HelpCompiler \
l10ntools/source/help/LuceneHelper \ helpcompiler/source/LuceneHelper \
l10ntools/source/help/HelpIndexer \ helpcompiler/source/HelpIndexer \
l10ntools/source/help/HelpSearch \ helpcompiler/source/HelpSearch \
)) ))
ifeq ($(strip $(OS)$(CPU)$(COM)),MACOSXPGCC) ifeq ($(strip $(OS)$(CPU)$(COM)),MACOSXPGCC)
$(eval $(call gb_Library_add_cxxobjects,helplinker,\ $(eval $(call gb_Library_add_cxxobjects,helplinker,\
l10ntools/source/help/HelpLinker \ helpcompiler/source/HelpLinker \
, $(gb_COMPILERNOOPTFLAGS) $(gb_LinkTarget_EXCEPTIONFLAGS) \ , $(gb_COMPILERNOOPTFLAGS) $(gb_LinkTarget_EXCEPTIONFLAGS) \
)) ))
else else
$(eval $(call gb_Library_add_exception_objects,helplinker,\ $(eval $(call gb_Library_add_exception_objects,helplinker,\
l10ntools/source/help/HelpLinker \ helpcompiler/source/HelpLinker \
)) ))
endif endif
......
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
module_directory:=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))
include $(module_directory)/../solenv/gbuild/partial_build.mk
# vim: set noet sw=4 ts=4:
# -*- 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_Module_Module,helpcompiler))
$(eval $(call gb_Module_add_targets,helpcompiler,\
Executable_helpindexer \
Executable_helplinker \
Library_helplinker \
Package_inc \
))
# vim:set shiftwidth=4 softtabstop=4 expandtab:
# -*- 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_Package_Package,helpcompiler_inc,$(SRCDIR)/helpcompiler))
$(eval $(call gb_Package_add_file,helpcompiler_inc,inc/helpcompiler/dllapi.h,inc/dllapi.h))
$(eval $(call gb_Package_add_file,helpcompiler_inc,inc/helpcompiler/compilehelp.hxx,inc/compilehelp.hxx))
$(eval $(call gb_Package_add_file,helpcompiler_inc,inc/helpcompiler/HelpCompiler.hxx,inc/HelpCompiler.hxx))
$(eval $(call gb_Package_add_file,helpcompiler_inc,inc/helpcompiler/HelpIndexer.hxx,inc/HelpIndexer.hxx))
$(eval $(call gb_Package_add_file,helpcompiler_inc,inc/helpcompiler/HelpLinker.hxx,inc/HelpLinker.hxx))
$(eval $(call gb_Package_add_file,helpcompiler_inc,inc/helpcompiler/HelpSearch.hxx,inc/HelpSearch.hxx))
# vim: set noet sw=4 ts=4:
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
#include <osl/process.h> #include <osl/process.h>
#include <osl/file.hxx> #include <osl/file.hxx>
#include <compilehelp.hxx> #include <helpcompiler/compilehelp.hxx>
#if OSL_DEBUG_LEVEL > 2 #if OSL_DEBUG_LEVEL > 2
#include <iostream> #include <iostream>
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#ifndef HELPINDEXER_HXX #ifndef HELPINDEXER_HXX
#define HELPINDEXER_HXX #define HELPINDEXER_HXX
#include <l10ntools/dllapi.h> #include <helpcompiler/dllapi.h>
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
#include <set> #include <set>
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#ifndef HELPLINKER_HXX #ifndef HELPLINKER_HXX
#define HELPLINKER_HXX #define HELPLINKER_HXX
#include <l10ntools/dllapi.h> #include <helpcompiler/dllapi.h>
#include <libxslt/transform.h> #include <libxslt/transform.h>
#ifdef AIX #ifdef AIX
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#ifndef HELPSEARCH_HXX #ifndef HELPSEARCH_HXX
#define HELPSEARCH_HXX #define HELPSEARCH_HXX
#include <l10ntools/dllapi.h> #include <helpcompiler/dllapi.h>
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
#include <vector> #include <vector>
......
tr helpcompiler : BERKELEYDB:berkeleydb EXPAT:expat LIBXSLT:libxslt CLUCENE:clucene sal NULL
tr helpcompiler usr1 - all tr_mkout NULL
tr helpcompiler\prj nmake - all tr_prj NULL
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
************************************************************************/ ************************************************************************/
#include "HelpCompiler.hxx" #include <helpcompiler/HelpCompiler.hxx>
#include <limits.h> #include <limits.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
* instead of those above. * instead of those above.
*/ */
#include <l10ntools/HelpIndexer.hxx> #include <helpcompiler/HelpIndexer.hxx>
#include <rtl/string.hxx> #include <rtl/string.hxx>
#include <rtl/uri.hxx> #include <rtl/uri.hxx>
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
* instead of those above. * instead of those above.
*/ */
#include <l10ntools/HelpIndexer.hxx> #include <helpcompiler/HelpIndexer.hxx>
#include <osl/file.hxx> #include <osl/file.hxx>
#include <osl/process.h> #include <osl/process.h>
#include <osl/thread.h> #include <osl/thread.h>
......
...@@ -26,8 +26,8 @@ ...@@ -26,8 +26,8 @@
* *
************************************************************************/ ************************************************************************/
#include "HelpCompiler.hxx" #include <helpcompiler/HelpCompiler.hxx>
#include "l10ntools/HelpLinker.hxx" #include <helpcompiler/HelpLinker.hxx>
#include <map> #include <map>
...@@ -425,7 +425,7 @@ void HelpLinker::link() throw( HelpProcessingException ) ...@@ -425,7 +425,7 @@ void HelpLinker::link() throw( HelpProcessingException )
if (!bExtensionMode && xhpFileName.rfind(".xhp") != xhpFileName.length()-4) if (!bExtensionMode && xhpFileName.rfind(".xhp") != xhpFileName.length()-4)
{ {
// only work on .xhp - files // only work on .xhp - files
SAL_WARN("l10ntools", SAL_WARN("helpcompiler",
"ERROR: input list entry '" "ERROR: input list entry '"
<< xhpFileName << xhpFileName
<< "' has the wrong extension (only files with extension .xhp " << "' has the wrong extension (only files with extension .xhp "
......
...@@ -26,8 +26,8 @@ ...@@ -26,8 +26,8 @@
* *
************************************************************************/ ************************************************************************/
#include "HelpCompiler.hxx" #include <helpcompiler/HelpCompiler.hxx>
#include "l10ntools/HelpLinker.hxx" #include <helpcompiler/HelpLinker.hxx>
#include <iostream> #include <iostream>
#include <sal/main.h> #include <sal/main.h>
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
* instead of those above. * instead of those above.
*/ */
#include <l10ntools/HelpSearch.hxx> #include <helpcompiler/HelpSearch.hxx>
#include <osl/file.hxx> #include <osl/file.hxx>
#include <osl/thread.hxx> #include <osl/thread.hxx>
......
...@@ -36,10 +36,7 @@ $(eval $(call gb_Module_add_targets,l10ntools,\ ...@@ -36,10 +36,7 @@ $(eval $(call gb_Module_add_targets,l10ntools,\
Executable_xrmex \ Executable_xrmex \
Executable_localize \ Executable_localize \
Executable_transex3 \ Executable_transex3 \
Executable_helpindexer \
Executable_helplinker \
StaticLibrary_transex \ StaticLibrary_transex \
Library_helplinker \
Package_inc \ Package_inc \
Package_scripts \ Package_scripts \
Package_ulfconv \ Package_ulfconv \
......
...@@ -27,14 +27,9 @@ ...@@ -27,14 +27,9 @@
$(eval $(call gb_Package_Package,l10ntools_inc,$(SRCDIR)/l10ntools)) $(eval $(call gb_Package_Package,l10ntools_inc,$(SRCDIR)/l10ntools))
$(eval $(call gb_Package_add_file,l10ntools_inc,inc/l10ntools/export.hxx,inc/export.hxx)) $(eval $(call gb_Package_add_file,l10ntools_inc,inc/l10ntools/export.hxx,inc/export.hxx))
$(eval $(call gb_Package_add_file,l10ntools_inc,inc/l10ntools/dllapi.h,inc/l10ntools/dllapi.h))
$(eval $(call gb_Package_add_file,l10ntools_inc,inc/l10ntools/directory.hxx,inc/l10ntools/directory.hxx)) $(eval $(call gb_Package_add_file,l10ntools_inc,inc/l10ntools/directory.hxx,inc/l10ntools/directory.hxx))
$(eval $(call gb_Package_add_file,l10ntools_inc,inc/l10ntools/file.hxx,inc/l10ntools/file.hxx)) $(eval $(call gb_Package_add_file,l10ntools_inc,inc/l10ntools/file.hxx,inc/l10ntools/file.hxx))
$(eval $(call gb_Package_add_file,l10ntools_inc,inc/l10ntools/HelpIndexer.hxx,inc/l10ntools/HelpIndexer.hxx))
$(eval $(call gb_Package_add_file,l10ntools_inc,inc/l10ntools/HelpLinker.hxx,inc/l10ntools/HelpLinker.hxx))
$(eval $(call gb_Package_add_file,l10ntools_inc,inc/l10ntools/HelpSearch.hxx,inc/l10ntools/HelpSearch.hxx))
$(eval $(call gb_Package_add_file,l10ntools_inc,inc/l10ntools/FCFGMerge.cfg,source/filter/merge/FCFGMerge.cfg)) $(eval $(call gb_Package_add_file,l10ntools_inc,inc/l10ntools/FCFGMerge.cfg,source/filter/merge/FCFGMerge.cfg))
$(eval $(call gb_Package_add_file,l10ntools_inc,inc/l10ntools/compilehelp.hxx,source/help/compilehelp.hxx))
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
tr l10ntools : BERKELEYDB:berkeleydb EXPAT:expat LIBXSLT:libxslt CLUCENE:clucene sal NULL tr l10ntools : EXPAT:expat LIBXSLT:libxslt sal NULL
tr l10ntools usr1 - all tr_mkout NULL tr l10ntools usr1 - all tr_mkout NULL
tr l10ntools\prj nmake - all tr_prj NULL tr l10ntools\prj nmake - all tr_prj NULL
nlpsolver nlpsolver : javaunohelper unoil jurt readlicense_oo NULL nlpsolver nlpsolver : javaunohelper unoil jurt readlicense_oo DESKTOP:helpcompiler NULL
nlpsolver nlpsolver\prj nmake - all nlp_prj NULL nlpsolver nlpsolver\prj nmake - all nlp_prj NULL
dx sdext : TRANSLATIONS:translations offapi comphelper unotools readlicense_oo cppu tools cppuhelper sal javaunohelper officecfg XPDF:xpdf LIBXSLT:libxslt DESKTOP:xmlhelp NULL dx sdext : TRANSLATIONS:translations offapi comphelper unotools readlicense_oo cppu tools cppuhelper sal javaunohelper officecfg XPDF:xpdf LIBXSLT:libxslt DESKTOP:xmlhelp DESKTOP:helpcompiler NULL
dx sdext usr1 - all sdext_mkout NULL dx sdext usr1 - all sdext_mkout NULL
dx sdext\prj nmake - all sdext_prj NULL dx sdext\prj nmake - all sdext_prj NULL
swext swext : officecfg TRANSLATIONS:translations DESKTOP:l10ntools javaunohelper ridljar unoil jurt APACHE_COMMONS:apache-commons readlicense_oo xsltml DESKTOP:xmlhelp NULL swext swext : officecfg TRANSLATIONS:translations DESKTOP:l10ntools javaunohelper ridljar unoil jurt APACHE_COMMONS:apache-commons readlicense_oo xsltml DESKTOP:xmlhelp DESKTOP:helpcompiler NULL
swext swext\prj nmake - all swext_prj NULL swext swext\prj nmake - all swext_prj NULL
tb tail_build : AFMS:afms APACHE_COMMONS:apache-commons BSH:beanshell BERKELEYDB:berkeleydb BOOST:boost CAIRO:cairo CPPUNIT:cppunit DESKTOP:codemaker CURL:curl EXPAT:expat FONTCONFIG:fontconfig FREETYPE:freetype GLIB:glib GRAPHITE:graphite HUNSPELL:hunspell HYPHEN:hyphen ICU:icu DESKTOP:l10ntools JFREEREPORT:jfreereport JPEG:jpeg LCMS2:lcms2 LIBEXTTEXTCAT:libexttextcat LIBLANGTAG:liblangtag LIBXML2:libxml2 libxmlsec LIBXSLT:libxslt LPSOLVE:lpsolve MOZ:moz MYTHES:mythes NEON:neon NSS:nss OPENLDAP:openldap OPENSSL:openssl POSTGRESQL:postgresql PYTHON:python REDLAND:redland SAXON:saxon TRANSLATIONS:translations XPDF:xpdf ZLIB:zlib bridges cli_ure comphelper cppu cppuhelper external jurt jvmaccess jvmfwk offapi officecfg DESKTOP:rdbmaker readlicense_oo RHINO:rhino ridljar sal salhelper solenv soltools stoc ucbhelper ucpp udkapi xmlreader xsltml NULL tb tail_build : AFMS:afms APACHE_COMMONS:apache-commons BSH:beanshell BERKELEYDB:berkeleydb BOOST:boost CAIRO:cairo CLUCENE:clucene CPPUNIT:cppunit DESKTOP:codemaker CURL:curl EXPAT:expat FONTCONFIG:fontconfig FREETYPE:freetype GLIB:glib GRAPHITE:graphite HUNSPELL:hunspell HYPHEN:hyphen ICU:icu DESKTOP:l10ntools JFREEREPORT:jfreereport JPEG:jpeg LCMS2:lcms2 LIBEXTTEXTCAT:libexttextcat LIBLANGTAG:liblangtag LIBXML2:libxml2 libxmlsec LIBXSLT:libxslt LPSOLVE:lpsolve MOZ:moz MYTHES:mythes NEON:neon NSS:nss OPENLDAP:openldap OPENSSL:openssl POSTGRESQL:postgresql PYTHON:python REDLAND:redland SAXON:saxon TRANSLATIONS:translations XPDF:xpdf ZLIB:zlib bridges cli_ure comphelper cppu cppuhelper external jurt jvmaccess jvmfwk offapi officecfg DESKTOP:rdbmaker readlicense_oo RHINO:rhino ridljar sal salhelper solenv soltools stoc ucbhelper ucpp udkapi xmlreader xsltml NULL
tb tail_build\prj nmake - all tb_prj NULL tb tail_build\prj nmake - all tb_prj NULL
xh xmlhelp : comphelper ucbhelper LIBXSLT:libxslt unoil BERKELEYDB:berkeleydb javaunohelper DESKTOP:l10ntools unotools NULL xh xmlhelp : comphelper ucbhelper LIBXSLT:libxslt unoil BERKELEYDB:berkeleydb javaunohelper DESKTOP:l10ntools DESKTOP:helpcompiler unotools NULL
xh xmlhelp usr1 - all xh_mkout NULL xh xmlhelp usr1 - all xh_mkout NULL
xh xmlhelp\prj nmake - all xh_prj NULL xh xmlhelp\prj nmake - all xh_prj NULL
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
#include <algorithm> #include <algorithm>
#include <string.h> #include <string.h>
#include <l10ntools/HelpIndexer.hxx> #include <helpcompiler/HelpIndexer.hxx>
// Extensible help // Extensible help
#include "com/sun/star/deployment/ExtensionManager.hpp" #include "com/sun/star/deployment/ExtensionManager.hpp"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
#include <com/sun/star/lang/Locale.hpp> #include <com/sun/star/lang/Locale.hpp>
#include <com/sun/star/script/XInvocation.hpp> #include <com/sun/star/script/XInvocation.hpp>
#include <l10ntools/HelpSearch.hxx> #include <helpcompiler/HelpSearch.hxx>
#if defined _MSC_VER #if defined _MSC_VER
#pragma warning(push) #pragma warning(push)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment