aboutsummaryrefslogtreecommitdiff
path: root/meson.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-02-24 00:20:39 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2013-02-24 00:20:39 +0200
commit7371ad676edd6711fd5dcff7b8de037c46763626 (patch)
treeb7c527b420cef26a7dbd6be1ecfd22c619771696 /meson.py
parent7abe15a7baf6065b10a121b10f6d9edda6ed8280 (diff)
downloadmeson-7371ad676edd6711fd5dcff7b8de037c46763626.zip
meson-7371ad676edd6711fd5dcff7b8de037c46763626.tar.gz
meson-7371ad676edd6711fd5dcff7b8de037c46763626.tar.bz2
Renamed generator command line option to backend.
Diffstat (limited to 'meson.py')
-rwxr-xr-xmeson.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/meson.py b/meson.py
index 173f4ab..92b05df 100755
--- a/meson.py
+++ b/meson.py
@@ -42,8 +42,8 @@ parser.add_option('--datadir', default='share', dest='datadir',
help='relative path to the top of data file subdirectory (default: %default)')
parser.add_option('--mandir' , default='share/man', dest='mandir',
help='relatie path of man files (default: %default)')
-parser.add_option('-G', '--generator', default='ninja', dest='generator',
- help='the backend generator to use (default: %default)')
+parser.add_option('--backend', default='ninja', dest='backend',
+ help='the backend to use (default: %default)')
parser.add_option('--buildtype', default='debug', type='choice', choices=build_types, dest='buildtype',
help=buildtype_help)
parser.add_option('--strip', action='store_true', dest='strip', default=False,\
@@ -92,9 +92,9 @@ class MesonApp():
b = build.Build(env)
intr = interpreter.Interpreter(b)
intr.run()
- if options.generator == 'shell':
+ if options.backend == 'shell':
g = backends.ShellBackend(b, intr)
- elif options.generator == 'ninja':
+ elif options.backend == 'ninja':
g = backends.NinjaBackend(b, intr)
else:
raise RuntimeError('Unknown generator "%s".' % options.generator)