From 55759e4aa990a9755e29f35a4aec6c0a6e89c7d7 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Wed, 6 Aug 2014 21:40:09 +0300 Subject: Can specify project options on the command line and the override defaults. --- meson.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meson.py') diff --git a/meson.py b/meson.py index 0c6ae36..a53ebd6 100755 --- a/meson.py +++ b/meson.py @@ -70,6 +70,8 @@ parser.add_option('--werror', action='store_true', dest='werror', default=False, help='Treat warnings as errors') parser.add_option('--cross-file', default=None, dest='cross_file', help='file describing cross compilation environment') +parser.add_option('-D', action='append', type='string', dest='projectoptions', default=[], + help='Set project options.') class MesonApp(): -- cgit v1.1