From 27489290390e3a936a2b2d2007d99b02473199f2 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@musicpd.org>
Date: Sun, 31 Oct 2021 17:07:01 +0100
Subject: [PATCH] doc/user.rst: add -Dwrap_mode=forcefallback to
 Android/Windows examples

---
 doc/user.rst | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/doc/user.rst b/doc/user.rst
index e795e4553..bf9e7f9b7 100644
--- a/doc/user.rst
+++ b/doc/user.rst
@@ -172,7 +172,8 @@ tarball and change into the directory.  Then, instead of
 
  mkdir -p output/win64
  cd output/win64
- ../../win32/build.py --64
+ ../../win32/build.py --64 \
+   -Dwrap_mode=forcefallback
 
 This downloads various library sources, and then configures and builds
 :program:`MPD` (for x64; to build a 32 bit binary, pass
@@ -182,6 +183,11 @@ around. It is large, but easy to use. If you wish to have a small
 mpd.exe with DLLs, you need to compile manually, without the
 :file:`build.py` script.
 
+The option ``-Dwrap_mode=forcefallback`` tells Meson to download and
+cross-compile several libraries used by MPD instead of looking for
+them on your computer.
+
+
 Compiling for Android
 ---------------------
 
@@ -206,6 +212,7 @@ tarball and change into the directory.  Then, instead of
  mkdir -p output/android
  cd output/android
  ../../android/build.py SDK_PATH NDK_PATH ABI \
+   -Dwrap_mode=forcefallback \
    -Dandroid_debug_keystore=$HOME/.android/debug.keystore
  ninja android/apk/mpd-debug.apk