Exemple #1
0
def get_ufid_cmdline_options():
    """Return a list of command line options to specify the ufid.
    """

    return [
        (('abi-bits',),
         {'type': 'choice',
          'default': '64' if sysutil.is_64bit_system() else '32',
          'choices': ('32', '64'),
          'help': 'ABI bits (32/64) [default: %default]'}),
        (('build-type',),
         {'type': 'choice',
          'default': 'debug',
          'choices': ('release', 'debug'),
          'help': 'the type of build to produce (debug/release) '
          "[default: %default]"}),
        (('library-type',),
         {'type': 'choice',
          'default': 'static',
          'choices': ('static', 'shared'),
          'help': 'the type of libraries to build (shared/static) '
          "[default: %default]"}),
        (('noexception',),
         {'action': 'store_true',
          'default': False,
          'help': 'disable exception support'}),
        (('safe',),
         {'action': 'store_true',
          'default': False,
          'help': 'define the macro "BDE_BUILD_TARGET_SAFE" as described in '
          'the component-level documentation of bsls_assert'}),
        (('safe2',),
         {'action': 'store_true',
          'default': False,
          'help': 'define the macro "BDE_BUILD_TARGET_SAFE_2" as described in '
          'the component-level documentation of bsls_assert'}),
        (('cpp-std',),
         {'type': 'choice',
          'default': None,
          'choices': (None, '03', '11'),
          'help': 'use a C++11 standard version ("03"/"11") '
                  '[default value depends on compiler]'}),
        (('t', 'ufid'),
         {'type': 'string',
          'default': None,
          'help': 'the Unified Platform ID (UFID) identifying the build '
          'configuration (e.g., dbg_mt_exc). '
          'Note that specifying a UFID will overwrite other build '
          'configuration options such as --library_type'})
    ]
Exemple #2
0
def get_ufid_cmdline_options():
    """Return a list of command line options to specify the ufid.
    """

    return [
        (('abi-bits',),
         {'type': 'choice',
          'default': '64' if sysutil.is_64bit_system() else '32',
          'choices': ('32', '64'),
          'help': 'ABI bits (32/64) [default: %default]'}),
        (('build-type',),
         {'type': 'choice',
          'default': 'debug',
          'choices': ('release', 'debug'),
          'help': 'the type of build to produce (debug/release) '
          "[default: %default]"}),
        (('library-type',),
         {'type': 'choice',
          'default': 'static',
          'choices': ('static', 'shared'),
          'help': 'the type of libraries to build (shared/static) '
          "[default: %default]"}),
        (('assert-level',),
         {'type': 'choice',
          'default': 'none',
          'choices': ('none', 'safe', 'safe2'),
          'help': 'bsls_assert level (none/safe/safe2) '
          "[default: %default]"}),
        (('noexception',),
         {'action': 'store_true',
          'default': False,
          'help': 'disable exception support'}),
        (('cpp11',),
         {'action': 'store_true',
          'default': False,
          'help': 'enable C++11 support'}),
        (('t', 'ufid'),
         {'type': 'string',
          'default': None,
          'help': 'the Unified Platform ID (UFID) identifying the build '
          'configuration (e.g., dbg_mt_exc). '
          'Note that specifying a UFID will overwrite other build '
          'configuration options such as --library_type.'})
    ]
Exemple #3
0
def get_ufid_cmdline_options():
    """Return a list of command line options to specify the ufid.
    """

    return [(('abi-bits', ), {
        'type': 'choice',
        'default': '64' if sysutil.is_64bit_system() else '32',
        'choices': ('32', '64'),
        'help': 'ABI bits (32/64) [default: %default]'
    }),
            (('build-type', ), {
                'type':
                'choice',
                'default':
                'Debug',
                'choices': ('Debug', 'Release', 'RelWithDebInfo'),
                'help':
                'the type of build to produce (Debug/Release/RelWithDebInfo)'
                '[default: %default]'
            }),
            (('library-type', ), {
                'type':
                'choice',
                'default':
                'static',
                'choices': ('static', 'shared'),
                'help':
                'the type of libraries to build (shared/static)'
                '[default: %default]'
            }),
            (('noexception', ), {
                'action': 'store_true',
                'default': False,
                'help': 'disable exception support'
            }),
            (('assert_level', ), {
                'type':
                'choice',
                'default':
                None,
                'choices': (None, 'aopt', 'adbg', 'asafe', 'anone'),
                'help':
                'define the macros BSLS_ASSERT_LEVEL_ASSERT_OPT,\n'
                'BSLS_ASSERT_LEVEL_ASSERT, BSLS_ASSERT_LEVEL_ASSERT_SAFE,\n'
                'BSLS_ASSERT_LEVEL_NONE respectively as described\n'
                'in the component-level documentation of bsls_assert\n'
                '("aopt", "adbg", "asafe", "anone")'
            }),
            (('review_level', ), {
                'type':
                'choice',
                'default':
                None,
                'choices': (None, 'ropt', 'rdbg', 'rsafe', 'rnone'),
                'help':
                'define the macros BSLS_REVIEW_LEVEL_REVIEW_OPT,\n'
                'BSLS_REVIEW_LEVEL_REVIEW, BSLS_REVIEW_LEVEL_REVIEW_SAFE,\n'
                'BSLS_REVIEW_LEVEL_NONE respectively as described\n'
                'in the component-level documentation of bsls_assert\n'
                '("ropt", "rdbg", "rsafe", "rnone")'
            }),
            (('sanitizer', ), {
                'type':
                'choice',
                'default':
                None,
                'choices': (None, 'asan', 'msan', 'tsan', 'ubsan'),
                'help':
                'enable address, memory, thread or undefined behaviour\n'
                'sanitizer\n'
                '("asan", "msan", "tsan", "ubsan")'
            }),
            (('fuzz', ), {
                'action': 'store_true',
                'default': False,
                'help': 'Build with fuzz testing (requires test driver change)'
            }),
            (('safe', ), {
                'action':
                'store_true',
                'default':
                False,
                'help':
                'define the macro "BDE_BUILD_TARGET_SAFE" as described in '
                'the component-level documentation of bsls_assert'
            }),
            (('safe2', ), {
                'action':
                'store_true',
                'default':
                False,
                'help':
                'define the macro "BDE_BUILD_TARGET_SAFE_2" as described in '
                'the component-level documentation of bsls_assert'
            }),
            (('cpp-std', ), {
                'type':
                'choice',
                'default':
                None,
                'choices': (None, '03', '11', '14', '17'),
                'help':
                'use a C++11 standard version ("03"/"11"/"14"/"17") '
                '[default value depends on compiler]'
            }),
            (('t', 'ufid'), {
                'type':
                'string',
                'default':
                None,
                'help':
                'the Unified Platform ID (UFID) identifying the build '
                'configuration (e.g., dbg_mt_exc). '
                'Note that specifying a UFID will overwrite other build '
                'configuration options such as --library_type'
            })]
Exemple #4
0
def get_ufid_cmdline_options():
    """Return a list of command line options to specify the ufid."""

    return [
        (
            ("abi-bits", ),
            {
                "type": "choice",
                "default": "64" if sysutil.is_64bit_system() else "32",
                "choices": ("32", "64"),
                "help": "ABI bits (32/64) [default: %default]",
            },
        ),
        (
            ("build-type", ),
            {
                "type":
                "choice",
                "default":
                "Debug",
                "choices": ("Debug", "Release", "RelWithDebInfo"),
                "help":
                "the type of build to produce (Debug/Release/RelWithDebInfo)"
                "[default: %default]",
            },
        ),
        (
            ("library-type", ),
            {
                "type":
                "choice",
                "default":
                "static",
                "choices": ("static", "shared"),
                "help":
                "the type of libraries to build (shared/static)"
                "[default: %default]",
            },
        ),
        (
            ("noexception", ),
            {
                "action": "store_true",
                "default": False,
                "help": "disable exception support",
            },
        ),
        (
            ("assert_level", ),
            {
                "type":
                "choice",
                "default":
                None,
                "choices": (None, "aopt", "adbg", "asafe", "anone"),
                "help":
                "define the macros BSLS_ASSERT_LEVEL_ASSERT_OPT,\n"
                "BSLS_ASSERT_LEVEL_ASSERT, BSLS_ASSERT_LEVEL_ASSERT_SAFE,\n"
                "BSLS_ASSERT_LEVEL_NONE respectively as described\n"
                "in the component-level documentation of bsls_assert\n"
                '("aopt", "adbg", "asafe", "anone")',
            },
        ),
        (
            ("review_level", ),
            {
                "type":
                "choice",
                "default":
                None,
                "choices": (None, "ropt", "rdbg", "rsafe", "rnone"),
                "help":
                "define the macros BSLS_REVIEW_LEVEL_REVIEW_OPT,\n"
                "BSLS_REVIEW_LEVEL_REVIEW, BSLS_REVIEW_LEVEL_REVIEW_SAFE,\n"
                "BSLS_REVIEW_LEVEL_NONE respectively as described\n"
                "in the component-level documentation of bsls_assert\n"
                '("ropt", "rdbg", "rsafe", "rnone")',
            },
        ),
        (
            ("sanitizer", ),
            {
                "type":
                "choice",
                "default":
                None,
                "choices": (None, "asan", "msan", "tsan", "ubsan"),
                "help":
                "enable address, memory, thread or undefined behaviour\n"
                "sanitizer\n"
                '("asan", "msan", "tsan", "ubsan")',
            },
        ),
        (
            ("fuzz", ),
            {
                "action": "store_true",
                "default": False,
                "help":
                "Build with fuzz testing (requires test driver change)",
            },
        ),
        (
            ("safe", ),
            {
                "action":
                "store_true",
                "default":
                False,
                "help":
                'define the macro "BDE_BUILD_TARGET_SAFE" as described in '
                "the component-level documentation of bsls_assert",
            },
        ),
        (
            ("safe2", ),
            {
                "action":
                "store_true",
                "default":
                False,
                "help":
                'define the macro "BDE_BUILD_TARGET_SAFE_2" as described in '
                "the component-level documentation of bsls_assert",
            },
        ),
        (
            ("cpp-std", ),
            {
                "type":
                "choice",
                "default":
                None,
                "choices": (None, "03", "11", "14", "17"),
                "help":
                'use a C++11 standard version ("03"/"11"/"14"/"17") '
                "[default value depends on compiler]",
            },
        ),
        (
            ("t", "ufid"),
            {
                "type":
                "string",
                "default":
                None,
                "help":
                "the Unified Platform ID (UFID) identifying the build "
                "configuration (e.g., dbg_mt_exc). "
                "Note that specifying a UFID will overwrite other build "
                "configuration options such as --library_type",
            },
        ),
    ]
Exemple #5
0
def get_ufid_cmdline_options():
    """Return a list of command line options to specify the ufid.
    """

    return [(('abi-bits', ), {
        'type': 'choice',
        'default': '64' if sysutil.is_64bit_system() else '32',
        'choices': ('32', '64'),
        'help': 'ABI bits (32/64) [default: %default]'
    }),
            (('build-type', ), {
                'type':
                'choice',
                'default':
                'debug',
                'choices': ('release', 'debug'),
                'help':
                'the type of build to produce (debug/release) '
                "[default: %default]"
            }),
            (('library-type', ), {
                'type':
                'choice',
                'default':
                'static',
                'choices': ('static', 'shared'),
                'help':
                'the type of libraries to build (shared/static) '
                "[default: %default]"
            }),
            (('assert-level', ), {
                'type':
                'choice',
                'default':
                'none',
                'choices': ('none', 'safe', 'safe2'),
                'help':
                'bsls_assert level (none/safe/safe2) '
                "[default: %default]"
            }),
            (('noexception', ), {
                'action': 'store_true',
                'default': False,
                'help': 'disable exception support'
            }),
            (('cpp11', ), {
                'action': 'store_true',
                'default': False,
                'help': 'enable C++11 support'
            }),
            (('t', 'ufid'), {
                'type':
                'string',
                'default':
                None,
                'help':
                'the Unified Platform ID (UFID) identifying the build '
                'configuration (e.g., dbg_mt_exc). '
                'Note that specifying a UFID will overwrite other build '
                'configuration options such as --library_type.'
            })]