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
This commit is contained in:
@@ -74,6 +74,7 @@ forms\
|
||||
formula\
|
||||
fpicker\
|
||||
framework\
|
||||
helpcompiler\
|
||||
hsqldb\
|
||||
hwpfilter\
|
||||
i18npool\
|
||||
|
@@ -39,6 +39,7 @@ $(eval $(call gb_Module_add_moduledirs,cross_tail_build,\
|
||||
javaunohelper \
|
||||
$(if $(filter DESKTOP,$(BUILD_TYPE)),\
|
||||
l10ntools \
|
||||
helpcompiler \
|
||||
) \
|
||||
o3tl \
|
||||
oovbaapi \
|
||||
|
@@ -159,6 +159,7 @@ $(eval $(call gb_Module_add_moduledirs,tail_end,\
|
||||
) \
|
||||
xmerge \
|
||||
$(if $(filter DESKTOP,$(BUILD_TYPE)), \
|
||||
helpcompiler \
|
||||
xmlhelp) \
|
||||
xmloff \
|
||||
xmlscript \
|
||||
|
@@ -1,3 +1,3 @@
|
||||
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\prj nmake - all dt_prj NULL
|
||||
|
@@ -42,8 +42,8 @@
|
||||
#include "unotools/pathoptions.hxx"
|
||||
|
||||
#if !defined(ANDROID) && !defined(IOS)
|
||||
#include <l10ntools/compilehelp.hxx>
|
||||
#include <l10ntools/HelpIndexer.hxx>
|
||||
#include <helpcompiler/compilehelp.hxx>
|
||||
#include <helpcompiler/HelpIndexer.hxx>
|
||||
#endif
|
||||
#include <com/sun/star/ucb/SimpleFileAccess.hpp>
|
||||
#include <com/sun/star/ucb/XSimpleFileAccess2.hpp>
|
||||
|
@@ -27,7 +27,7 @@
|
||||
$(eval $(call gb_Executable_Executable,HelpIndexer))
|
||||
|
||||
$(eval $(call gb_Executable_use_package,HelpIndexer,\
|
||||
l10ntools_inc \
|
||||
helpcompiler_inc \
|
||||
))
|
||||
|
||||
$(eval $(call gb_Executable_use_libraries,HelpIndexer,\
|
||||
@@ -44,7 +44,7 @@ $(eval $(call gb_Executable_use_externals,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:
|
@@ -27,7 +27,7 @@
|
||||
$(eval $(call gb_Executable_Executable,HelpLinker))
|
||||
|
||||
$(eval $(call gb_Executable_use_package,HelpLinker,\
|
||||
l10ntools_inc \
|
||||
helpcompiler_inc \
|
||||
))
|
||||
|
||||
$(eval $(call gb_Executable_use_libraries,HelpLinker,\
|
||||
@@ -44,7 +44,7 @@ $(eval $(call gb_Executable_use_externals,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:
|
@@ -27,7 +27,7 @@
|
||||
$(eval $(call gb_Library_Library,helplinker))
|
||||
|
||||
$(eval $(call gb_Library_use_package,helplinker,\
|
||||
l10ntools_inc\
|
||||
helpcompiler_inc\
|
||||
))
|
||||
|
||||
$(eval $(call gb_Library_add_defs,helplinker,\
|
||||
@@ -48,20 +48,20 @@ $(eval $(call gb_Library_use_externals,helplinker,\
|
||||
))
|
||||
|
||||
$(eval $(call gb_Library_add_exception_objects,helplinker,\
|
||||
l10ntools/source/help/HelpCompiler \
|
||||
l10ntools/source/help/LuceneHelper \
|
||||
l10ntools/source/help/HelpIndexer \
|
||||
l10ntools/source/help/HelpSearch \
|
||||
helpcompiler/source/HelpCompiler \
|
||||
helpcompiler/source/LuceneHelper \
|
||||
helpcompiler/source/HelpIndexer \
|
||||
helpcompiler/source/HelpSearch \
|
||||
))
|
||||
|
||||
ifeq ($(strip $(OS)$(CPU)$(COM)),MACOSXPGCC)
|
||||
$(eval $(call gb_Library_add_cxxobjects,helplinker,\
|
||||
l10ntools/source/help/HelpLinker \
|
||||
helpcompiler/source/HelpLinker \
|
||||
, $(gb_COMPILERNOOPTFLAGS) $(gb_LinkTarget_EXCEPTIONFLAGS) \
|
||||
))
|
||||
else
|
||||
$(eval $(call gb_Library_add_exception_objects,helplinker,\
|
||||
l10ntools/source/help/HelpLinker \
|
||||
helpcompiler/source/HelpLinker \
|
||||
))
|
||||
endif
|
||||
|
7
helpcompiler/Makefile
Normal file
7
helpcompiler/Makefile
Normal file
@@ -0,0 +1,7 @@
|
||||
# -*- 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:
|
19
helpcompiler/Module_helpcompiler.mk
Normal file
19
helpcompiler/Module_helpcompiler.mk
Normal file
@@ -0,0 +1,19 @@
|
||||
# -*- 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:
|
19
helpcompiler/Package_inc.mk
Normal file
19
helpcompiler/Package_inc.mk
Normal file
@@ -0,0 +1,19 @@
|
||||
# -*- 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 @@
|
||||
#include <osl/process.h>
|
||||
#include <osl/file.hxx>
|
||||
|
||||
#include <compilehelp.hxx>
|
||||
#include <helpcompiler/compilehelp.hxx>
|
||||
|
||||
#if OSL_DEBUG_LEVEL > 2
|
||||
#include <iostream>
|
@@ -30,7 +30,7 @@
|
||||
#ifndef HELPINDEXER_HXX
|
||||
#define HELPINDEXER_HXX
|
||||
|
||||
#include <l10ntools/dllapi.h>
|
||||
#include <helpcompiler/dllapi.h>
|
||||
|
||||
#include <rtl/ustring.hxx>
|
||||
#include <set>
|
@@ -29,7 +29,7 @@
|
||||
#ifndef HELPLINKER_HXX
|
||||
#define HELPLINKER_HXX
|
||||
|
||||
#include <l10ntools/dllapi.h>
|
||||
#include <helpcompiler/dllapi.h>
|
||||
#include <libxslt/transform.h>
|
||||
|
||||
#ifdef AIX
|
@@ -30,7 +30,7 @@
|
||||
#ifndef HELPSEARCH_HXX
|
||||
#define HELPSEARCH_HXX
|
||||
|
||||
#include <l10ntools/dllapi.h>
|
||||
#include <helpcompiler/dllapi.h>
|
||||
|
||||
#include <rtl/ustring.hxx>
|
||||
#include <vector>
|
3
helpcompiler/prj/build.lst
Normal file
3
helpcompiler/prj/build.lst
Normal file
@@ -0,0 +1,3 @@
|
||||
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
|
0
helpcompiler/prj/d.lst
Normal file
0
helpcompiler/prj/d.lst
Normal file
@@ -27,7 +27,7 @@
|
||||
************************************************************************/
|
||||
|
||||
|
||||
#include "HelpCompiler.hxx"
|
||||
#include <helpcompiler/HelpCompiler.hxx>
|
||||
#include <limits.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
@@ -27,7 +27,7 @@
|
||||
* instead of those above.
|
||||
*/
|
||||
|
||||
#include <l10ntools/HelpIndexer.hxx>
|
||||
#include <helpcompiler/HelpIndexer.hxx>
|
||||
|
||||
#include <rtl/string.hxx>
|
||||
#include <rtl/uri.hxx>
|
@@ -27,7 +27,7 @@
|
||||
* instead of those above.
|
||||
*/
|
||||
|
||||
#include <l10ntools/HelpIndexer.hxx>
|
||||
#include <helpcompiler/HelpIndexer.hxx>
|
||||
#include <osl/file.hxx>
|
||||
#include <osl/process.h>
|
||||
#include <osl/thread.h>
|
@@ -26,8 +26,8 @@
|
||||
*
|
||||
************************************************************************/
|
||||
|
||||
#include "HelpCompiler.hxx"
|
||||
#include "l10ntools/HelpLinker.hxx"
|
||||
#include <helpcompiler/HelpCompiler.hxx>
|
||||
#include <helpcompiler/HelpLinker.hxx>
|
||||
|
||||
#include <map>
|
||||
|
||||
@@ -425,7 +425,7 @@ void HelpLinker::link() throw( HelpProcessingException )
|
||||
if (!bExtensionMode && xhpFileName.rfind(".xhp") != xhpFileName.length()-4)
|
||||
{
|
||||
// only work on .xhp - files
|
||||
SAL_WARN("l10ntools",
|
||||
SAL_WARN("helpcompiler",
|
||||
"ERROR: input list entry '"
|
||||
<< xhpFileName
|
||||
<< "' has the wrong extension (only files with extension .xhp "
|
@@ -26,8 +26,8 @@
|
||||
*
|
||||
************************************************************************/
|
||||
|
||||
#include "HelpCompiler.hxx"
|
||||
#include "l10ntools/HelpLinker.hxx"
|
||||
#include <helpcompiler/HelpCompiler.hxx>
|
||||
#include <helpcompiler/HelpLinker.hxx>
|
||||
#include <iostream>
|
||||
#include <sal/main.h>
|
||||
|
@@ -27,7 +27,7 @@
|
||||
* instead of those above.
|
||||
*/
|
||||
|
||||
#include <l10ntools/HelpSearch.hxx>
|
||||
#include <helpcompiler/HelpSearch.hxx>
|
||||
#include <osl/file.hxx>
|
||||
#include <osl/thread.hxx>
|
||||
|
@@ -36,10 +36,7 @@ $(eval $(call gb_Module_add_targets,l10ntools,\
|
||||
Executable_xrmex \
|
||||
Executable_localize \
|
||||
Executable_transex3 \
|
||||
Executable_helpindexer \
|
||||
Executable_helplinker \
|
||||
StaticLibrary_transex \
|
||||
Library_helplinker \
|
||||
Package_inc \
|
||||
Package_scripts \
|
||||
Package_ulfconv \
|
||||
|
@@ -27,14 +27,9 @@
|
||||
$(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/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/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/compilehelp.hxx,source/help/compilehelp.hxx))
|
||||
|
||||
|
||||
# vim: set noet sw=4 ts=4:
|
||||
|
@@ -1,3 +1,3 @@
|
||||
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\prj nmake - all tr_prj NULL
|
||||
|
@@ -1,2 +1,2 @@
|
||||
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
|
||||
|
@@ -1,3 +1,3 @@
|
||||
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\prj nmake - all sdext_prj NULL
|
||||
|
@@ -1,3 +1,3 @@
|
||||
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
|
||||
|
||||
|
@@ -1,2 +1,2 @@
|
||||
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
|
||||
|
@@ -1,3 +1,3 @@
|
||||
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\prj nmake - all xh_prj NULL
|
||||
|
@@ -38,7 +38,7 @@
|
||||
#include <algorithm>
|
||||
#include <string.h>
|
||||
|
||||
#include <l10ntools/HelpIndexer.hxx>
|
||||
#include <helpcompiler/HelpIndexer.hxx>
|
||||
|
||||
// Extensible help
|
||||
#include "com/sun/star/deployment/ExtensionManager.hpp"
|
||||
|
@@ -33,7 +33,7 @@
|
||||
#include <com/sun/star/lang/Locale.hpp>
|
||||
#include <com/sun/star/script/XInvocation.hpp>
|
||||
|
||||
#include <l10ntools/HelpSearch.hxx>
|
||||
#include <helpcompiler/HelpSearch.hxx>
|
||||
|
||||
#if defined _MSC_VER
|
||||
#pragma warning(push)
|
||||
|
Reference in New Issue
Block a user