Commit Graph

78 Commits

Author SHA1 Message Date
Yann Collet
462c8e86de
Merge pull request #1294 from LocalSpook/wpedantic
Use `-Wpedantic` instead of `-pedantic` for consistency with other `-W*` options
2023-10-16 19:50:25 -07:00
LocalSpook
f99c4382c7 Use -Wpedantic instead of -pedantic 2023-10-12 20:49:02 -07:00
LocalSpook
e270f2edd9 Make Makefile version number parsing more robust 2023-10-11 18:58:47 -07:00
Eli Schwartz
7ab223b7fa
build: move meson files from contrib, to go alongside other build systems 2023-01-30 12:55:03 -05:00
Tristan Partin
ab8328bc8e
Clean up generation of internal static library
No sense in relinking if the default_library indicates that a static
library was already generated.
2023-01-10 12:55:46 -06:00
Tristan Partin
2fc9a85bf8
Install lz4file.h only when default_library isn't shared 2022-12-02 17:42:41 -06:00
Tristan Partin
3301f3110f
Only build the freestanding test on Linux x86_64 2022-12-02 17:42:41 -06:00
Tristan Partin
3946e3daed
Add Meson override for the library 2022-12-02 17:42:38 -06:00
Tristan Partin
198e532300
Update Meson build to 1.9.4
Specifically this adds support for the following options:

- LZ4_ALIGN_TEST
- LZ4_STATIC_LINKING_ONLY_DISABLE_MEMORY_ALLOCATION
- LZ4_DISTANCE_MAX
- LZ4_FAST_DEC_LOOP
- LZ4_FORCE_SW_BITCOUNT
- LZ4_FREESTANDING
- LZ4_USER_MEMORY_FUNCTIONS
- compiling ossfuzz targets
- compiling more test targets
- registering some tests
2022-10-19 23:27:05 -05:00
Edward Hope-Morley
1ae9a50d4d Update snapcraft.yaml to reflect build of v1.9.4 2022-09-21 19:47:11 +01:00
Dominique Pelle
3347485307 fix: various typos 2022-07-31 17:47:00 +02:00
Alexander Mohr
0ac3c74de1
review: fix findings
* replace assert with test for LZ4F_uncompressedUpdate
* update documentation to incldue correct docstring
* remove unecessary entry point
* remove compress_linked_block_mode from fuzzing test

Signed-off-by: Alexander Mohr <alexander.m.mohr@mercedes-benz.com>
2022-07-05 21:14:34 +02:00
Alexander Mohr
af447b22c8 meson: fix meson build
add static dependency to examples
2022-06-12 00:41:55 +02:00
Dan Yeaw
8507c93f2e
Fix default_library undeclared error in Windows 2022-04-15 13:45:25 -04:00
Dan Yeaw
787b0da6cc
Fix incorrect meson build option for programs 2022-04-12 20:33:32 -04:00
Tristan Partin
6c1a39e701
Fixup meson build
The meson build had gotten a little out of hand. It needed to be cleaned
up and have its errors fixed. This should enable lz4 to switch to Meson
at any time should the need ever arise.
2022-02-09 12:04:53 -06:00
Eli Schwartz
e7e5dd883a
meson: simplify version lookup and avoid deprecation warnings
run_command() in development versions of meson will warn when the
`check: ` kwarg is not specified. At the same time, lz4 has some gnarly
code to manually check the return code and raise an error if it failed.

Kill two birds with one stone, by making run_command inherently raise a
fatal error when erroring out, then proceeding in the knowledge that it
must have succeeded.
2021-12-14 18:21:09 -05:00
Edward Hope-Morley
c667bbcaf9 Update snapcraft.yaml to reflect latest build 2021-01-07 21:39:00 +00:00
Yann Collet
19564bce78 fix CFLAGS unexport issue 2020-11-30 17:42:36 -08:00
Yann Collet
0760724577 update doc 2020-11-15 01:31:09 -08:00
Yann Collet
34fe7c9d7f
Merge pull request #886 from servusDei2018/dev
Optimized by replacing `endl` with `'\n'`
2020-08-21 14:17:43 -07:00
Nick Terrell
31d477db07 [build] Move CMake and Visual build systems to build/
Fixes #852.
2020-08-19 18:08:43 -07:00
Nate
e416cc9baa
Optimized by replacing endl with '\n' 2020-07-23 20:13:14 -04:00
Rosen Penev
4ebc792cab
meson: remove build requirement for distutils
Tested on a default installation of Debian 10.

Same as https://github.com/facebook/zstd/pull/2197

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-07-21 15:27:22 -07:00
Julius Michaelis
b6623e710d meson: move one layer deeper to allow easy construction of a wrap file 2019-09-26 17:29:04 +09:00
Yann Collet
ee23c273e2
Merge pull request #758 from dooxe/develop
Added `BUNDLE	DESTINATION`
2019-07-19 09:11:12 -07:00
dooxe
99d925f997 Added BUNDLE DESTINATION in CMakeLists.txt so that it works with newer versions of cmake 2019-07-18 11:25:43 +02:00
Lzu Tao
ff27a1572b meson: Always build gen_manual on build machine
As gen_manual is using as a generator, not a binary target
installed on host machine.
2019-06-29 10:11:32 +07:00
Lzu Tao
4c60f25c65 meson: Fix deprecated warnings on build options
Meson now reserves `build_` prefix options.
2019-06-29 10:10:05 +07:00
Lzu Tao
cb1be75c84 meson: Rely only on extracted version in lz4.h
So now instead of warning when failing to extract version number
from lz4.h, we error and stop the build instead.
2019-04-30 12:25:40 +07:00
Lzu Tao
dd54ea01a2 contrib: Make Meson build non optional
* Update ninja version to 1.9 in CI.
* Update default project version in meson script.
2019-04-27 01:41:03 +07:00
Lzu Tao
929dbbcddf meson: Add -DLZ4_DLL_EXPORT=1 to build dynamic lib on Windows
Thanks @nacho for pointing it out.
2019-01-23 15:40:26 +07:00
Lzu Tao
d2288d2cc0 meson: Favor warning if cannot find version string 2019-01-11 02:34:16 +07:00
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
6e24ef902a
Merge pull request #620 from lzutao/meson_symlink
Update meson symlink and man1 extension
2018-12-17 09:32:01 -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
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
Lzu Tao
58d8055da6 meson: Add README.md for newcomers [skip ci] 2018-12-09 18:57:49 +07: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
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