summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
...
* remove warnings in mdfour.c, checksum.h, trace.hAndrew Sun2019-09-111-2/+7
|
* Add checksum_test.c test and move RS_*_SUM_LENGTH consts to checksum.c.Donovan Baarda2019-09-111-1/+7
| | | | | The checksum_test.c showed it makes more sense to put the checksum length constants into checksum.c where they are most useful.
* Include tests/*.[ch] for code tidy targets and 'make tidyc'.Donovan Baarda2019-09-041-1/+1
|
* Add a RabinKarp rollsum and tests.Donovan Baarda2019-09-041-1/+5
|
* fix build on MinGW-w64 and MSVCAndrew Sun2019-08-221-2/+11
|
* Update version to 2.1.1 and add NEWS.md entry.Donovan Baarda2019-08-191-1/+1
|
* Bump version to 2.1.0 and update NEWS.md.Donovan Baarda2019-08-171-2/+2
|
* Use a manual librsync_export.h instead of cmake's GenerateExportHeader.Donovan Baarda2019-08-171-3/+4
| | | | | | | | | Unfortunately GenerateExportHeader is broken for C in older versions of cmake that are still widely deployed, including on travis' osx build environment. Add manual librsync_export.h that should work for posix and win32 platforms, and remove .gitignore entry for it. Comment out GenerateExportHeader stuff from CMakeLists.txt.
* Fix #130 don't export private symbols.Donovan Baarda2019-08-161-8/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In CMakeLists.txt use cmake's GenerateExportHeader support to generate src/librsync_export.h and add it as a header to install. Set "C_VISIBILITY_PRESET hidden" target property for rsync to hide all not-explicitly-exported symbols. Do some minor indent tidying. Add librsync_export.h to .gitignore and remove obsolete librsync-config.h. In librsync.h include librsync_export.h and explicitly export all functions. Ensure it is correctly formated using "make tidyc". In rdiff.c remove all includes and references to anything not explicitly exported by librsync. This included usage of not exported logging functions rs_error() and rs_log(). Update rdiff_usage() to support formatted args with nicer output and use it everywhere we report bad arguments instead of rs_error(). Always use exit() instead of return for syntax errors to give neater termination output. Remove PROGRAM define and just use "rdiff" instead. In fileutil.[hc] move declarations for rs_file_open() and rs_file_close() to librsync.h and explicitly export them. They are used by rdiff. In sumset.h move declaration of rs_signature_log_stats() to librsync.h, and explicitly export it. It is used by rdiff. In delta.c explicitly export rs_roll_paranoia and add it as an extern in librsync.h. This is used by rdiff. In sumset.c explicitly export RS_MD4_SUM_LENGTH and RS_BLAKE2_SUM_LENGTH which are extern consts in librsync.h. In whole.c explicitly export rs_inbuflen and rs_outbuflen which are extern vars in librsync.h. In version.c explicitly export rs_librsync_version which is an extern const in librsync.h.
* Update version to 2.0.3 and add NEWS.md entry.Donovan Baarda2018-02-271-1/+1
|
* Merge pull request #143 from deajan/rpmspecDonovan Baarda2018-02-271-0/+7
|\ | | | | Fix #47 Updated RPM spec file for 2.0.2
| * Added man install fix (dbaarda)deajan2018-02-271-0/+7
| |
* | Check in static generated prototab.[ch] source files.Donovan Baarda2018-02-261-12/+1
|/ | | | | | Remove CMakeLists.txt prototab.[ch] generation and perl discovery. Update .gitignore to not ignore prototab.[ch]
* Remove indent -fca argument from 'make tidy' target.Donovan Baarda2018-02-251-3/+3
| | | | | | | Unfortunately indent's comment reformating with -fca is not repeatable, giving different results with repeated runs over the same input. So don't use. If you really want to reformat comments use the 'make tidyc' target instead.
* Change tidy and tidyc targets to have -l80 -ppi2.Donovan Baarda2018-02-231-4/+4
|
* Make tidy target not indent librsync.h's 'extern "C" {...}' block.Donovan Baarda2018-02-201-0/+4
| | | | | It does this by hiding/restoring the enclosing brackets before/after calling indent.
* For tidy add -sob and make sed remove trailing whitespace.Donovan Baarda2018-02-191-4/+5
|
* Improve code/comment tidy cmake targets.Donovan Baarda2018-02-191-21/+24
| | | | | | | | | | Change tidy target to add the following indent arguments; -l120 -lc80 -fca -T rs_result. Remove excluding blake2 targets now they are in their own subdir. Merge sed post-processing into a single sed command. Add tidyc target to reformat code and comments using tidyc. Move LIBB2 stuff together.
* Merge branch 'master' into tidy/misc1Donovan Baarda2018-02-061-11/+17
|\
| * Update build version to 2.0.2.Donovan Baarda2018-02-041-1/+1
| |
| * Avoid check_c_source_runs() when cross compilingFredrik Fornwall2017-12-231-3/+8
| | | | | | | | | | When cross compiling we cannot check for printf "%zu" size_t formating support - instead assume it.
| * Use the GNUInstallDirs CMake module to get the install paths.Andrey Rakhmatullin2017-10-301-6/+7
| |
| * CMakeLists.txt: Don't require a C++ compilerBernd Kuhls2017-09-261-1/+1
| | | | | | | | | | | | | | By default, CMake assumes that the project is using both C and C++. By explicitly passing 'C' as argument of the project() macro, we tell CMake that only C is used, which prevents CMake from erroring out if a C++ compiler doesn't exist.
* | Merge branch 'master' into tidy/misc1Donovan Baarda2017-09-141-32/+60
|\ \ | |/
| * Make USE_LIBB2 default to OFF.Donovan Baarda2017-09-081-2/+3
| | | | | | | | | | Currently the provided reference implementation seems to be significantly faster.
| * Add cmake_dependent_option USE_LIBB2 for turning off using libb2.Donovan Baarda2017-09-081-11/+16
| |
| * Add support for using libb2 blake2 library if available.Donovan Baarda2017-09-081-3/+23
| | | | | | | | | | | | | | | | | | | | Add cmake/Findlibb2.cmake cmake module for finding libb2. Update CMakeLists.txt to look for libb2 and use it if found, falling back to the included reference implementation if it can't be found. Move blake2 sources into src/blake2/ so we can avoid finding the included blake2.h header when using libb2 instead.
| * Use cmake's TestBigEndian() check to set WORDS_BIGENDIAN.Donovan Baarda2017-09-041-0/+8
| |
| * Add support for using _fileno().Donovan Baarda2017-08-191-0/+2
| |
| * Move rs_get_filesize() from util.[ch] to fileutil.[ch].Donovan Baarda2017-08-181-1/+2
| | | | | | | | | | | | | | Add/fix support for _fseeki64(), fstat64(), and _fstati64(). Make use of fseeko64(), fopen64(), and fstat64() depend on SIZEOF_OFF_T < 8, since they can exist on systems where fseeko(), fopen(), and fstat() already support large files.
| * Fixes for building as a subdirectory using MSVC compilerlasalvavida2017-07-051-1/+1
| |
| * Add a comment to CMakeLists.txt explaining HAVE_PRINTF_Z check.Donovan Baarda2017-06-011-0/+1
| |
| * Add cmake checking for printf "%zu" support for defining FMT_SIZE.Donovan Baarda2017-06-011-0/+3
| |
| * Remove librsync-config.h.cmake and use C99 stdint.h types instead.Donovan Baarda2017-05-301-26/+0
| | | | | | | | | | | | | | | | Remove librsync-config.h.cmake and all the relevant entries for it in CMakeLists.txt. Remove RS_LONG_T stuff from CMakeLists.txt, and in librsync.h use C99 stdint.h types uint8_t for rs_byte_t and intmax_t for rs_long_t.
| * Merge branch 'master' into dev/hashtable1Donovan Baarda2016-10-241-1/+7
| |\
| | * Add CMake -D ENABLE_TRACE=on optionMartin Pool2016-10-231-1/+7
| | |
| * | Fix sumset_test.c for the new hashtable.Donovan Baarda2016-09-111-1/+1
| | | | | | | | | | | | | | | Fix tests that referred to old hashtable attributes. Add tests for rs_build_hash_table() and rs_signature_find_match().
| * | Merge branch 'tidy/signature1' into dev/hashtable1Donovan Baarda2016-09-111-4/+8
| |\ \ | | |/
| | * Add sumset_test.c tests for rs_signature_t methods.Donovan Baarda2016-09-111-4/+8
| | |
| * | Change rs_signature_t to use hashtable.[ch].Donovan Baarda2016-09-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | In sumset.[hc] remove now unused structures for the old hashtable and add supporting code/methods for the new hashtable. Change delta.c to use the new rs_signature_find_match() method. Remove now redundant search.[hc].
| * | Merge branch 'tidy/signature1' into dev/hashtable1Donovan Baarda2016-09-031-0/+2
| |\ \ | | |/
| * | Add generic hashtable implementation and tests.Donovan Baarda2016-08-181-1/+5
| | | | | | | | | | | | | | | Nothing uses this yet, but it should be a neater solution for the signature matching than the current implementation.
* | | Add make tidy target to reformat code using indent.Donovan Baarda2016-09-011-3/+24
| |/ |/| | | | | | | | | | | Formats using the linux style with indent 4 instead of tabs. This also does some tiny post-processing using sed to avoid having to specify all userdefined types in -T arguments.
* | Merge pull request #83 from gulikoza/reallocMartin Pool2016-08-201-0/+2
|\ \ | |/ |/| Don't call realloc for every block when reading the signature file.
| * Don't call realloc for every block when reading the signature file.gulikoza2016-07-311-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test results: rdiff -I 524288 -O 131072 -s delta big_file.sig big_file big_file.delta librsync: loadsig statistics: signature[2099323 blocks, 8192 bytes per block] speed[40.0 MB (0.3 MB/s) in, 0.0 MB (0.0 MB/s) out, 150 sec] After: rdiff -I 524288 -O 131072 -s delta big_file.sig big_file big_file.delta librsync: loadsig statistics: signature[2099323 blocks, 8192 bytes per block] speed[40.0 MB (40.0 MB/s) in, 0.0 MB (0.0 MB/s) out, 1 sec]
* | Add rollsum_test as a dependency of check.Donovan Baarda2016-08-161-1/+1
| | | | | | | | This ensures the rollsum_test is compiled when doing "make check".
* | Add basic tests for rollsum.c.Donovan Baarda2016-08-161-0/+4
|/
* Check that off64_t exists before declaring it as RS_LONG_T.gulikoza2016-05-031-1/+1
|
* Change BUILD_RDIFF option to cmake_dependent_option. This fixes library ↵gulikoza2016-03-281-5/+6
| | | | build when POPT is not found (skip building rdiff).
* Add support for fseeko64 and off64_t (mingw).gulikoza2016-03-281-1/+6
|