aboutsummaryrefslogtreecommitdiff
path: root/build.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2014-02-12 22:37:25 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2014-02-12 22:37:25 +0200
commit51827d4484845432588f850b24245d22b1d9c9f0 (patch)
tree3564b530787dd29902108363ddcf6753051bc619 /build.py
parentd84d70fa9a490578ffa926be82edefeeed217cb7 (diff)
downloadmeson-51827d4484845432588f850b24245d22b1d9c9f0.zip
meson-51827d4484845432588f850b24245d22b1d9c9f0.tar.gz
meson-51827d4484845432588f850b24245d22b1d9c9f0.tar.bz2
Can override install directory on a target-by-target basis.
Diffstat (limited to 'build.py')
-rw-r--r--build.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/build.py b/build.py
index af0768e..3a2cd1e 100644
--- a/build.py
+++ b/build.py
@@ -194,6 +194,9 @@ class BuildTarget():
for i in self.link_targets:
result += i.get_rpaths()
return result
+
+ def get_custom_install_dir(self):
+ return self.custom_install_dir
def process_kwargs(self, kwargs):
self.copy_kwargs(kwargs)
@@ -236,6 +239,10 @@ class BuildTarget():
if not isinstance(deplist, list):
deplist = [deplist]
self.add_external_deps(deplist)
+ self.custom_install_dir = kwargs.get('install_dir', None)
+ if self.custom_install_dir is not None:
+ if not isinstance(self.custom_install_dir, str):
+ raise InvalidArguments('Custom_install_dir must be a string')
def get_subdir(self):
return self.subdir