office-gobmx/readlicense_oo
Christian Lohmaier 0c4c84a14b makefile simplification: replace $(call gb_CustomTarget_get_workdir,foo)
…by a simple/static $(gb_CustomTarget_workdir)/foo

The build system has a lot of overly complicated leftovers from when it
was introduced and had not only deal with split repositories but also
had to coexist with another buildsystem. Along with lots of copy'n'paste
along the years the makefiles became hard to grasp for newcomers with
all our calls and evals.
As a first step to streamline that, the macros from TargetLocations that
simply prefix a static path to the argument (and similar of the same
kind) are a natural pick before simplifying the rules themselves/getting
rid of a bunch of eval statements.

Change-Id: Ia06dbbcd5d1994755a2ff05b84f72ccbc4e3cab5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167005
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2024-05-03 16:06:14 +02:00
..
docs tdf#157716 - Rename "Language settings" to "Languages and Locales" 2023-11-18 16:01:33 +01:00
license update credits 2024-04-29 20:38:43 +02:00
CustomTarget_license.mk makefile simplification: replace $(call gb_CustomTarget_get_workdir,foo) 2024-05-03 16:06:14 +02:00
CustomTarget_readme.mk makefile simplification: replace $(call gb_CustomTarget_get_workdir,foo) 2024-05-03 16:06:14 +02:00
Makefile
Module_readlicense_oo.mk single source file for licensing info with conditional text 2019-03-19 15:16:51 +01:00
Package_files.mk single source file for licensing info with conditional text 2019-03-19 15:16:51 +01:00
Package_license.mk makefile simplification: replace $(call gb_CustomTarget_get_workdir,foo) 2024-05-03 16:06:14 +02:00
Package_readlicense_oo_readmes.mk makefile simplification: replace $(call gb_CustomTarget_get_workdir,foo) 2024-05-03 16:06:14 +02:00
README.md

LibreOffice Licensing Blurb

Contains the stock libreoffice licensing blurb, as distributed in the install directory, and also potentially at run-time.

Generating Licence Files

License files are generated from a single source file (license/license.xml). Output file formats are plain text and html.

  • The plain text and the html format is generated with XSLT. There are two separate XSL files for plain text and html.

Conditional Text

The contents of the license file depends on the build configuration. Several externals may or may not be shipped with LibreOffice. Therefore, we need to pass information about build configuration to the XSLT processor.

Variables used for conditional text:

  • BUILD_TYPE: A space separated list of libraries/externals. If an external is present in that list, then the related license text should be included.

  • MPL_SUBSET: If the variable is defined, then GPL and LGPL license text will not be included, because none of the built-in code need it.

  • OS: The target platform. E.g. MSVC Runtime is packaged and used only on Windows.

  • WITH_THEMES: A space separated list of icon sets that are used in the build.

Conditional text are surrounded by and extra <div> tag. The class attribute of that <div> tag decides which parameter values are taken into consideration.