_LGPL = {
- _LGPLv2_LICENSE: "2",
- _LGPLv3_LICENSE: "3",
- _LGPL_LICENSES: "yes",
- (_GPLv2_LICENSE | _LGPLv3_LICENSE): "3orGPLv2",
+ tuple(_LGPLv2_LICENSE): "2",
+ tuple(_LGPLv3_LICENSE): "3",
+ tuple(_LGPL_LICENSES): "yes",
+ tuple(_GPLv2_LICENSE | _LGPLv3_LICENSE): "3orGPLv2",
}
__DISCLAIMER = (
"## DO NOT EDIT! GENERATED AUTOMATICALLY!",
yield option
for module in config.avoids:
yield "--avoid={module.name}"
- if frozenset(config.licenses) in _LGPL:
- lgpl = _LGPL[config.licenses]
+ if tuple(config.licenses) in _LGPL:
+ lgpl = _LGPL[tuple(config.licenses)]
if lgpl != "yes":
yield f"--lgpl={lgpl}"
else:
if config.tests:
yield "gl_WITH_TESTS"
yield "gl_LIB([{}])".format(config.libname)
- if frozenset(config.licenses) in _LGPL:
- lgpl = _LGPL[config.licenses]
+ if tuple(config.licenses) in _LGPL:
+ lgpl = _LGPL[tuple(config.licenses)]
yield "gl_LGPL([{}])".format(lgpl) if lgpl != "yes" else "gl_LGPL"
yield f"gl_MAKEFILE_NAME([{config.makefile_name}])"
if config.conditionals: