# -*- 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_CustomTarget_CustomTarget,helpcontent2/help3xsl)) # HACK!! html_TREE_MODULES := sbasic scalc schart shared simpress smath swriter html_TEXT_MODULES := $(html_TREE_MODULES) sdatabase sdraw html_BMARK_MODULES := swriter:WRITER scalc:CALC simpress:IMPRESS sdraw:DRAW shared/explorer/database:BASE smath:MATH schart:CHART sbasic:BASIC shared:SHARED $(eval $(call gb_CustomTarget_register_targets,helpcontent2/help3xsl,\ hid2file.js \ $(foreach lang,$(gb_HELP_LANGS),\ $(lang)/bookmarks.js \ $(lang)/contents.js \ $(lang)/html.text \ $(foreach module,$(html_TREE_MODULES),$(module)/$(lang)/contents.part) \ $(foreach module,$(html_BMARK_MODULES),$(firstword $(subst :, ,$(module)))/$(lang)/bookmarks.part) \ $(foreach module,$(html_TEXT_MODULES),filelists/html-help/$(module)/$(lang).filelist) \ ) \ )) $(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/hid2file.js : \ $(SRCDIR)/helpcontent2/help3xsl/get_url.xsl \ $(call gb_ExternalExecutable_get_dependencies,xsltproc) \ $(foreach module,$(html_TEXT_MODULES),$(call gb_AllLangHelp_get_helpfiles_target,$(module))) $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),XSL,1) $(call gb_Helper_abbreviate_dirs,\ ( \ echo 'var map={' \ && RESPONSEFILE=$(call var2file,$(shell $(gb_MKTEMP)),100,$(foreach module,$(html_TEXT_MODULES),$(addprefix $(SRCDIR)/,$(gb_AllLangHelp_$(module)_HELPFILES)))) \ && <"$$RESPONSEFILE" $(if $(filter WNT,$(OS)),tr -d '\r' | env -i PATH="$$PATH") xargs -n 1 printf '%s\n' \ | while read xhp; do \ $(call gb_ExternalExecutable_get_command,xsltproc) $< $$xhp \ | $(gb_AWK) 'NF' \ ; done \ && rm "$$RESPONSEFILE" \ && echo '};' \ ) > $@ \ ) define html_gen_contents_html_dep $(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/$(1)/contents.part : $(call gb_HelpTarget__get_treefile,$(1),$(3)) $(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/$(1)/contents.part : TREE_FILE := $(call gb_HelpTarget__get_treefile,$(1),$(3)) $(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/$(1)/contents.part : LANG := $(2) endef define html_gen_contents_dep $(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/$(1)/contents.js : \ $(foreach module,$(html_TREE_MODULES),\ $(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/$(module)/$(1)/contents.part) $(foreach module,$(html_TREE_MODULES),$(call html_gen_contents_html_dep,$(module)/$(1),$(1),helpcontent2/source/auxiliary/$(module))) endef $(eval $(foreach lang,$(gb_HELP_LANGS),$(call html_gen_contents_dep,$(lang)))) $(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/%/contents.js : $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),CAT,2) $(call gb_Helper_abbreviate_dirs,\ ( \ echo "document.getElementById(\"Contents\").innerHTML='\\" \ && cat $(filter %.part,$^) | $(gb_AWK) 'NF' \ && echo "';" \ ) > $@ \ ) $(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/%/contents.part : \ $(SRCDIR)/helpcontent2/help3xsl/get_tree.xsl \ $(call gb_ExternalExecutable_get_dependencies,xsltproc) $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),XSL,1) $(call gb_Helper_abbreviate_dirs,\ $(call gb_ExternalExecutable_get_command,xsltproc) \ --stringparam lang $(LANG) \ --stringparam local $(if $(HELP_ONLINE),'no','yes') \ --stringparam productversion $(PRODUCTVERSION) \ -o $@ \ $(SRCDIR)/helpcontent2/help3xsl/get_tree.xsl \ $(TREE_FILE) \ ) define html_gen_html_dep $(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/$(1)/html.text : \ $(foreach module,$(html_TEXT_MODULES), \ $(if $(filter en-US,$(1)), \ $(call gb_AllLangHelp_get_helpfiles_target,$(module)), \ $(call gb_HelpTranslateTarget_get_target,$(module)/$(1)))) endef $(eval $(foreach lang,$(gb_HELP_LANGS),$(call html_gen_html_dep,$(lang)))) $(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/%/html.text : \ $(SRCDIR)/helpcontent2/help3xsl/online_transform.xsl \ $(call gb_ExternalExecutable_get_dependencies,xsltproc) $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),XSL,1) $(call gb_Helper_abbreviate_dirs,\ cd $(if $(filter en-US,$*),$(SRCDIR),$(call gb_HelpTranslatePartTarget_get_workdir,$*))/helpcontent2/source \ && rm -rf $(dir $@)text \ && RESPONSEFILE=$(call var2file,$(shell $(gb_MKTEMP)),100,$(foreach module,$(html_TEXT_MODULES),$(patsubst helpcontent2/source/%,%,$(gb_AllLangHelp_$(module)_HELPFILES)))) \ && <"$$RESPONSEFILE" $(if $(filter WNT,$(OS)),tr -d '\r' | env -i PATH="$$PATH") xargs -n 1 printf '%s\n' \ | while read xhp; do \ mkdir -p $$(dirname $(dir $@)$$xhp) && \ $(call gb_ExternalExecutable_get_command,xsltproc) \ --stringparam Language $* \ --stringparam local $(if $(HELP_ONLINE),'no','yes') \ --stringparam root $(if $(filter WNT,$(OS)),$$(cygpath -m `pwd`),`pwd`)/ \ --stringparam productversion $(PRODUCTVERSION) \ -o $(dir $@)$${xhp%.xhp}.html \ $(SRCDIR)/helpcontent2/help3xsl/online_transform.xsl \ $(if $(filter WNT,$(OS)),$$(cygpath -m `pwd`),`pwd`)/$$xhp \ ; done \ && rm "$$RESPONSEFILE" \ && touch $@ \ ) $(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/%/bookmarks.js : $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),CAT,2) $(call gb_Helper_abbreviate_dirs,\ ( \ echo 'document.getElementsByClassName( "index" )[0].innerHTML='"'"'\' \ && cat $(filter %.part,$^) \ && echo "'" \ ) > $@ \ ) define html__gen_bookmarks_lang_dep $(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/$(2)/$(1)/bookmarks.part : \ $(if $(filter en-US,$(1)), \ $(call gb_AllLangHelp_get_helpfiles_target,$(firstword $(subst /, ,$(2)))), \ $(call gb_HelpTranslateTarget_get_target,$(firstword $(subst /, ,$(2)))/$(1))) endef define html__gen_bookmarks_lang_deps $(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/$(1)/bookmarks.js : \ $(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/$(2)/$(1)/bookmarks.part $(call html__gen_bookmarks_lang_dep,$(1),$(2)) $(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/$(2)/$(1)/bookmarks.part : HELP_LANG := $(1) endef define html__gen_bookmarks_deps $(foreach lang,$(gb_HELP_LANGS),$(call html__gen_bookmarks_lang_deps,$(lang),$(1))) $(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/$(1)/%/bookmarks.part : APP := $(2) $(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/$(1)/%/bookmarks.part : APPDIR := $(1) endef define html_gen_bookmarks_deps $(call html__gen_bookmarks_deps,$(firstword $(1)),$(lastword $(1))) endef $(eval $(foreach module,$(html_BMARK_MODULES),$(call html_gen_bookmarks_deps,$(subst :, ,$(module))))) $(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/%/bookmarks.part : \ $(SRCDIR)/helpcontent2/help3xsl/get_bookmark.xsl \ $(call gb_ExternalExecutable_get_dependencies,xsltproc) $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),XSL,1) $(call gb_Helper_abbreviate_dirs,\ RESPONSEFILE=$(call var2file,$(shell $(gb_MKTEMP)),100,$(addprefix $(if $(filter en-US,$(HELP_LANG)),$(SRCDIR),$(call gb_HelpTranslatePartTarget_get_workdir,$(HELP_LANG)))/,$(gb_AllLangHelp_$(APPDIR)_HELPFILES))) \ && ( \ <"$$RESPONSEFILE" $(if $(filter WNT,$(OS)),tr -d '\r' | env -i PATH="$$PATH") xargs -n 1 printf '%s\n' \ | while read xhp; do \ $(call gb_ExternalExecutable_get_command,xsltproc) \ --stringparam app $(APP) \ --stringparam Language $(HELP_LANG) \ --stringparam local $(if $(HELP_ONLINE),'no','yes') \ --stringparam productversion $(PRODUCTVERSION) \ $(SRCDIR)/helpcontent2/help3xsl/get_bookmark.xsl \ $$xhp \ ; done \ | sort -k3b -t\> -s \ | awk 'NF' \ ) > $@ \ && rm "$$RESPONSEFILE" \ ) # The various gid_File_Help_*_Zip in scp2 that use EXTRA_ALL_GOOD_HELP_LOCALIZATIONS_LANG expect # $(module)/$(lang).filelist files containing lists of files (in instdir) for the corresponding # module/lang parts of help data. As a hack, generate those from the existing HelpTarget file # lists, which specify the original .xhp files (in SRCDIR for en-US, translated for all other # langs). For the shared module, also include the per-lang non .xhp/.html files from the # AllLangPackages helpcontent2_html_lang and helpcontent2_html_media_lang: # html__filelist,lang,module define html__filelist $(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/filelists/html-help/$(2)/$(1).filelist: \ $(call gb_HelpTarget_get_filelist,$(2)/$(1)) \ $(if $(filter $(2),shared), \ $(call gb_Package_get_target,helpcontent2_html_lang_$(1)) \ $(call gb_Package_get_target,helpcontent2_html_media_lang_$(1))) mkdir -p $$$$(dirname $$@) sed -e 's|$(if $(filter $(1),en-US),$(SRCDIR),$(call gb_HelpTranslatePartTarget_get_workdir,$(1)))/helpcontent2/source/|$(INSTROOT)/$(LIBO_SHARE_HELP_FOLDER)/$(1)/|g' -e 's|.xhp|.html|g' $(call gb_HelpTarget_get_filelist,$(2)/$(1)) > $$@ $(if $(filter $(2),shared),cat $(call gb_Package_get_target,helpcontent2_html_lang_$(1)) $(call gb_Package_get_target,helpcontent2_html_media_lang_$(1)) >> $$@,:) endef $(eval $(foreach lang,$(gb_HELP_LANGS),$(foreach module,$(html_TEXT_MODULES),$(call html__filelist,$(lang),$(module))))) # vim: set noet sw=4 ts=4: lue='feature/5-1-pick'>feature/5-1-pick LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/ridljar
AgeCommit message (Expand)Author
2024-03-02Allow building with Java 8Fridrich Štrba
2024-02-22fix dodgy unit testNoel Grandin
2023-11-09enable unchecked lint for our java codeNoel Grandin
2023-11-02'new Character' is deprecated in JavaNoel Grandin
2023-11-02'new Double' is deprecated in JavaNoel Grandin
2023-11-02'new Float' is deprecated in JavaNoel Grandin
2023-10-02drop use of urp: followed by newline of spaceCaolán McNamara
2023-09-30cid#1545655 Dm: Dubious method usedCaolán McNamara
2023-09-30cid#1545766 silence Unguarded readCaolán McNamara
2023-09-29cid#1546393 SBSC: String concatenation in loop using + operatorCaolán McNamara
2023-09-05call WebSocketClient.close from XConnection.closeCaolán McNamara
2023-09-05websocket URP flush hangs with large bufferCaolán McNamara
2023-09-03each websocket URP message is taking a full secondCaolán McNamara
2023-09-01prefix the UNO-Url example with recommended 'uno:'Caolán McNamara
2023-09-01Fix typoAndrea Gelmini
2023-09-01Add a FunctionBasedURPConnection and a websocket URP connectorSkyler Grey
2023-09-01tdf#149069 Revert "ridljar: check UnoClassLoader used for NativeLibraryLoader"Hossein
2023-02-28InputStreamToXInputStreamAdapter.readBytes() should read...Damjan Jovanovic
2023-02-28Fix the java.lang.NullPointerException in readBytes() and readSomeBytes()...Damjan Jovanovic
2023-02-28fix up misleading mismatching indent and add mode linesCaolán McNamara
2022-08-13warning: empty <p> tagCaolán McNamara
2022-06-13Drop obsolete preprocessor directives from UNOIDL filesStephan Bergmann
2021-08-19ridljar: check that UnoClassLoader is used for NativeLibraryLoaderMichael Stahl
2021-04-07Updated README.md files to represent current code / use Markdown formatHossein
2021-03-24Using .md extension/Markdown syntax for modules READMEHossein
2020-11-30Adapt buck build to jars merged into libreoffice.jarRene Engelhard
2020-09-25socket cannot be null at this pointNoel Grandin
2020-09-01Fix typo in codeAndrea Gelmini
2020-08-21Fix typosAndrea Gelmini
2020-08-05add dependency to juh,jurt,ridl,unoil pomsRene Engelhard
2020-05-27tdf#131572 Add java 9 module info for unoloader.jarSamuel Mehrbrodt
2020-05-27tdf#131572 Add java 9 module info for libreoffice.jarSamuel Mehrbrodt
2020-05-07add pom for libreoffice.jarRene Engelhard
2020-05-06Move all public Java classes to libreoffice.jarSamuel Mehrbrodt
2020-02-16GBUILD_TRACE, support for finding out where the build time is spentLuboš Luňák
2020-02-10Cleanup: Move unit tests to ridljarSamuel Mehrbrodt
2020-02-10Cleanup: Move files to ridljarSamuel Mehrbrodt
2020-02-06These JunitTests can be plain check, not subsequentcheckStephan Bergmann
2020-02-04tdf#117331 Merge jurt and unoil into ridlSamuel Mehrbrodt
2019-08-12Fix typosAndrea Gelmini
2019-07-26Fix typosAndrea Gelmini
2019-05-27@deprecated should be with @DeprecatedTomoyuki Kubota
2018-07-08Fix typoAndrea Gelmini
2018-04-16Use https instead of httpGulsah Kose