コード例 #1
0
ファイル: wscript.py プロジェクト: rohanbhindwale/bde-tools
def options(ctx):
    _setup_log(ctx)
    # check version numbers here because options() is called before any other
    # command-handling function
    if sys.hexversion < 0x2060000:
        ctx.fatal('Pyhon 2.6 and above is required to build BDE using waf.')

    ctx.load('bdebuild.waf.bdeunittest')

    from waflib.Tools.compiler_c import c_compiler
    c_compiler['win32'] = ['msvc']
    c_compiler['linux'] = ['gcc', 'clang']
    c_compiler['darwin'] = ['clang', 'gcc']
    c_compiler['aix'] = ['xlc', 'gcc']
    c_compiler['sunos'] = ['suncc', 'gcc']

    ctx.load('compiler_c')

    from waflib.Tools.compiler_cxx import cxx_compiler
    cxx_compiler['win32'] = ['msvc']
    cxx_compiler['linux'] = ['g++', 'clang++']
    cxx_compiler['darwin'] = ['clang++', 'g++']
    cxx_compiler['aix'] = ['xlc++', 'g++']
    cxx_compiler['sunos'] = ['sunc++', 'g++']
    ctx.load('compiler_cxx')
    ctx.load('msvs')
    ctx.load('xcode')

    add_cmdline_options(ctx)
    graphhelper.add_cmdline_options(ctx)
コード例 #2
0
def options(ctx):
    _setup_log(ctx)
    # check version numbers here because options() is called before any other
    # command-handling function
    if sys.hexversion < 0x2060000:
        ctx.fatal('Pyhon 2.6 and above is required to build BDE using waf.')

    ctx.load('bdebuild.waf.bdeunittest')

    from waflib.Tools.compiler_c import c_compiler
    c_compiler['win32'] = ['msvc']
    c_compiler['linux'] = ['gcc', 'clang']
    c_compiler['darwin'] = ['clang', 'gcc']
    c_compiler['aix'] = ['xlc', 'gcc']
    c_compiler['sunos'] = ['suncc', 'gcc']

    ctx.load('compiler_c')

    from waflib.Tools.compiler_cxx import cxx_compiler
    cxx_compiler['win32'] = ['msvc']
    cxx_compiler['linux'] = ['g++', 'clang++']
    cxx_compiler['darwin'] = ['clang++', 'g++']
    cxx_compiler['aix'] = ['xlc++', 'g++']
    cxx_compiler['sunos'] = ['sunc++', 'g++']
    ctx.load('compiler_cxx')
    ctx.load('msvs')
    ctx.load('xcode')

    add_cmdline_options(ctx)
    graphhelper.add_cmdline_options(ctx)
コード例 #3
0
ファイル: wscript.py プロジェクト: bloomberg/bde-tools
def options(ctx):
    _setup_log(ctx)
    # check version numbers here because options() is called before any other
    # command-handling function

    if sys.hexversion < 0x2060000:
        ctx.fatal('Pyhon 2.6 and above is required to build BDE using waf.')

    min_version = getattr(Context.g_module, 'min_bde_tools_version', None)
    max_version = getattr(Context.g_module, 'max_bde_tools_version', None)

    if (min_version and not sysutil.match_version_strs(BDE_TOOLS_VERSION,
                                                       min_version,
                                                       max_version)):
        msg = 'This repo requires BDE Tools version of at least ' + min_version
        if max_version:
            msg += ' and at most ' + max_version

        msg += '. The current version is ' + BDE_TOOLS_VERSION + '.'
        ctx.fatal(msg)

    ctx.load('bdebuild.waf.bdeunittest')

    from waflib.Tools.compiler_c import c_compiler
    c_compiler['win32'] = ['msvc']
    c_compiler['linux'] = ['gcc', 'clang']
    c_compiler['darwin'] = ['clang', 'gcc']
    c_compiler['aix'] = ['xlc', 'gcc']
    c_compiler['sunos'] = ['suncc', 'gcc']

    ctx.load('compiler_c')

    from waflib.Tools.compiler_cxx import cxx_compiler
    cxx_compiler['win32'] = ['msvc']
    cxx_compiler['linux'] = ['g++', 'clang++']
    cxx_compiler['darwin'] = ['clang++', 'g++']
    cxx_compiler['aix'] = ['xlc++', 'g++']
    cxx_compiler['sunos'] = ['sunc++', 'g++']
    ctx.load('compiler_cxx')
    ctx.load('msvs')
    try:
        ctx.load('xcode6')
    except ImportError:
        ctx.load('xcode')

    add_cmdline_options(ctx)
    graphhelper.add_cmdline_options(ctx)
コード例 #4
0
ファイル: wscript.py プロジェクト: wcorrea/bde-tools
def options(ctx):
    _setup_log(ctx)
    # check version numbers here because options() is called before any other
    # command-handling function

    if sys.hexversion < 0x2060000:
        ctx.fatal('Pyhon 2.6 and above is required to build BDE using waf.')

    min_version = getattr(Context.g_module, 'min_bde_tools_version', None)
    max_version = getattr(Context.g_module, 'max_bde_tools_version', None)

    if (min_version and not sysutil.match_version_strs(
            BDE_TOOLS_VERSION, min_version, max_version)):
        msg = 'This repo requires BDE Tools version of at least ' + min_version
        if max_version:
            msg += ' and at most ' + max_version

        msg += '. The current version is ' + BDE_TOOLS_VERSION + '.'
        ctx.fatal(msg)

    ctx.load('bdebuild.waf.bdeunittest')

    from waflib.Tools.compiler_c import c_compiler
    c_compiler['win32'] = ['msvc']
    c_compiler['linux'] = ['gcc', 'clang']
    c_compiler['darwin'] = ['clang', 'gcc']
    c_compiler['aix'] = ['xlc', 'gcc']
    c_compiler['sunos'] = ['suncc', 'gcc']

    ctx.load('compiler_c')

    from waflib.Tools.compiler_cxx import cxx_compiler
    cxx_compiler['win32'] = ['msvc']
    cxx_compiler['linux'] = ['g++', 'clang++']
    cxx_compiler['darwin'] = ['clang++', 'g++']
    cxx_compiler['aix'] = ['xlc++', 'g++']
    cxx_compiler['sunos'] = ['sunc++', 'g++']
    ctx.load('compiler_cxx')
    ctx.load('msvs')
    try:
        ctx.load('xcode6')
    except ImportError:
        ctx.load('xcode')

    add_cmdline_options(ctx)
    graphhelper.add_cmdline_options(ctx)