aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/build.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-07-15 05:33:03 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2017-07-21 19:40:54 +0300
commit2269b7f60b2443aa697a5616fcc3692fa3496046 (patch)
tree085e2a1b2dd75a46f0d5d837d8d039f93656ed83 /mesonbuild/build.py
parent381e8313ed191ae8e440a9ba3805d5322c769ea7 (diff)
downloadmeson-2269b7f60b2443aa697a5616fcc3692fa3496046.zip
meson-2269b7f60b2443aa697a5616fcc3692fa3496046.tar.gz
meson-2269b7f60b2443aa697a5616fcc3692fa3496046.tar.bz2
Add build_rpath as new property allowing people to specify rpath entries that are used in the build tree but will be removed on install.
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r--mesonbuild/build.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index fb56cea..e1e1a33 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.py
@@ -49,6 +49,7 @@ known_basic_kwargs = {'install': True,
'gui_app': True,
'extra_files': True,
'install_rpath': True,
+ 'build_rpath': True,
'resources': True,
'sources': True,
'objects': True,
@@ -707,6 +708,9 @@ class BuildTarget(Target):
self.install_rpath = kwargs.get('install_rpath', '')
if not isinstance(self.install_rpath, str):
raise InvalidArguments('Install_rpath is not a string.')
+ self.build_rpath = kwargs.get('build_rpath', '')
+ if not isinstance(self.build_rpath, str):
+ raise InvalidArguments('Build_rpath is not a string.')
resources = kwargs.get('resources', [])
if not isinstance(resources, list):
resources = [resources]