diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2014-02-12 22:37:25 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2014-02-12 22:37:25 +0200 |
commit | 51827d4484845432588f850b24245d22b1d9c9f0 (patch) | |
tree | 3564b530787dd29902108363ddcf6753051bc619 /build.py | |
parent | d84d70fa9a490578ffa926be82edefeeed217cb7 (diff) | |
download | meson-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.py | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |