Add iwyu, tidy, make, ninja, and mingw keywords to init

This commit is contained in:
Danny Robson 2019-02-22 12:53:14 +11:00
parent b9d605265e
commit 193fe0419a

11
init.py
View File

@ -17,6 +17,17 @@ OPTIONS = {
# sanitizer
'sanitizer': {'vars': {'SANITIZER': 'ON'}, 'require': {'PROFILE': 'release'}},
# wrappers
'iwyu': { 'vars': { 'CMAKE_CXX_INCLUDE_WHAT_YOU_USE': 'include-what-you-use' } },
'tidy': { 'vars': { 'CMAKE_CXX_CLANG_TIDY': ';'.join(['clang-tidy', '--quiet', '-checks=bugprone-*,clang-analyzer-*,performance-*,portability-*,readability-,', '-warnings-as-errors=' ]) } },
# build tools
'make': { 'args': [ '-G', '"Unix Makefiles"' ] },
'ninja': { 'args': [ '-G', 'Ninja' ] },
# platforms
'mingw': { 'vars': { 'CMAKE_TOOLCHAIN_FILE': '/home/danny/src/cmakecruft/toolchain/mingw.cmake' }, },
# Default parameters
'': {
'vars': {