aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/wrap
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu@centricular.com>2018-03-24 23:44:50 +0100
committerMathieu Duponchelle <mathieu@centricular.com>2018-04-06 23:48:48 +0200
commit31f0242a6fad3f15dc42f81927b5627c73516958 (patch)
treeed05c9eb260a825fa3c8659a9d2789568c28d154 /mesonbuild/wrap
parentaef1a81b3586aeb48988b60fbeaef5c19e112c45 (diff)
downloadmeson-31f0242a6fad3f15dc42f81927b5627c73516958.zip
meson-31f0242a6fad3f15dc42f81927b5627c73516958.tar.gz
meson-31f0242a6fad3f15dc42f81927b5627c73516958.tar.bz2
new wrap-mode: forcefallback
This can be useful to make sure that a project builds when its fallbacks are used on systems where external dependencies satisfy the version requirements, or to easily hack on the sources of a dependency for which a fallback exists.
Diffstat (limited to 'mesonbuild/wrap')
-rw-r--r--mesonbuild/wrap/__init__.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/mesonbuild/wrap/__init__.py b/mesonbuild/wrap/__init__.py
index 019634c..6e2bc83 100644
--- a/mesonbuild/wrap/__init__.py
+++ b/mesonbuild/wrap/__init__.py
@@ -25,7 +25,12 @@ from enum import Enum
# to use 'nofallback' so that any 'copylib' wraps will be
# download as subprojects.
#
+# --wrap-mode=forcefallback will ignore external dependencies,
+# even if they match the version requirements, and automatically
+# use the fallback if one was provided. This is useful for example
+# to make sure a project builds when using the fallbacks.
+#
# Note that these options do not affect subprojects that
# are git submodules since those are only usable in git
# repositories, and you almost always want to download them.
-WrapMode = Enum('WrapMode', 'default nofallback nodownload')
+WrapMode = Enum('WrapMode', 'default nofallback nodownload forcefallback')