当前位置: 首页>>代码示例>>Python>>正文


Python ConanMultiPackager.add_common_builds方法代码示例

本文整理汇总了Python中conan.packager.ConanMultiPackager.add_common_builds方法的典型用法代码示例。如果您正苦于以下问题:Python ConanMultiPackager.add_common_builds方法的具体用法?Python ConanMultiPackager.add_common_builds怎么用?Python ConanMultiPackager.add_common_builds使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在conan.packager.ConanMultiPackager的用法示例。


在下文中一共展示了ConanMultiPackager.add_common_builds方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: main

# 需要导入模块: from conan.packager import ConanMultiPackager [as 别名]
# 或者: from conan.packager.ConanMultiPackager import add_common_builds [as 别名]
def main():
    """
    Main function.
    """

    builder = ConanMultiPackager(username="osechet", channel="testing")
    builder.add_common_builds()
    filtered_builds = []
    for settings, options, env_vars, build_requires in builder.builds:
        if settings["compiler"] == "Visual Studio":
            if settings["compiler.runtime"] == "MT" or settings["compiler.runtime"] == "MTd":
                # Ignore MT runtime
                continue
        if settings["arch"] != "x86_64":
            continue

        filtered_builds.append([settings, options, env_vars, build_requires])

    builder.builds = filtered_builds
    builder.run()
开发者ID:osechet,项目名称:conan-qt,代码行数:22,代码来源:build.py

示例2: ConanMultiPackager

# 需要导入模块: from conan.packager import ConanMultiPackager [as 别名]
# 或者: from conan.packager.ConanMultiPackager import add_common_builds [as 别名]
    gcc_versions = gcc_versions.split(",") if gcc_versions else None
    use_docker = os.getenv("CONAN_USE_DOCKER", False)
    upload = os.getenv("CONAN_UPLOAD", False)
    reference = os.getenv("CONAN_REFERENCE")
    password = os.getenv("CONAN_PASSWORD")
    travis = os.getenv("TRAVIS", False)
    travis_branch = os.getenv("TRAVIS_BRANCH", None)
    appveyor = os.getenv("APPVEYOR", False)
    appveyor_branch = os.getenv("APPVEYOR_REPO_BRANCH", None)

    channel = "stable" if travis and travis_branch == "master" else channel
    channel = (
        "stable"
        if appveyor and appveyor_branch == "master" and not os.getenv("APPVEYOR_PULL_REQUEST_NUMBER")
        else channel
    )
    os.environ["CONAN_CHANNEL"] = channel  # Override the environment value for test/conanfile.py file

    args = " ".join(sys.argv[1:])
    builder = ConanMultiPackager(args, username, channel)
    builder.add_common_builds(visual_versions=[10, 12, 14])
    print(builder.builds)

    if use_docker:
        builder.docker_pack(current_page, total_pages, gcc_versions)
    else:
        builder.pack(current_page, total_pages)

    if upload and reference and password:
        builder.upload_packages(reference, password)
开发者ID:TyRoXx,项目名称:conan-sqlite3,代码行数:32,代码来源:build.py

示例3: efence_options

# 需要导入模块: from conan.packager import ConanMultiPackager [as 别名]
# 或者: from conan.packager.ConanMultiPackager import add_common_builds [as 别名]
from conan.packager import ConanMultiPackager


def efence_options(options, no_electric_fence):
    new_option_items = [
        ('OpenSSL:no_electric_fence', True),
        ('OpenSSL:zlib_dynamic', options['OpenSSL:shared'])
        ]
    return dict(options.items() + new_option_items)


if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(shared_option_name="OpenSSL:shared", pure_c=True)
    efence_builds = []
    for settings, options in builder.builds:
        efence_builds.append([settings, efence_options(options, True)])
        efence_builds.append([settings, efence_options(options, False)])
    builder.builds = efence_builds
    builder.run()
开发者ID:ViaviSolutions,项目名称:conan-openssl,代码行数:22,代码来源:build.py

示例4: ConanMultiPackager

# 需要导入模块: from conan.packager import ConanMultiPackager [as 别名]
# 或者: from conan.packager.ConanMultiPackager import add_common_builds [as 别名]
from conan.packager import ConanMultiPackager


if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(shared_option_name="jansson:shared", pure_c=True)
    builder.run()

开发者ID:lasote,项目名称:conan-jansson,代码行数:9,代码来源:build.py

示例5: ConanMultiPackager

# 需要导入模块: from conan.packager import ConanMultiPackager [as 别名]
# 或者: from conan.packager.ConanMultiPackager import add_common_builds [as 别名]
from conan.packager import ConanMultiPackager

if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(shared_option_name="BeagleBoneBlackGPIO:shared", pure_c=False)
    builder.run()
开发者ID:uilianries,项目名称:BeagleBoneBlackGPIO,代码行数:8,代码来源:build.py

示例6: ConanMultiPackager

# 需要导入模块: from conan.packager import ConanMultiPackager [as 别名]
# 或者: from conan.packager.ConanMultiPackager import add_common_builds [as 别名]
from conan.packager import ConanMultiPackager

if __name__ == "__main__":
    builder = ConanMultiPackager(build_policy="outdated")
    builder.add_common_builds(shared_option_name=None)
    builder.run()
开发者ID:nanopb,项目名称:nanopb,代码行数:8,代码来源:build.py

示例7: ConanMultiPackager

# 需要导入模块: from conan.packager import ConanMultiPackager [as 别名]
# 或者: from conan.packager.ConanMultiPackager import add_common_builds [as 别名]
from conan.packager import ConanMultiPackager


if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(shared_option_name="capnproto:shared", pure_c=False)
    filtered_builds = []
    for settings, options in builder.builds:
        if settings["arch"] != "x86":
             filtered_builds.append([settings, options])
    builder.builds = filtered_builds
    builder.run()
开发者ID:lasote,项目名称:conan-capnproto,代码行数:14,代码来源:build.py

示例8: ConanMultiPackager

# 需要导入模块: from conan.packager import ConanMultiPackager [as 别名]
# 或者: from conan.packager.ConanMultiPackager import add_common_builds [as 别名]
from conan.packager import ConanMultiPackager
import platform


if __name__ == "__main__":
    builder = ConanMultiPackager()
    if platform.system() == "Windows":
        builder.add_common_builds(pure_c=True)
    else:
        builder.add_common_builds(shared_option_name="c-capnproto:shared", pure_c=True)
    filtered_builds = []
    for settings, options in builder.builds:
        if settings["arch"] != "x86":
             filtered_builds.append([settings, options])
    

             
    builder.builds = filtered_builds
    builder.run()
开发者ID:lasote,项目名称:conan-c-capnproto,代码行数:21,代码来源:build.py

示例9: ConanMultiPackager

# 需要导入模块: from conan.packager import ConanMultiPackager [as 别名]
# 或者: from conan.packager.ConanMultiPackager import add_common_builds [as 别名]
from conan.packager import ConanMultiPackager


if __name__ == "__main__":
    builder = ConanMultiPackager(username="memsharded", channel="testing")
    builder.add_common_builds(shared_option_name="libzmq:shared")
    builder.run()
开发者ID:memsharded,项目名称:conan-zmq,代码行数:9,代码来源:build.py

示例10: ConanMultiPackager

# 需要导入模块: from conan.packager import ConanMultiPackager [as 别名]
# 或者: from conan.packager.ConanMultiPackager import add_common_builds [as 别名]
from conan.packager import ConanMultiPackager
import platform

if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(shared_option_name="luabind11:shared")
    # Remove compiler versions that don't support used C++14 features
    builder.builds = [
        [settings, options, env_vars, build_requires]
        for settings, options, env_vars, build_requires in builder.builds
        if  not (settings["compiler"] == "Visual Studio" and int(settings["compiler.version"]) < 13)
        and not (settings["compiler"] == "gcc" and float(settings["compiler.version"]) < 4.8)
    ]
    builder.run()

开发者ID:sixten-hilborn,项目名称:luabind_cpp11,代码行数:16,代码来源:build.py

示例11: ConanMultiPackager

# 需要导入模块: from conan.packager import ConanMultiPackager [as 别名]
# 或者: from conan.packager.ConanMultiPackager import add_common_builds [as 别名]
from conan.packager import ConanMultiPackager


if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(pure_c=True)
    builder.run()
开发者ID:DEGoodmanWilson,项目名称:conan-libcurl,代码行数:9,代码来源:build.py

示例12: ConanMultiPackager

# 需要导入模块: from conan.packager import ConanMultiPackager [as 别名]
# 或者: from conan.packager.ConanMultiPackager import add_common_builds [as 别名]
from conan.packager import ConanMultiPackager

if __name__ == "__main__":
    builder = ConanMultiPackager(stable_branch_pattern=r"release/")
    builder.add_common_builds(shared_option_name="wxWidgets_custom:shared", pure_c=False)
    builder.run()
开发者ID:SteffenL,项目名称:conan-wxwidgets-custom,代码行数:8,代码来源:build.py

示例13: ConanMultiPackager

# 需要导入模块: from conan.packager import ConanMultiPackager [as 别名]
# 或者: from conan.packager.ConanMultiPackager import add_common_builds [as 别名]
from conan.packager import ConanMultiPackager
import platform

if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(pure_c=True, shared_option_name="libcurl:shared")
    accepted_builds = []
    if platform.system() == "Linux": 
        for build in builder.builds:
            if build[0]["arch"] != "x86":
                accepted_builds.append([build[0], build[1]])
        builder.builds = accepted_builds

    if platform.system() == "Darwin": 
        for build in builder.builds:
            if not build[0]["arch"] == "x86":
                accepted_builds.append([build[0], build[1]])

        builder.builds = accepted_builds
        for compiler in builder.apple_clang_versions:
            builder.add({"compiler": "apple-clang", "compiler.version": compiler, 
                         "arch": "x86_64", "build_type": "Release"}, {"libcurl:shared": False,
                                                                  "libcurl:darwin_ssl": False,
                                                                  "libcurl:custom_cacert": True})
            builder.add({"compiler": "apple-clang", "compiler.version": compiler, 
                         "arch": "x86_64", "build_type": "Debug"}, {"libcurl:shared": False,
                                                                  "libcurl:darwin_ssl": False,
                                                           "libcurl:custom_cacert": True})
    builder.run()
开发者ID:lasote,项目名称:conan-libcurl,代码行数:31,代码来源:build.py

示例14: ConanMultiPackager

# 需要导入模块: from conan.packager import ConanMultiPackager [as 别名]
# 或者: from conan.packager.ConanMultiPackager import add_common_builds [as 别名]
from conan.packager import ConanMultiPackager


if __name__ == "__main__":
    builder = ConanMultiPackager(username="memsharded", channel="testing")
    builder.add_common_builds(shared_option_name="Protobuf:shared")
    filtered_builds = []
    for settings, options in builder.builds:
        if settings["compiler.version"] in (12, 14):
             filtered_builds.append([settings, options])
    builder.builds = filtered_builds
    builder.run()
开发者ID:dwerner,项目名称:conan-protobuf,代码行数:14,代码来源:build_ci.py

示例15: ConanMultiPackager

# 需要导入模块: from conan.packager import ConanMultiPackager [as 别名]
# 或者: from conan.packager.ConanMultiPackager import add_common_builds [as 别名]
from conan.packager import ConanMultiPackager
import platform

if __name__ == "__main__":
    builder = ConanMultiPackager(visual_runtimes=["MT", "MD"])

    if platform.system() == "Windows":
        builder.add_common_builds(visual_versions=[12])

    if platform.system() == "Linux":
        for ver in ["4.8", "4.9", "5.2", "5.3"]:
            for arch in ["x86", "x86_64"]:
                for libcxx in ["libstdc++", "libstdc++11"]:
                    builder.add({"arch": arch,
                                 "build_type": "Release",
                                 "compiler": "gcc",
                                 "compiler.version": ver,
                                 "compiler.libcxx": libcxx},
                                 {})

    if platform.system() == "Darwin":
        for compiler_version in ["5.0", "5.1", "6.0", "6.1", "7.0"]:
            for arch in ["x86", "x86_64"]:
                for build_type in ["Release"]:
                    builder.add({"arch": arch,
                                 "build_type": build_type,
                                 "compiler": "apple-clang",
                                 "compiler.version": compiler_version}, {})
    builder.run()
开发者ID:polysquare,项目名称:clang-conan,代码行数:31,代码来源:build.py


注:本文中的conan.packager.ConanMultiPackager.add_common_builds方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。