當前位置: 首頁>>代碼示例>>Python>>正文


Python ConanMultiPackager.builds方法代碼示例

本文整理匯總了Python中conan.packager.ConanMultiPackager.builds方法的典型用法代碼示例。如果您正苦於以下問題:Python ConanMultiPackager.builds方法的具體用法?Python ConanMultiPackager.builds怎麽用?Python ConanMultiPackager.builds使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在conan.packager.ConanMultiPackager的用法示例。


在下文中一共展示了ConanMultiPackager.builds方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: main

# 需要導入模塊: from conan.packager import ConanMultiPackager [as 別名]
# 或者: from conan.packager.ConanMultiPackager import 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: efence_options

# 需要導入模塊: from conan.packager import ConanMultiPackager [as 別名]
# 或者: from conan.packager.ConanMultiPackager import 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

示例3: ConanMultiPackager

# 需要導入模塊: from conan.packager import ConanMultiPackager [as 別名]
# 或者: from conan.packager.ConanMultiPackager import 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

示例4: ConanMultiPackager

# 需要導入模塊: from conan.packager import ConanMultiPackager [as 別名]
# 或者: from conan.packager.ConanMultiPackager import builds [as 別名]
from conan.packager import ConanMultiPackager
import platform

if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(shared_option_name="imageflow:shared", pure_c=True)
    x64_builds = []
    for build in builder.builds:
        if build[0]["arch"] != "x86":
            x64_builds.append([build[0], build[1]])
        
    builder.builds = x64_builds
    builder.run()

開發者ID:SamuelEnglard,項目名稱:imageflow,代碼行數:15,代碼來源:build.py

示例5: ConanMultiPackager

# 需要導入模塊: from conan.packager import ConanMultiPackager [as 別名]
# 或者: from conan.packager.ConanMultiPackager import 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

示例6: ConanMultiPackager

# 需要導入模塊: from conan.packager import ConanMultiPackager [as 別名]
# 或者: from conan.packager.ConanMultiPackager import builds [as 別名]
from conan.packager import ConanMultiPackager
import platform

if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(pure_c=True)
    x86_64_builds = []
    for build in builder.builds: # Problems installing native GL libs for x86
        if not build[0]["arch"] == "x86":
            x86_64_builds.append([build[0], build[1]])
    builder.builds = x86_64_builds
    builder.run()
開發者ID:lasote,項目名稱:conan-sdl2_ttf,代碼行數:14,代碼來源:build.py

示例7: ConanMultiPackager

# 需要導入模塊: from conan.packager import ConanMultiPackager [as 別名]
# 或者: from conan.packager.ConanMultiPackager import builds [as 別名]
from conan.packager import ConanMultiPackager
import platform

if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(shared_option_name="SDL2:shared", pure_c=True)
    if platform.system() == "Darwin":
        # Remove static builds in OSx
        static_builds = []
        for build in builder.builds:
            if build[1]["SDL2:shared"]:
                static_builds.append([build[0], {}])
            
        builder.builds = static_builds   
    builder.run()
開發者ID:smspillaz,項目名稱:conan-sdl2,代碼行數:17,代碼來源:build.py

示例8: ConanMultiPackager

# 需要導入模塊: from conan.packager import ConanMultiPackager [as 別名]
# 或者: from conan.packager.ConanMultiPackager import builds [as 別名]
from conan.packager import ConanMultiPackager


if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(shared_option_name="fmt:shared")
    
    builds = []
    for settings, options, env_vars, build_requires in builder.builds:
        if settings["compiler"] == "Visual Studio" and settings["compiler.version"] == "10" and settings["arch"] == "x86_64":
            continue
        builds.append([settings, options, env_vars, build_requires])
    builder.builds = builds
    builder.run()
開發者ID:memsharded,項目名稱:conan-fmt,代碼行數:16,代碼來源:build.py

示例9: ConanMultiPackager

# 需要導入模塊: from conan.packager import ConanMultiPackager [as 別名]
# 或者: from conan.packager.ConanMultiPackager import 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


注:本文中的conan.packager.ConanMultiPackager.builds方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。