build-sys: add slirp.wrap

This allows to build with --enable-slirp / -D slirp=enabled, even when
libslirp is not installed on the system.  "meson subprojects download"
will pull it from git in that case.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20230302131848.1527460-4-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Marc-André Lureau 2023-03-02 17:18:47 +04:00 committed by Paolo Bonzini
parent 5a347a7352
commit 0abe33c13a
2 changed files with 8 additions and 0 deletions

2
.gitignore vendored
View File

@ -20,3 +20,5 @@ GTAGS
*.swp
*.patch
*.gcov
/subprojects/slirp

6
subprojects/slirp.wrap Normal file
View File

@ -0,0 +1,6 @@
[wrap-git]
url = https://gitlab.freedesktop.org/slirp/libslirp
revision = 15c52d697529eb3e78c5d8aa324d61715bce33b6
[provide]
slirp = libslirp_dep