Commit Graph

1968 Commits

Author SHA1 Message Date
Lzu Tao
4765ad88bd meson: Use libray as required argument in pkgconfig 2019-01-11 02:33:27 +07:00
Lzu Tao
b3b22b9660 meson: Explicit use meson setup to setup a builddir 2019-01-11 02:32:39 +07:00
Yann Collet
ec735ac53e updated frame format
re-wording non-full blocks,
for clarity.
2019-01-02 15:02:22 -08:00
Yann Collet
7a4e04e6a6 updated LZ4 block format
rewording the end of block conditions
for clarity and answering related questions.
2019-01-02 14:36:12 -08:00
Yann Collet
6e24ef902a
Merge pull request #620 from lzutao/meson_symlink
Update meson symlink and man1 extension
2018-12-17 09:32:01 -08:00
Yann Collet
e5a1911ec2
Merge pull request #621 from lzutao/meson_getversion
meson: Remove unused sys import
2018-12-14 09:24:50 -08:00
Lzu Tao
e23d0fb908 meson: Remove unused sys import 2018-12-14 11:12:22 +07:00
Lzu Tao
34dcc5e16d Simplify logic by setting default value for MESON_INSTALL_DESTDIR_PREFIX 2018-12-13 18:08:01 +07:00
Lzu Tao
7f8b0175a9 meson: Update man1 extension in meson 0.49.0 2018-12-13 14:52:51 +07:00
Lzu Tao
54dabaa16c meson: Update InstallSymlink.py usage
Change default directory mode to 755.
2018-12-13 14:31:15 +07:00
Yann Collet
f603fdf782
Merge pull request #618 from dosaboy/add-snap-packaging-support
Add snap packaging support
2018-12-12 11:19:46 -08:00
Edward Hope-Morley
bd5869a5aa Add snap packaging support
This commit adds a snapcraft.yaml file to allow lz4
to be distributed as a snap (see https://snapcraft.io/
for more info on snaps).

Building the Snap
-----------------

To build the snap simply install snapcraft and build the
snap e.g. on Ubuntu by doing:

$ sudo apt install snapcraft
$ cd contrib; snapcraft

This will build a snap that can be published [1] to
e.g. https://snapcraft.io/lz4

If you want to test the snap before publishing you
can do:

$ snap install <snapname>.snap --dangerous

And that will install it on your local host. You
will then have lz4 as a command to run.

Installing the Snap
-------------------

Once published and released in the snapstore your snap
can be installed on any platform that supports snaps
by doing:

snap install lz4

[1] https://docs.snapcraft.io/releasing-to-the-snap-store
2018-12-12 17:16:01 +00:00
Yann Collet
16400fb790
Merge pull request #616 from felixhandte/lz4-attach-reject-short-dicts
Fix LZ4_compress_fast_continue() Prefix Size Check
2018-12-09 11:29:43 -08:00
Yann Collet
077caefae6
Merge pull request #613 from lzutao/fix_meson_tests
meson: Fix build and test problems
2018-12-09 11:29:03 -08:00
Lzu Tao
58d8055da6 meson: Add README.md for newcomers [skip ci] 2018-12-09 18:57:49 +07:00
W. Felix Handte
4e3accccb2 Fix Dict Size Test in LZ4_compress_fast_continue()
Dictionaries don't need to be > 4 bytes, they need to be >= 4 bytes. This test
was overly conservative.

Also removes the test in `LZ4_attach_dictionary()`.
2018-12-05 11:24:33 -08:00
W. Felix Handte
535636ff5c Don't Attach Very Small Dictionaries
Fixes a mismatch in behavior between loading into the context (via
`LZ4_loadDict()`) a very small (<= 4 bytes) non-contiguous dictionary, versus
attaching it with `LZ4_attach_dictionary()`.

Before this patch, this divergence could be reproduced by running

```
make -C tests fuzzer MOREFLAGS="-m32"
tests/fuzzer -v -s1239 -t3146
```

Making sure these two paths behave exactly identically is an easy way to test
the correctness of the attach path, so it's desirable that this remain an
unpolluted, high signal test.
2018-12-04 14:05:11 -08:00
Lzu Tao
fbc42958c0 No need to join prefix and let soversion base on version 2018-12-04 10:18:54 +07:00
Lzu Tao
4c43d14891 Use MESON_INSTALL_DESTDIR_PREFIX instead of DESTDIR 2018-12-04 10:18:01 +07:00
Lzu Tao
b4ab8875f9 meson: Add fallback message when not found lz4.h 2018-12-04 00:59:06 +07:00
Lzu Tao
2491af993b meson: Fix wrong path to lib/lz4.h 2018-12-04 00:56:10 +07:00
Lzu Tao
0caeec939f meson: Correct support for Windows build 2018-12-03 22:48:37 +07:00
Lzu Tao
7b6ccfe52c meson: Use clang for faster build
"ninja install" automatically builds the project, no need to
use "ninja"
2018-12-03 22:48:37 +07:00
Lzu Tao
e2fc6bcd1c meson: Update usage of InstallSymlink helper 2018-12-03 22:48:37 +07:00
Lzu Tao
4fe675af1c Use argparse instead of manually parsing [skip ci] 2018-12-03 19:19:21 +07:00
Lzu Tao
a9e96d5c5a meson: Fix soversion and generated pkg-config file [skip ci] 2018-12-03 19:19:02 +07:00
Lzu Tao
4fc4b73586 meson: Use --werror build option instead of passing -Werror [skip ci] 2018-12-03 19:19:02 +07:00
Lzu Tao
5699432d38 meson test: Update timeout and tests that use COPYING 2018-12-03 19:19:02 +07:00
Yann Collet
3a510831c3
Merge pull request #615 from vtorri/dev
Windows: create import library with gcc directly, remove now useless def file
2018-12-02 12:30:25 -08:00
Vincent Torri
9021648ba7 Merge remote-tracking branch 'upstream/dev' into dev 2018-12-02 19:42:38 +01:00
Vincent Torri
b03714dc80 Windows: create import library with gcc directly, remove now useless def file 2018-12-02 18:50:18 +01:00
Vincent Torri
65ff6f8073 Merge remote-tracking branch 'upstream/master' into dev 2018-12-02 18:46:14 +01:00
Yann Collet
4d60ecc9c7
Merge pull request #612 from lzutao/fix_clang_fuzzer
Fix clang warning
2018-12-02 08:50:08 -08:00
Lzu Tao
49073aca86 clang: Fix -Wcomma 2018-12-02 20:39:47 +07:00
Lzu Tao
b9d3080d75 clang: Fix -Wcast-qual 2018-12-02 20:30:25 +07:00
Lzu Tao
0241755dbf Fix clang warnings: -Wformat-pedantic and -Werror=overflow 2018-12-02 20:12:24 +07:00
Yann Collet
3b8253a4bc
Merge pull request #611 from lzutao/mesonbuild
Support for Meson build and its CI tests
2018-12-01 19:35:47 -08:00
Lzu Tao
9f87365de5 Add Travis meson build 2018-12-02 10:00:27 +07:00
Lzu Tao
5bc119455f Add meson build system 2018-12-02 10:00:27 +07:00
Yann Collet
6689dae33b
Merge pull request #610 from antinucleon/bootcamp
[amalgamation] lz4frame.c
2018-11-26 12:14:27 -08:00
Bing Xu
b192c86ba4 [amalgamation] lz4frame.c 2018-11-26 11:30:15 -08:00
Bing Xu
b4efd20ac8 Merge remote-tracking branch 'upstream/master' into bootcamp 2018-11-26 11:12:49 -08:00
Yann Collet
01d2a721d3
Merge pull request #606 from nh2/patch-1
lz4_Frame_format.md: Fix typo HexaBytes -> Exabytes
2018-11-25 13:38:37 -08:00
Niklas Hambüchen
ca45db8d4f
lz4_Frame_format.md: Fix typo HexaBytes -> Exabytes 2018-11-24 22:13:10 +01:00
Yann Collet
0983fd61ee
Merge pull request #605 from vtorri/dev
Allow installation of lz4 for Windows (MSYS2 or when cross-compiling)
2018-11-21 10:04:37 -08:00
Vincent Torri
bd2b259760 Uninstall DLL and import lib 2018-11-21 09:07:26 +01:00
Vincent Torri
8e8b658bde Add explanation for the installation of the DLL in the bin directory 2018-11-21 08:40:51 +01:00
Vincent Torri
0314027051 Allow installation of lz4 for Windows (MSYS2 or when cross-compiling) 2018-11-20 21:08:23 +01:00
Vincent Torri
4602f141fa Merge remote-tracking branch 'upstream/master' into dev 2018-11-20 20:41:56 +01:00
Yann Collet
1e72459f76
Merge pull request #604 from vtorri/dev
Add DLLTOOL variable so that one can override dlltool binary
2018-11-19 14:31:37 -08:00