aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2023-07-041.2-2.3% decoder speedupEvgenii Kliuchnikov1-5/+6
PiperOrigin-RevId: 513524040
2023-07-040.4-1.5% decoder speedupEvgenii Kliuchnikov13-403/+259
PiperOrigin-RevId: 513248503
2023-07-03Improve CodeQL workflow (#1027)Eugene Kliuchnikov1-3/+7
2023-07-03Add CodeQL workflow (#1026)Eugene Kliuchnikov1-0/+59
2023-07-03Create scorecard.ymlEugene Kliuchnikov1-0/+72
Install OSSF scoreboard
2023-07-03Add support for clang-cl compiler (#1021)Felix Hanau2-0/+24
2023-06-22Fix Bazel build (#1024)Eugene Kliuchnikov2-18/+19
2023-06-22fuzz: make target resist allocation failures (#1023)Catena cyber1-0/+5
So that fuzzing can go on with simulated allocation failures
2023-06-20Add loongarch64 support (#1022)Zhang Na1-2/+7
2023-02-01Merge pull request #1005 from sullis:enum-valuesEvgenii Kliuchnikov1-1/+4
PiperOrigin-RevId: 506138469
2023-02-01Fix permissionsEvgenii Kliuchnikov3-3/+8
PiperOrigin-RevId: 506096478
2023-01-31Decoder API: added API to attach metadata blocks callbacksEvgenii Kliuchnikov6-13/+184
PiperOrigin-RevId: 505734532
2023-01-30Fix emitting 1-byte long metadata blockEvgenii Kliuchnikov1-1/+1
PiperOrigin-RevId: 505484299
2023-01-30speed up encoding by ~5 %Brotli1-21/+13
PiperOrigin-RevId: 505061835
2023-01-22avoid array allocation in Encoder.Mode enumSean C. Sullivan1-1/+4
2023-01-17Internal changeBrotli11-9/+16
PiperOrigin-RevId: 502401179
2023-01-07Fix BrotliEncoderEstimatePeakMemoryUsage (#1002)Aron Parker1-0/+1
Fixes https://github.com/google/brotli/issues/1001
2023-01-04Java wrapper: allow using partial byte arrays (#999)Eugene Kliuchnikov2-21/+32
2023-01-04Fix MSVC warning (#998)Eugene Kliuchnikov1-2/+2
Fix #875
2023-01-03brotlidump: fix dictionary file discovery (#997)Eugene Kliuchnikov2-3/+9
2023-01-03Add security policy (#996)Eugene Kliuchnikov1-0/+6
2023-01-03Cleanup (#995)Eugene Kliuchnikov1-1/+0
2023-01-03Add win release assets (#994)Eugene Kliuchnikov2-0/+125
Fix #983
2022-12-29Python: use a new output buffer code (#902)Ma Lin2-174/+396
Currently, the output buffer is a std::vector<uint8_t>. When the buffer grows, resizing will cause unnecessary memcpy(). This change uses a list of bytes object to represent output buffer, can avoid the extra overhead of resizing. In addition, C++ code can be removed, it's a pure C extension.
2022-12-22Copy ns time stat (#992)Eugene Kliuchnikov1-10/+35
2022-12-22Ramp up CMake to v3 (#991)Eugene Kliuchnikov2-83/+4
Drive-by: drop premake5 support
2022-12-21Add *.d to gitignore (#975)Jack1-0/+1
2022-12-20Replace deprecated win-2016 workflows (#990)Eugene Kliuchnikov1-8/+8
* Remplace deprecated win-2016 workflows * Update action/checkout to v3
2022-12-20Fix bazel build (#989)Eugene Kliuchnikov5-10/+5
2022-12-20CMake: ensure static libraries are still installed on Emscripten (#988)Kleis Auke Wolthuizen1-8/+6
Similar to commit ce222e317e36aa362e83fc50c7a6226d238e03fd.
2022-12-16CMake: Allow using BUILD_SHARED_LIBS to choose static/shared libs (#655)Adrian Perez2-34/+18
By convention projects using CMake which can build either static or shared libraries use a BUILD_SHARED_LIBS flag to allow selecting between both: the add_library() command automatically switches between both using this variable when the library kind is not passed to add_library(). It is also usual to expose the BUILD_SHARED_LIBS as an user-facing setting with the option() command. This way, the following will both work as expected: % cmake -DBUILD_SHARED_LIBS=OFF ... % cmake -DBUILS_SHARED_LIBS=ON ... This is helpful for distributions which need (or want) to build only static libraries.
2022-11-17Fix typo (#951)Aayush Atharva1-1/+1
2022-11-17fix macos rpath (#976)Lukas Oberhuber1-0/+2
Without this patch, the three libraries are not provided with valid rpaths, meaning they are not packaged correctly for macos. c.f. https://github.com/google/brotli/issues/934 (which is a similar issue) but should be fixed by this fix as well. Also https://gitlab.gnome.org/Infrastructure/gimp-macos-build/-/merge_requests/129
2022-11-17Fix bootstrap version computing with custom bc (#978)Michal Josef Špaček1-6/+6
When i have ~/.bc configuration file with content: scale=2 which is changing default behaviour (scale=0), bootstrap is not working.
2022-11-17UpdateEvgenii Kliuchnikov70-698/+616
Documentation: - add note that brotli is a "stream" format, not an archive-like - regenerate .1 with Pandoc Build: - drop legacy "BROTLI_BUILD_PORTABLE" option - drop "BROTLI_SANITIZED" definition Code: - c: comb includes - c/enc: extract encoder state into separate header - c/enc: drop designated q10 codepath - c/enc: dealing better with flushing of empty stream - fix MSVC compilation API: - py: use library version instead of one in version.h - c: add plugable API to report consumed input / produced output - c/java: support "lean" prepared dictionaries (without copy of source)
2022-11-15add pyproject.toml (#987)清靈語1-0/+3
* add pyproject.toml pypa/pip#8559 https://pip.pypa.io/en/stable/reference/build-system/pyproject-toml/#fallback-behaviour * modify requirements https://github.com/google/brotli/pull/987#issuecomment-1315486841
2022-10-25Fix -Wstrict-prototypes warnings (#985)Keith Smiley2-2/+2
Envoy builds brotli with -Werror, and these strict prototypes are picked up by newer versions of clang.
2022-05-12Wrap interface include directories with BUILD_INTERFACE generator expression ↵Anonymous Maarten1-1/+1
(#966) * Wrap interface include directories with BUILD_INTERFACE generator expression When exporting a CMake target using install(TARGETS) + install(EXPORT), CMake requires all include directories to be clean of build system directories. https://cmake.org/cmake/help/latest/prop_tgt/INTERFACE_INCLUDE_DIRECTORIES.html This change also allows use of brotli as a CMake subproject and installing + exporting it. * Fix typo in generator expression
2022-05-11bootstrap: Fix exit code when autoreconf fails (#962)Ryan Schmidt1-1/+1
Fixes: ./bootstrap: line 37: exit: $: numeric argument required
2022-05-11Fix bootstrap on macOS (#965)Ryan Schmidt1-9/+7
* bootstrap: Verify functionality of sed Check for the existence of sed by running a simple substitution rather than using the --version flag. This lets us remove the weird exclusion of FreeBSD from checking the sed requirement, and fixes checking the sed requirement on other systems like macOS that use BSD sed, which doesn't support --version. * bootstrap: Detect flag for sed extended RE Detect whether sed needs -E or -r to enable extended regular expressions. Fixes bootstrap on macOS, whose BSD sed does not support -r. GNU sed has supported -E as a synonym for -r since version 4.2 (2009), initially as an undocumented option for compatibility with BSD sed: http://git.savannah.gnu.org/cgit/sed.git/commit/sed/sed.c?id=3a8e165ab02487c372df217c1989e287625ce0ae and later as a documented option after -E became POSIX: http://git.savannah.gnu.org/cgit/sed.git/commit/sed/sed.c?id=8b65e07904384b529a464c89f3739d2e7e4d5135
2022-01-10Fix for future versions of python (#911)Marco Scardovi1-1/+1
Starting python 3.10, the use of - instead of _ will get a warn (see https://bugs.gentoo.org/796281 for reference) Signed-off-by: Marco Scardovi <marco@scardovi.com>
2021-12-15Supress cmake warning (#931)Mohammad Bahoosh1-0/+5
Not providing VERSION to "project" command will cause a warning. Since this project's version is loaded from other files, this policy will help suppress the warning generated by cmake. This policy is set because we can't provide "VERSION" in "project" command. Use `cmake --help-policy CMP0048` for more information
2021-12-07Merge pull request #929 from jbms/fix-vla-parameterJyrki Alakuijala3-5/+6
Fix -Werror=vla-parameter errors with GCC 11.2.0
2021-11-10Prepare for copybara (#939)Eugene Kliuchnikov39-92/+343
Co-authored-by: Eugene Kliuchnikov <eustas@chromium.org>
2021-09-14Fix -Werror=vla-parameter errors with GCC 11.2.0Jeremy Maitin-Shepard3-5/+6
2021-09-08Strip "./" in includes (#925)Eugene Kliuchnikov63-240/+240
Co-authored-by: Eugene Kliuchnikov <eustas@chromium.org>
2021-08-31Update README.mdEugene Kliuchnikov1-1/+1
Fix typo in Gihtub actions badge
2021-08-31Update README.md (#923)Eugene Kliuchnikov1-2/+1
2021-08-31Migrate to github actions (#920)Eugene Kliuchnikov26-543/+523
Not all combinations are migrated to the initial configuration; corresponding TODOs added. Drive-by: additional combinations uncovered minor portability problems -> fixed Drive-by: remove no-longer used "script" files. Co-authored-by: Eugene Kliuchnikov <eustas@chromium.org>
2021-08-18Update (#918)Eugene Kliuchnikov37-86/+2984
Prepare to use copybara worklow.