Age | Commit message (Collapse) | Author | Files | Lines |
|
and just revert to meson.project_version()
|
|
Signed-off-by: Peter Delevoryas <pdel@fb.com>
|
|
|
|
Enable extra warnings based no what QEMU uses.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
|
|
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
pingtest: Add a trivial ping test
See merge request slirp/libslirp!91
|
|
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
|
|
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
|
|
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>
|
|
This is a simple working example.
Fixes #30
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
|
|
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>
|
|
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
|
|
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.
|
|
|
|
meson: support compiling as subproject
See merge request slirp/libslirp!53
|
|
iOS does not support reading /etc/resolv.conf so we have to use libresolv
Also modified build script to support building on Darwin systems.
|
|
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>
|
|
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>
|
|
|
|
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
|
|
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>
|
|
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>
|
|
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
|
|
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
|
|
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>
|
|
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>
|
|
Let's follow gitlab project name.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
|
|
Add SLIRP_CHECK_VERSION() macro, and slirp_version_string() helpers.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
|
|
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>
|