當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。