diff options
author | Nicolas Schneider <nioncode+git@gmail.com> | 2016-03-01 14:07:38 +0100 |
---|---|---|
committer | Nicolas Schneider <nioncode+git@gmail.com> | 2016-03-01 14:07:38 +0100 |
commit | 92187501ed51448b4ee596d059b1cd88e856fe56 (patch) | |
tree | cc956e0a592238cf47ce761ba2cb1f670ba57528 /mesonbuild/backend | |
parent | 52b66edb6cfb891e3a6b8c18d50d98e98dd100ec (diff) | |
download | meson-92187501ed51448b4ee596d059b1cd88e856fe56.zip meson-92187501ed51448b4ee596d059b1cd88e856fe56.tar.gz meson-92187501ed51448b4ee596d059b1cd88e856fe56.tar.bz2 |
Can add postconfigure script.
Diffstat (limited to 'mesonbuild/backend')
-rw-r--r-- | mesonbuild/backend/backends.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py index b869008..9b3cef4 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.get_command() + [self.environment.get_source_dir(), self.environment.get_build_dir()] + subprocess.check_call(cmd) |