Hans Johnson
1a279ae85a
BUG: list sub-command REMOVE_DUPLICATES requires list to be present
...
When compiling without c++ enabled, some variables are not present.
This is a check enforced in recent Cmake versions.
CMake Error at CMakeModules/AddZstdCompilationFlags.cmake:54 (list):
list sub-command REMOVE_DUPLICATES requires list to be present.
Call Stack (most recent call first):
CMakeLists.txt:53 (ADD_ZSTD_COMPILATION_FLAGS)
2018-12-26 13:26:59 -06:00
Hans Johnson
77ef7847f7
Improve setting the default build type
...
The CMAKE_BUILD_TYPE variable is a CACHE variable
and should be set in a way that persists and is
documented in the CACHE. Also set the default
values for the gui to ease selection of types.
These changes provide better support for GUI
configurators that support cmake.
2018-12-26 13:23:21 -06:00
Hans Johnson
304df8b883
ENH: Update to -DZSTD_LEGACY_SUPPORT=5
2018-12-26 13:18:39 -06:00
Yann Collet
1fdba696ca
fixed VS2008 project
...
bench.c => benchfn.c + benchzstd.c
wrong util.c from prior patch
and warnings :
C4127
2018-12-25 16:14:14 -08:00
Hans Johnson
443b5c40e4
DOC: Provide documentation for cmake best practices.
2018-12-24 07:06:31 -06:00
Hans Johnson
d3fc848ddd
STYLE: Remove CMake-language block-end command arguments
...
Ancient versions of CMake required else(), endif(), and similar block
termination commands to have arguments matching the command starting the block.
This is no longer the preferred style.
2018-12-22 19:32:39 -06:00
Hans Johnson
2f1ff84119
STYLE: Convert CMake-language commands to lower case
...
Ancient CMake versions required upper-case commands. Later command names
became case-insensitive. Now the preferred style is lower-case.
2018-12-22 19:32:39 -06:00
Yann Collet and GitHub
5bdbd997ae
Merge pull request #1452 from lzutao/meson_getversion
...
meson: Remove unused sys import
2018-12-14 16:50:41 -08:00
Lzu Tao
066cfc069b
meson: Remove unused sys import
2018-12-14 11:03:04 +07:00
Lzu Tao
3ee5504fb2
Simplify logic by setting default value for MESON_INSTALL_DESTDIR_PREFIX
2018-12-13 18:07:01 +07:00
Lzu Tao
ce22f76668
meson: Update man1 extension on meson 0.49.0
2018-12-13 14:58:17 +07:00
Lzu Tao
abfde03cb5
meson: Update meson symlink script usage
2018-12-13 14:58:17 +07:00
Lzu Tao
fa2fc274fd
meson: Correct support for building on Windows
...
Let soversion base on version if not set. For example, if version is 3.6.0
and soversion is not defined, it is set to 3.
2018-12-13 14:58:17 +07:00
Lzu Tao
67babb6d23
Replace many os.path methods with pathlib one's
...
Use MESON_INSTALL_DESTDIR_PREFIX variable instead of DESTDIR.
2018-12-13 14:58:17 +07:00
Lzu Tao
f897523655
meson: Update usage of InstallSymlink helper
2018-12-03 11:02:42 +07:00
Lzu Tao
9d6cf606f8
meson: Update tests timeout to run properly
2018-12-03 03:23:09 +07:00
Lzu Tao
65507666bb
Use -Dlegacy_level build option to control ZSTD_LEGACY_SUPPORT macro in test
2018-12-03 00:36:40 +07:00
Lzu Tao
437ec5f47f
meson helper: Use Python conventional name for naming function [skip ci]
2018-12-02 22:48:11 +07:00
Lzu Tao
838de08439
meson: Fix soversion
2018-12-02 22:45:46 +07:00
Lzu Tao
23d751507e
meson: Use -werror build option instead of adding -Werror [skip ci]
2018-12-02 22:33:43 +07:00
Lzu Tao
38728b4518
Use argparse instead of manually parsing [skip ci]
2018-12-02 22:33:43 +07:00
Lzu Tao
7da18bc85a
Add missed .1 extension for manpage [skip ci]
2018-12-02 00:18:00 +07:00
Lzu Tao
cbf2a924dd
meson: Cleanup installing symlinks
2018-12-01 23:18:59 +07:00
Lzu Tao
519b2de6f7
Update README
2018-12-01 23:18:59 +07:00
Lzu Tao
8d5252b68d
meson: Remove redundant join_paths function
2018-12-01 23:18:59 +07:00
Lzu Tao
24bc513ea1
meson: Change build options' name
2018-12-01 23:18:59 +07:00
Lzu Tao
39f49ac39f
Add almost all test cases in tests/Makefile
2018-12-01 23:18:59 +07:00
Lzu Tao
c55d65b35d
Add clang cflags
2018-12-01 23:18:59 +07:00
Lzu Tao
0a0683f5b2
Initial support for Windows build
2018-12-01 23:18:59 +07:00
Lzu Tao
2337429e8d
Change tabsize
2018-12-01 23:18:59 +07:00
Lzu Tao
c4fb45ffe8
Add comment about looking for dependencies
2018-12-01 23:18:59 +07:00
Lzu Tao
918e0d5c36
Rename some meson build options to match autoconf convention
2018-12-01 23:18:59 +07:00
Lzu Tao
9ac9cbc9de
Enable debugging flag
2018-12-01 23:18:59 +07:00
Lzu Tao
0669392937
Update relevant files after moving meson to build/
...
Update meson build instructions
2018-12-01 23:18:59 +07:00
Lzu Tao
beb13bd87e
Move contrib/meson to build/meson
2018-12-01 23:18:59 +07:00
Yann Collet
e4abd28769
fixed VS2010+ build script
2018-11-13 13:22:16 -08:00
Yann Collet
f15312e884
fixed cmake build script
2018-11-13 13:16:41 -08:00
Antoine Pitrou
2186fbcf67
Allow creating debug builds with CMake
...
Only set the build type to Release if the user didn't select any.
See discussion in https://github.com/facebook/zstd/pull/1278#issuecomment-436327923
and below.
2018-11-06 21:24:29 +01:00
Yann Collet
4ed9233db6
fixed VS2010 project
2018-10-26 11:25:40 -07:00
Yann Collet
2b4914082e
created zstd_decompress_block module
...
isolate all logic associated with block decompression
into its own module.
zstd_decompress is still in charge
of context creation/destruction,
frames, headers, streaming, special blocks, etc.
Compressed blocks themselves are now handled within zstd_decompress_block .
2018-10-25 16:28:41 -07:00
Yann Collet
2f7e1c8737
fixed VS2010 build script
2018-10-23 17:44:43 -07:00
Yann Collet
ccd2d426fc
separate DDict logic into its own module
...
created zstd_ddict.c within lib/decompress
2018-10-23 17:25:49 -07:00
Yann Collet and GitHub
f2cff22804
Merge pull request #1368 from rkjain89/test-branch
...
Moving Code To util.c
2018-10-19 16:31:10 -07:00
Rohit Jain
c430c1068b
Made the changes in zstd vcproj file for VS2008 as requested
2018-10-16 23:33:17 -07:00
Sam Russell
490f652974
Add man pages for zstdgrep and zstdless
2018-10-15 22:25:03 +13:00
Rohit Jain
9056fe2290
Adding util.c to zstd VS file
2018-10-12 14:22:05 -07:00
Rohit Jain
b91f982e1e
Adding chagnes for cmake and VStudio
2018-10-12 14:08:13 -07:00
Yann Collet
33d643124d
fixed fullbench-lib target
2018-10-04 18:12:36 -07:00
Yann Collet
9ac8f2d7b9
fixed VS2017Community build script
...
reported by @epicabsol
2018-10-03 18:42:44 -07:00
Yann Collet
b2939163e1
Changed default legacy support to v0.5+
...
thus dropping read support for v0.4.
It's always possible to re-enable it, by changing build macro ZSTD_LEGACY_SUPPORT to 4.
2018-09-20 14:30:20 -07:00