rewriter: Basic default_options support

pull/4939/head
Daniel Mensinger 6 years ago
parent 92f95b3326
commit e37d32aa9d
No known key found for this signature in database
GPG Key ID: 54DD94C131E277D4
  1. 9
      mesonbuild/rewriter.py

@ -213,7 +213,7 @@ class MTypeList(MTypeBase):
removed_list += [i] removed_list += [i]
self.node.args.arguments = removed_list self.node.args.arguments = removed_list
class MtypeStrList(MTypeList): class MTypeStrList(MTypeList):
def __init__(self, node: mparser.BaseNode): def __init__(self, node: mparser.BaseNode):
super().__init__(node) super().__init__(node)
@ -268,8 +268,8 @@ rewriter_func_kwargs = {
'not_found_message': MTypeStr, 'not_found_message': MTypeStr,
'required': MTypeBool, 'required': MTypeBool,
'static': MTypeBool, 'static': MTypeBool,
'version': MtypeStrList, 'version': MTypeStrList,
'modules': MtypeStrList 'modules': MTypeStrList
}, },
'target': { 'target': {
'build_by_default': MTypeBool, 'build_by_default': MTypeBool,
@ -285,8 +285,9 @@ rewriter_func_kwargs = {
'pie': MTypeBool 'pie': MTypeBool
}, },
'project': { 'project': {
'default_options': MTypeStrList,
'meson_version': MTypeStr, 'meson_version': MTypeStr,
'license': MtypeStrList, 'license': MTypeStrList,
'subproject_dir': MTypeStr, 'subproject_dir': MTypeStr,
'version': MTypeStr 'version': MTypeStr
} }

Loading…
Cancel
Save