diff options
author | Dieter Verfaillie <dieterv@optionexplicit.be> | 2011-09-05 21:54:18 +0200 |
---|---|---|
committer | Dieter Verfaillie <dieterv@optionexplicit.be> | 2011-09-07 22:01:56 +0200 |
commit | 390c8b473a6098e06bbc9fc7d81a9f7153844d83 (patch) | |
tree | daa93a2c7223cd76e5813f8d71583b4fe4bccb46 /giscanner/scannermain.py | |
parent | 188a20360aad13f5e6040467a58cbe4d3093a94e (diff) | |
download | gobject-introspection-390c8b473a6098e06bbc9fc7d81a9f7153844d83.tar.gz |
Windows port: g-ir-scanner: Accept -m flags
Some pkgconfig files contain these flags on Windows, for example
gtk+-3.0.pc has -mms-bitfields in it's Cflags. Nothing is done yet
with these though, we only accept these flags for now...
https://bugzilla.gnome.org/show_bug.cgi?id=620566
Diffstat (limited to 'giscanner/scannermain.py')
-rwxr-xr-x | giscanner/scannermain.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py index 3c1386a9..6dc56ef0 100755 --- a/giscanner/scannermain.py +++ b/giscanner/scannermain.py @@ -56,6 +56,14 @@ def get_preprocessor_option_group(parser): group.add_option("-p", dest="", help="Ignored") return group +def get_windows_option_group(parser): + group = optparse.OptionGroup(parser, "Machine Dependent Options") + group.add_option("-m", help="some machine dependent option", + action="append", dest='m_option', + default=[]) + + return group + def _get_option_parser(): parser = optparse.OptionParser('%prog [options] sources') parser.add_option('', "--quiet", @@ -151,6 +159,10 @@ match the namespace prefix.""") group = get_preprocessor_option_group(parser) parser.add_option_group(group) + if os.environ.get('MSYSTEM') == 'MINGW32': + group = get_windows_option_group(parser) + parser.add_option_group(group) + # Private options parser.add_option('', "--generate-typelib-tests", action="store", dest="test_codegen", default=None, |