aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/rewriter.py
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2020-10-31 14:17:24 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2021-01-12 15:51:28 +0000
commitc659be692896f9f36fa46c4955220dc57653f09b (patch)
treee80d0a29af48ec1046c2e8c499739876c67546c4 /mesonbuild/rewriter.py
parent4ff020759a3cdedb9d8ff1150ec09313096f6228 (diff)
downloadmeson-c659be692896f9f36fa46c4955220dc57653f09b.zip
meson-c659be692896f9f36fa46c4955220dc57653f09b.tar.gz
meson-c659be692896f9f36fa46c4955220dc57653f09b.tar.bz2
Interpreter: Fix nested subsubproject detection
A sub-subproject can be configured directly from `subprojects/foo/subprojects/bar/` in the case `bar` is in the same git repository as `foo` and not downloaded separately into the main project's `subprojects/`. In that case the nested subproject violation code was wrong because it is allowed to have more than one "subprojects" in path (was not possible before Meson 0.56.0). Example: - self.environment.source_dir = '/home/user/myproject' - self.root_subdir = 'subprojects/foo/subprojects/bar' - project_root = '/home/user/myproject/subprojects/foo/subprojects/bar' - norm = '/home/user/myproject/subprojects/foo/subprojects/bar/file.c' We want `norm` path to have `project_root` in its parents and not have `project_root / 'subprojects'` in its parents. In that case we are sure `file.c` is within `bar` subproject.
Diffstat (limited to 'mesonbuild/rewriter.py')
0 files changed, 0 insertions, 0 deletions