meson: add subproject fallback for zstd
authorEli Schwartz <eschwartz93@gmail.com>
Wed, 5 Jan 2022 04:45:20 +0000 (23:45 -0500)
committerEli Schwartz <eschwartz93@gmail.com>
Wed, 5 Jan 2022 05:01:42 +0000 (00:01 -0500)
commit51e2f8b26926e159fa970bc8e77dc75b0954669f
tree79104e288ec4893275b61db209252ece1a7777d9
parent129867d743e78dc410d24e503ddfeb2b432db5aa
meson: add subproject fallback for zstd

installed via the command:

```
meson wrap install zstd
```

This file does nothing, unless a dependency cannot be found; in that
case, instead of failing, meson will download a private copy of the
dependency and build + link to that instead.

(This is especially common on Windows, where managing dependencies
without a package manager can be difficult.)

Alternatively, users interested in specifically building a statically
linked / portable executable can configure meson with
`--wrap-mode=forcefallback` to prefer the private copy.
meson.build
subprojects/zstd.wrap [new file with mode: 0644]