REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2946 This is the regression issue in BaseTools BrotliCompress after Brotli is changed to submodule. BrotliCompress should store the source size and scratch buffer size into the header of the compressed binary data. But now, BrotliCompress doesn't store them. So, BrotliDecompress can't work. To fix this issue, BrotliCompress tool main() function should be provided. It needs to support the options of -e, -d, -o file, -g gap, -q level. Cc: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Yuwei Chen <yuwei.chen@intel.com> Signed-off-by: Yunhua Feng <fengyunhua@byosoft.com.cn> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
42 lines
1.1 KiB
Makefile
42 lines
1.1 KiB
Makefile
## @file
|
|
# GNU/Linux makefile for 'Brotli' module build.
|
|
#
|
|
# Copyright (c) 2017 - 2020, Intel Corporation. All rights reserved.<BR>
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
#
|
|
MAKEROOT ?= ..
|
|
|
|
APPNAME = BrotliCompress
|
|
|
|
OBJECTS = \
|
|
BrotliCompress.o \
|
|
brotli/c/common/dictionary.o \
|
|
brotli/c/common/transform.o \
|
|
brotli/c/dec/bit_reader.o \
|
|
brotli/c/dec/decode.o \
|
|
brotli/c/dec/huffman.o \
|
|
brotli/c/dec/state.o \
|
|
brotli/c/enc/backward_references.o \
|
|
brotli/c/enc/backward_references_hq.o \
|
|
brotli/c/enc/bit_cost.o \
|
|
brotli/c/enc/block_splitter.o \
|
|
brotli/c/enc/brotli_bit_stream.o \
|
|
brotli/c/enc/cluster.o \
|
|
brotli/c/enc/compress_fragment.o \
|
|
brotli/c/enc/compress_fragment_two_pass.o \
|
|
brotli/c/enc/dictionary_hash.o \
|
|
brotli/c/enc/encode.o \
|
|
brotli/c/enc/encoder_dict.o \
|
|
brotli/c/enc/entropy_encode.o \
|
|
brotli/c/enc/histogram.o \
|
|
brotli/c/enc/literal_cost.o \
|
|
brotli/c/enc/memory.o \
|
|
brotli/c/enc/metablock.o \
|
|
brotli/c/enc/static_dict.o \
|
|
brotli/c/enc/utf8_util.o
|
|
|
|
include $(MAKEROOT)/Makefiles/app.makefile
|
|
|
|
TOOL_INCLUDE = -I ./brotli/c/include
|
|
LIBS += -lm
|