|
|
|
@ -590,31 +590,31 @@ def parse_cmd_line_options(args): |
|
|
|
|
delattr(args, name) |
|
|
|
|
|
|
|
|
|
builtin_options = { |
|
|
|
|
'buildtype': [UserComboOption, 'Build type to use.', ['plain', 'debug', 'debugoptimized', 'release', 'minsize', 'custom'], 'debug'], |
|
|
|
|
'strip': [UserBooleanOption, 'Strip targets on install.', False], |
|
|
|
|
'unity': [UserComboOption, 'Unity build.', ['on', 'off', 'subprojects'], 'off'], |
|
|
|
|
'prefix': [UserStringOption, 'Installation prefix.', default_prefix()], |
|
|
|
|
'libdir': [UserStringOption, 'Library directory.', default_libdir()], |
|
|
|
|
'libexecdir': [UserStringOption, 'Library executable directory.', default_libexecdir()], |
|
|
|
|
'bindir': [UserStringOption, 'Executable directory.', 'bin'], |
|
|
|
|
'sbindir': [UserStringOption, 'System executable directory.', 'sbin'], |
|
|
|
|
'includedir': [UserStringOption, 'Header file directory.', 'include'], |
|
|
|
|
'datadir': [UserStringOption, 'Data file directory.', 'share'], |
|
|
|
|
'mandir': [UserStringOption, 'Manual page directory.', 'share/man'], |
|
|
|
|
'infodir': [UserStringOption, 'Info page directory.', 'share/info'], |
|
|
|
|
'localedir': [UserStringOption, 'Locale data directory.', 'share/locale'], |
|
|
|
|
'sysconfdir': [UserStringOption, 'Sysconf data directory.', 'etc'], |
|
|
|
|
'localstatedir': [UserStringOption, 'Localstate data directory.', 'var'], |
|
|
|
|
'sharedstatedir': [UserStringOption, 'Architecture-independent data directory.', 'com'], |
|
|
|
|
'werror': [UserBooleanOption, 'Treat warnings as errors.', False], |
|
|
|
|
'warning_level': [UserComboOption, 'Compiler warning level to use.', ['1', '2', '3'], '1'], |
|
|
|
|
'layout': [UserComboOption, 'Build directory layout.', ['mirror', 'flat'], 'mirror'], |
|
|
|
|
'default_library': [UserComboOption, 'Default library type.', ['shared', 'static', 'both'], 'shared'], |
|
|
|
|
'backend': [UserComboOption, 'Backend to use.', backendlist, 'ninja'], |
|
|
|
|
'stdsplit': [UserBooleanOption, 'Split stdout and stderr in test logs.', True], |
|
|
|
|
'errorlogs': [UserBooleanOption, "Whether to print the logs from failing tests.", True], |
|
|
|
|
'install_umask': [UserUmaskOption, 'Default umask to apply on permissions of installed files.', '022'], |
|
|
|
|
'auto_features': [UserFeatureOption, "Override value of all 'auto' features.", 'auto'], |
|
|
|
|
'buildtype': [UserComboOption, 'Build type to use', ['plain', 'debug', 'debugoptimized', 'release', 'minsize', 'custom'], 'debug'], |
|
|
|
|
'strip': [UserBooleanOption, 'Strip targets on install', False], |
|
|
|
|
'unity': [UserComboOption, 'Unity build', ['on', 'off', 'subprojects'], 'off'], |
|
|
|
|
'prefix': [UserStringOption, 'Installation prefix', default_prefix()], |
|
|
|
|
'libdir': [UserStringOption, 'Library directory', default_libdir()], |
|
|
|
|
'libexecdir': [UserStringOption, 'Library executable directory', default_libexecdir()], |
|
|
|
|
'bindir': [UserStringOption, 'Executable directory', 'bin'], |
|
|
|
|
'sbindir': [UserStringOption, 'System executable directory', 'sbin'], |
|
|
|
|
'includedir': [UserStringOption, 'Header file directory', 'include'], |
|
|
|
|
'datadir': [UserStringOption, 'Data file directory', 'share'], |
|
|
|
|
'mandir': [UserStringOption, 'Manual page directory', 'share/man'], |
|
|
|
|
'infodir': [UserStringOption, 'Info page directory', 'share/info'], |
|
|
|
|
'localedir': [UserStringOption, 'Locale data directory', 'share/locale'], |
|
|
|
|
'sysconfdir': [UserStringOption, 'Sysconf data directory', 'etc'], |
|
|
|
|
'localstatedir': [UserStringOption, 'Localstate data directory', 'var'], |
|
|
|
|
'sharedstatedir': [UserStringOption, 'Architecture-independent data directory', 'com'], |
|
|
|
|
'werror': [UserBooleanOption, 'Treat warnings as errors', False], |
|
|
|
|
'warning_level': [UserComboOption, 'Compiler warning level to use', ['1', '2', '3'], '1'], |
|
|
|
|
'layout': [UserComboOption, 'Build directory layout', ['mirror', 'flat'], 'mirror'], |
|
|
|
|
'default_library': [UserComboOption, 'Default library type', ['shared', 'static', 'both'], 'shared'], |
|
|
|
|
'backend': [UserComboOption, 'Backend to use', backendlist, 'ninja'], |
|
|
|
|
'stdsplit': [UserBooleanOption, 'Split stdout and stderr in test logs', True], |
|
|
|
|
'errorlogs': [UserBooleanOption, "Whether to print the logs from failing tests", True], |
|
|
|
|
'install_umask': [UserUmaskOption, 'Default umask to apply on permissions of installed files', '022'], |
|
|
|
|
'auto_features': [UserFeatureOption, "Override value of all 'auto' features", 'auto'], |
|
|
|
|
'optimization': [UserComboOption, 'Optimization level', ['0', 'g', '1', '2', '3', 's'], '0'], |
|
|
|
|
'debug': [UserBooleanOption, 'Debug', True] |
|
|
|
|
} |
|
|
|
|