external: add brotli
brotli is a lossless compression algorithm using the "stream" format Downloaded from https://github.com/google/brotli/archive/refs/tags/v1.2.0.tar.gz Change-Id: Ia5dd6b6e321be4284342068250ae7a6118e192e7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208008 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> Tested-by: Jenkins
This commit is contained in:
@@ -107,6 +107,7 @@ $(WORKDIR)/download: $(BUILDDIR)/config_$(gb_Side).mk $(SRCDIR)/download.lst $(S
|
||||
$(call fetch_Optional,BOOST,BOOST_TARBALL) \
|
||||
$(call fetch_Optional,BOX2D,BOX2D_TARBALL) \
|
||||
$(call fetch_Optional,BREAKPAD,BREAKPAD_TARBALL) \
|
||||
$(call fetch_Optional,BROTLI,BROTLI_TARBALL) \
|
||||
$(call fetch_Optional,BSH,BSH_TARBALL) \
|
||||
$(call fetch_Optional,BZIP2,BZIP2_TARBALL) \
|
||||
$(call fetch_Optional,CAIRO,CAIRO_TARBALL) \
|
||||
|
||||
+19
-1
@@ -513,7 +513,6 @@ else
|
||||
endef
|
||||
endif
|
||||
|
||||
|
||||
ifneq ($(filter HIGHWAY,$(BUILD_TYPE)),)
|
||||
|
||||
define gb_LinkTarget__use_highway
|
||||
@@ -532,6 +531,25 @@ endef
|
||||
|
||||
endif # HIGHWAY
|
||||
|
||||
ifneq ($(filter BROTLI,$(BUILD_TYPE)),)
|
||||
|
||||
define gb_LinkTarget__use_brotli
|
||||
$(call gb_LinkTarget_set_include,$(1),\
|
||||
-I$(gb_UnpackedTarball_workdir)/brotli/c \
|
||||
-I$(gb_UnpackedTarball_workdir)/brotli/c/include \
|
||||
$$(INCLUDE) \
|
||||
)
|
||||
$(call gb_LinkTarget_use_static_libraries,$(1),brotli)
|
||||
|
||||
endef
|
||||
|
||||
define gb_ExternalProject__use_brotli
|
||||
$(call gb_ExternalProject_use_static_libraries,$(1),brotli)
|
||||
|
||||
endef
|
||||
|
||||
endif # BROTLI
|
||||
|
||||
ifneq ($(SYSTEM_LIBJPEG),)
|
||||
|
||||
define gb_LinkTarget__use_libjpeg
|
||||
|
||||
@@ -29,6 +29,11 @@ BREAKPAD_TARBALL := breakpad-b324760c7f53667af128a6b77b790323da04fcb9.tar.xz
|
||||
# three static lines
|
||||
# so that git cherry-pick
|
||||
# will not run into conflicts
|
||||
BROTLI_SHA256SUM := 816c96e8e8f193b40151dad7e8ff37b1221d019dbcb9c35cd3fadbfe6477dfec
|
||||
BROTLI_TARBALL := brotli-1.2.0.tar.gz
|
||||
# three static lines
|
||||
# so that git cherry-pick
|
||||
# will not run into conflicts
|
||||
BSH_SHA256SUM := 2248387ceaa319840434a3547a8b2fec12f95a8418ee039ce5ff5726053a139c
|
||||
BSH_TARBALL := bsh-2.1.1-src.zip
|
||||
# three static lines
|
||||
|
||||
Vendored
+1
@@ -17,6 +17,7 @@ $(eval $(call gb_Module_add_moduledirs,external,\
|
||||
$(call gb_Helper_optional,BOOST,boost) \
|
||||
$(call gb_Helper_optional,BOX2D,box2d) \
|
||||
$(call gb_Helper_optional,BREAKPAD,breakpad) \
|
||||
$(call gb_Helper_optional,BROTLI,brotli) \
|
||||
$(call gb_Helper_optional,BSH,beanshell) \
|
||||
$(call gb_Helper_optional,BZIP2,bzip2) \
|
||||
$(call gb_Helper_optional,CAIRO,cairo) \
|
||||
|
||||
Vendored
+7
@@ -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:
|
||||
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
# -*- 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,brotli))
|
||||
|
||||
$(eval $(call gb_Module_add_targets,brotli,\
|
||||
StaticLibrary_brotli \
|
||||
UnpackedTarball_brotli \
|
||||
))
|
||||
|
||||
# vim: set noet sw=4 ts=4:
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
brotli is a lossless compression algorithm using the "stream" format.
|
||||
|
||||
From [https://github.com/google/brotli].
|
||||
+72
@@ -0,0 +1,72 @@
|
||||
# -*- 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_StaticLibrary_StaticLibrary,brotli))
|
||||
|
||||
$(eval $(call gb_StaticLibrary_use_unpacked,brotli,brotli))
|
||||
|
||||
$(eval $(call gb_StaticLibrary_set_warnings_disabled,brotli))
|
||||
|
||||
$(eval $(call gb_StaticLibrary_set_include,brotli,\
|
||||
-I$(WORKDIR)/UnpackedTarball/brotli \
|
||||
-I$(WORKDIR)/UnpackedTarball/brotli/c/include \
|
||||
$$(INCLUDE) \
|
||||
))
|
||||
|
||||
$(eval $(call gb_StaticLibrary_add_generated_cobjects,brotli,\
|
||||
$(addprefix UnpackedTarball/brotli/c/common/, \
|
||||
constants \
|
||||
context \
|
||||
dictionary \
|
||||
platform \
|
||||
shared_dictionary \
|
||||
transform \
|
||||
) \
|
||||
))
|
||||
|
||||
$(eval $(call gb_StaticLibrary_add_generated_cobjects,brotli,\
|
||||
$(addprefix UnpackedTarball/brotli/c/enc/, \
|
||||
backward_references \
|
||||
backward_references_hq \
|
||||
bit_cost \
|
||||
block_splitter \
|
||||
brotli_bit_stream \
|
||||
cluster \
|
||||
command \
|
||||
compound_dictionary \
|
||||
compress_fragment \
|
||||
compress_fragment_two_pass \
|
||||
dictionary_hash \
|
||||
encode \
|
||||
encoder_dict \
|
||||
entropy_encode \
|
||||
fast_log \
|
||||
histogram \
|
||||
literal_cost \
|
||||
memory \
|
||||
metablock \
|
||||
static_dict \
|
||||
static_dict_lut \
|
||||
static_init \
|
||||
utf8_util \
|
||||
) \
|
||||
))
|
||||
|
||||
$(eval $(call gb_StaticLibrary_add_generated_cobjects,brotli,\
|
||||
$(addprefix UnpackedTarball/brotli/c/dec/, \
|
||||
bit_reader \
|
||||
decode \
|
||||
huffman \
|
||||
prefix \
|
||||
state \
|
||||
static_init \
|
||||
) \
|
||||
))
|
||||
|
||||
# vim: set noet sw=4 ts=4:
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
# -*- 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_UnpackedTarball_UnpackedTarball,brotli))
|
||||
|
||||
$(eval $(call gb_UnpackedTarball_set_tarball,brotli,$(BROTLI_TARBALL)))
|
||||
|
||||
# vim: set noet sw=4 ts=4:
|
||||
@@ -171,6 +171,29 @@
|
||||
copies of this file in any form for internal or external distribution as long as this notice remains
|
||||
attached.</p>
|
||||
</div>
|
||||
<div class="BROTLI">
|
||||
<h2>brotli</h2>
|
||||
<p>The following software may be included in this product: brotli.</p>
|
||||
<p>brotli code is covered by the MIT license:</p>
|
||||
<blockquote>
|
||||
<p>Copyright (c) 2009, 2010, 2013-2016 by the Brotli Authors.</p>
|
||||
<p>Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:</p>
|
||||
<p>The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.</p>
|
||||
<p>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.</p>
|
||||
</blockquote>
|
||||
</div>
|
||||
<div class="BZIP2">
|
||||
<h2>Bzip2</h2>
|
||||
<p>The following software may be included in this product: bzip2, a free and open-source file compression
|
||||
|
||||
Reference in New Issue
Block a user