aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/backends.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2019-03-17 20:39:44 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2019-03-18 22:01:06 +0200
commit4b95dd3a6d1a08e22a144f3336f44e0d2c92bd75 (patch)
tree908252d703473169c2121e8cb2332a940c836f74 /mesonbuild/backend/backends.py
parent7a02b76e70e219e5201e322c6c6c232d06601920 (diff)
downloadmeson-4b95dd3a6d1a08e22a144f3336f44e0d2c92bd75.zip
meson-4b95dd3a6d1a08e22a144f3336f44e0d2c92bd75.tar.gz
meson-4b95dd3a6d1a08e22a144f3336f44e0d2c92bd75.tar.bz2
Add test script to generate a static library with a custom target.
Diffstat (limited to 'mesonbuild/backend/backends.py')
-rw-r--r--mesonbuild/backend/backends.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py
index 4d35d22..be181a8 100644
--- a/mesonbuild/backend/backends.py
+++ b/mesonbuild/backend/backends.py
@@ -964,6 +964,12 @@ class Backend:
raise MesonException(msg)
dfilename = os.path.join(outdir, target.depfile)
i = i.replace('@DEPFILE@', dfilename)
+ elif '@PRIVATE_DIR@' in i:
+ if target.absolute_paths:
+ pdir = self.get_target_private_dir_abs(target)
+ else:
+ pdir = self.get_target_private_dir(target)
+ i = i.replace('@PRIVATE_DIR@', pdir)
elif '@PRIVATE_OUTDIR_' in i:
match = re.search(r'@PRIVATE_OUTDIR_(ABS_)?([^/\s*]*)@', i)
if not match: