1
0
mirror of https://gitlab.com/bzip2/bzip2.git synced 2025-09-17 18:42:13 +03:00
Commit Graph

16 Commits

Author SHA1 Message Date
Micah Snyder
7b44372099 Project version 1.1.0, libtool version 1:9:0
Increase the project version to 1.1.0 as this is a new feature version.

As for all new feature versions, increase the libtool .so version.
Only increase the revision, as no API's were added or removed.
It may look like I've increased it by 2, but that's because v1.0.8 used
Makefiles and was at 1:8:0.

See http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
2022-01-30 11:50:37 -08:00
Micah Snyder
b850a926ba Meson Improvements: Replaces use of add_project_arguments with executable()'s c_args option, providing a list of args that vary depending on the host OS. Also bumps minimum meson version from 0.48 to 0.50, to alleviate warnings about using features introduced in 0.50. 2019-10-27 19:07: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
Federico Mena Quintero
b7a6722911 Merge branch 'meson-warncflags' into 'master'
Port WARNCFLAGS of CMakeLists.txt to meson.build

See merge request federicomenaquintero/bzip2!34
2019-09-10 17:31:00 +00: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
Dylan Baker
ab22254684 Meson: install symlinks or copies of binaries
On most system symlinks are fine, but on windows symlinks are tricky at
best, or unsupported for older versions of windows. To avoid those
problems we'll just copy the binary if the host or build machine is
windows. This uses a small helper python script to make this all
easier to use and understand.
2019-07-01 14:53:21 -07: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
Dylan Baker
5cd6c8f2b2 meson: Fix build on macos
There is a bug in meson's Compiler.has_function_attribute('visibility'),
which results in it incorrectly returning False on macos. This causes
meson to not defined BZ_EXTERN, but the gnu_symbol_visibility results in
hidden by default symbols. This means that there are no visible symbols
in libbz2 at all and linking naturally fails.

Fixes #18
2019-06-21 09:16:04 -07:00
Dylan Baker
6b3d675f78 meson: Support dlls with msvc
I've filed https://github.com/mesonbuild/meson/issues/5462 about the
fact that vs_module_defs cannot accept an empty list (the usual way in
meson to say "nothing" (like NULL, None, etc).

This allows msvc to compile a bz2-1.dll that at least passes the tests
provided.

The .def file doesn't work for mingw due to (I think) differences in the
way msvc and mingw define .def files. I *think*, but I'm not positive,
it has to do with stdcall vs cdecl, but I'm just throwing stuff at the
wall till it sticks.
2019-06-07 12:35:05 -07:00
Dylan Baker
bd548eebae meson: fix name of library 2019-06-07 12:35:05 -07:00
Dylan Baker
0a464db0fd move documentation into a docs/ folder 2019-06-06 14:18:47 -07:00
Dylan Baker
b4d062ec93 Move man files into a man/ directory 2019-06-06 14:18:47 -07:00
Dylan Baker
f6f3326c69 Move tests into a tests/ directory
I've updated autotools, meson, and the makefile.msc, though I haven't
verified tat the nmake file works.
2019-06-06 14:18:47 -07:00
Dylan Baker
736902410a add meson build system 2019-06-06 11:10:32 -07:00