Commit Graph

13 Commits

Author SHA1 Message Date
Micah Snyder
b715457c1e CMake Improvements: Fix ENABLE_STATIC_LIB option, and renames static library with _static suffix to differentiate between shared library .lib file on Windows. 2020-02-19 22:05:10 -05:00
Micah Snyder
095262feae CMake improvements: Replaces add_definitions with target_compile_definitions for bzip2, bzip2recover targets. 2019-10-27 13:33:17 -04:00
Micah Snyder
bae2dfa931 Changes CMake duplicate install targets (bunzip, etc) to symlinks instead of file copies. 2019-09-14 22:58:37 -04:00
Micah Snyder
1de04548d0 Improves CMake formatting, removing unnecessary quotes and fixing indentation. 2019-09-14 21:19:35 -04:00
Micah Snyder
b52681fab6 Moves BZ_UNIX, BZ_LCCWIN32 defines out of bzip2.c and bzip2recover.c and into the build tooling (cmake, meson, and nmake). 2019-09-14 18:51:17 -04:00
Micah Snyder
af3ab6c58f CMake build tooling improvement: Adds install for bunzip, bzcat copies of bzip2, as well as shell-scripts bzdiff, bzgrep, bzmore, and their alternately named copies (not available for Windows). 2019-09-14 18:51:17 -04:00
Chih-Hsuan Yen
4a8a9fd228
Port WARNCFLAGS of CMakeLists.txt to meson.build
And let CMake determine which compiler warning flags are available as
suggested in [1].

[1] https://gitlab.com/federicomenaquintero/bzip2/merge_requests/19#note_206149857
2019-09-05 09:50:06 +08:00
Rolf Eike Beer
91a3b6d614 CMake: remove needless checks 2019-06-27 08:52:45 +02:00
Rolf Eike Beer
1e6d325fee CMake: remove C++ option checking
There is no C++ code.
2019-06-27 08:39:02 +02:00
Federico Mena Quintero
4c6ef278dc (#2): Generate a header file with the version number
Fixes https://gitlab.com/federicomenaquintero/bzip2/issues/2
2019-06-25 18:28:19 -05:00
Federico Mena Quintero
9eac831b5e Bump library revision 2019-06-21 17:55:07 -05:00
Federico Mena Quintero
277548b072 Sync versioning schemes between Meson and CMake
Use a computed soversion of 1.

This keeps compatibility with the version in the SONAME from openSUSE
and Fedora, which fixed the botched soname in bzip2's historical
tarballs.

See this post for details:
https://people.gnome.org/~federico/blog/preparing-the-bzip2-107-release.html
2019-06-21 17:55:07 -05:00
Micah Snyder
e264a7f7c4 Add CMake build system. 2019-06-09 19:13:08 -04:00