aboutsummaryrefslogtreecommitdiff
path: root/meson.build
AgeCommit message (Collapse)AuthorFilesLines
2022-05-28Avoid running git-version-gen when building with MS VCSamuel Thibault1-9/+14
The toolchain usually used there would typically completely fail to run it.
2022-05-28windows: export symbolsSamuel Thibault1-0/+1
2022-05-28Accept build-aux/git-version-gen failing to runSamuel Thibault1-4/+6
and just revert to meson.project_version()
2022-05-18ncsi: Add basic test for Get Version ID responsePeter Delevoryas1-0/+8
Signed-off-by: Peter Delevoryas <pdel@fb.com>
2022-05-08Add support for Haiku to meson.buildIvan Holmes1-0/+4
2022-05-04meson: add extra warningsPaolo Bonzini1-0/+3
Enable extra warnings based no what QEMU uses. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-04-26Release v4.7.0v4.7.0Marc-André Lureau1-1/+1
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2022-04-11bump ABI version and agePaolo Bonzini1-3/+3
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2021-11-11Merge branch 'pingtest' into 'master'Samuel Thibault1-0/+8
pingtest: Add a trivial ping test See merge request slirp/libslirp!91
2021-06-18Release v4.6.1v4.6.1Marc-André Lureau1-2/+2
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2021-06-14build-sys: forgot to bump version to 4.6.0v4.6.0Marc-André Lureau1-1/+1
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2021-06-08Revert "Set macOS deployment target to macOS 10.4"Marc-André Lureau1-5/+0
This reverts commit 410e296a52fb274648f8ecf53561eaab4b33c52c (slirp/libslirp!72), as it causes extra compilation warnings when linking with libraries using a different version. Instead, the builder can set CFLAGS manually. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2021-06-07pingtest: Add a trivial ping testSamuel Thibault1-0/+8
This is a simple working example. Fixes #30 Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
2021-06-06mbuf: Add debugging helpers for allocationSamuel Thibault1-0/+4
This adds a few helpers for debugging mbuf allocations when running in debugging mode (lsan, valgrind, etc.) - We do not want to cache allocations, so always set M_DOFREE to prevent us from putting any mbuf in it. - We want to update the mbuf allocation owner on function call for more precise leak reporting. Based on Jeremy Marchand's fuzzing work. Signed-off-by: jeremy marchand <jeremy.marchand@etu.u-bordeaux.fr> Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
2021-05-18Release v4.5.0v4.5.0Marc-André Lureau1-4/+4
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2021-02-24Set macOS deployment target to macOS 10.4WaluigiWare641-0/+5
Without a macOS deployment target, the resulting library does not work on macOS versions lower than it was currently built on. For example, if libslirp was built on macOS 10.15, it would not work on macOS 10.14.
2020-12-02Release v4.4.0v4.4.0Marc-André Lureau1-2/+2
2020-11-27Merge branch 'master' into 'master'Marc-André Lureau1-25/+41
meson: support compiling as subproject See merge request slirp/libslirp!53
2020-10-12Add DNS resolving for iOSosy1-1/+9
iOS does not support reading /etc/resolv.conf so we have to use libresolv Also modified build script to support building on Darwin systems.
2020-09-14meson: support compiling as subprojectPaolo Bonzini1-23/+31
Skip installation of devel files if compiling as a subproject, including the library if a static version is available; the parent project can force usage of the (installed) shared library using default_library=shared. An option can also be used to customize the SLIRP_VERSION_STRING and ascertain if the parent project is using the embedded version of slirp. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-09-14meson: remove meson-dist scriptPaolo Bonzini1-4/+12
Unfortunately meson subprojects do not support add_dist_script, so we cannot generate the .tarball-version file at "meson dist" time. Include the version in the meson project declaration, and use build-aux/git-version-gen only to determine SLIRP_VERSION_STRING. Instead of the dist script, we check that the version in the project declaration matches the latest tag. If they do not match it will be impossible to run "ninja dist" successfully. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-07-08Release v4.3.1Marc-André Lureau1-1/+1
2020-04-22Release v4.3.0Marc-André Lureau1-1/+1
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2020-03-18meson: bump required version to 0.49Marc-André Lureau1-1/+2
We didn't specify any version so far, but the git generated version requires 0.49: WARNING: Project specifies a minimum meson_version '>= 0.48' but uses features which were added in newer versions: * 0.49.0: {'Calling "add_dist_script" with multiple arguments'} Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2020-03-17Teach slirp_version_string() to return vcs versionMarc-André Lureau1-1/+4
Meson build will use a vcs-generate version, while Makefile will always use -git version, since it is only intended for submodule usage. Eventually can be improved if needed. Fixes: https://gitlab.freedesktop.org/slirp/libslirp/issues/17 Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2020-03-17Prepare for v4.2.0 releaseMarc-André Lureau1-3/+3
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2019-12-03Release v4.1.0Marc-André Lureau1-3/+3
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2019-12-03meson: fix libtool versioningMarc-André Lureau1-5/+4
libtool versions must be translated to maj.min.rev, where maj = current - age. Also fix lt_current usage, quoting Samuel Thibault: soversion is not the same as lt_current. soversion must be lt_current - lt_age, so that the soname stays the same when binary compatibility is preserved (here, 0), and gets bumped on compatibility break. Yes, on compatibility break the bump will be big. That's because non-soname OSes the compatibility support is different. The details are hairy, yes :) Instead, rely on meson doing the right thing with soversion by default. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2019-10-06meson: make it subproject friendlyMarc-André Lureau1-1/+5
Using library() allows to build either static or shared library. Declare a dependency, so parent projects can link with it easily: slirp_proj = subproject('slirp') slirp = slirp_proj.get_variable('libslirp_dep') Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2019-05-22build-sys: rename project to libslirpv4.0.0Marc-André Lureau1-1/+1
Let's follow gitlab project name. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2019-03-26build-sys: add version toolingMarc-André Lureau1-0/+8
Add SLIRP_CHECK_VERSION() macro, and slirp_version_string() helpers. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2019-03-26build-sys: add a meson buildMarc-André Lureau1-0/+119
Build a shared library, exporting only slirp_* symbols. Install API headers and a slirp.pc pkg-config. It has been tested to build on Linux and with mingw64 cross-compilation. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>