aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/backends.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2016-03-02 22:39:57 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2016-03-02 22:39:57 +0200
commit5498f16fb35717a3175e61bf65666c43089efc30 (patch)
tree8253ee9bef5785f7469575f5289dbc87b27d13bb /mesonbuild/backend/backends.py
parent455e55f8e51c328400c36d65a15d76e7c4be08eb (diff)
parent5e1fdb8b971cf963958b1be2baac10b0edb0eaa2 (diff)
downloadmeson-5498f16fb35717a3175e61bf65666c43089efc30.zip
meson-5498f16fb35717a3175e61bf65666c43089efc30.tar.gz
meson-5498f16fb35717a3175e61bf65666c43089efc30.tar.bz2
Merged postconf script.
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 b869008..311e16c 100644
--- a/mesonbuild/backend/backends.py
+++ b/mesonbuild/backend/backends.py
@@ -17,6 +17,7 @@ from .. import build
from .. import dependencies
from .. import mesonlib
import json
+import subprocess
from ..coredata import MesonException
class InstallData():
@@ -435,3 +436,8 @@ class Backend():
cmd.append(i)
cmd = [i.replace('\\', '/') for i in cmd]
return (srcs, ofilenames, cmd)
+
+ def run_postconf_scripts(self):
+ for s in self.build.postconf_scripts:
+ cmd = s['exe'].get_command() + [self.environment.get_source_dir(), self.environment.get_build_dir()] + s['args']
+ subprocess.check_call(cmd)