diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2013-10-16 22:33:33 +0300 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2013-10-16 22:33:33 +0300 |
| commit | 309a5c1510810d3676dcec9962894a3353ce218c (patch) | |
| tree | 60bff326cf68f7eb5c1422b5800bdbd30727bb4d /meson.py | |
| parent | 4e522ef2158c8ba4bac3f13b31ecd2f746696a84 (diff) | |
| download | meson-309a5c1510810d3676dcec9962894a3353ce218c.tar.gz | |
Options can be accessed from scripts.
Diffstat (limited to 'meson.py')
| -rwxr-xr-x | meson.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -17,7 +17,7 @@ from optparse import OptionParser import sys, stat, traceback, pickle import os.path -import environment, interpreter +import environment, interpreter, optinterpreter import backends, build import mlog, coredata @@ -121,6 +121,11 @@ itself as required.''' else: mlog.log('Build type:', mlog.bold('native build')) b = build.Build(env) + option_file = os.path.join(self.source_dir, 'meson_options.txt') + if os.path.exists(option_file): + oi = optinterpreter.OptionInterpreter() + oi.process(option_file) + b.merge_options(oi.options) intr = interpreter.Interpreter(b) intr.run() if options.backend == 'ninja': |
