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


Python ConanMultiPackager.run方法代碼示例

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


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

示例1: main

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


if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(shared_option_name="littlecms:shared", pure_c=True)
    builder.run()
開發者ID:lasote,項目名稱:conan-littlecms,代碼行數:10,代碼來源:build.py

示例3: ConanMultiPackager

# 需要導入模塊: from conan.packager import ConanMultiPackager [as 別名]
# 或者: from conan.packager.ConanMultiPackager import run [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() # Will upload just the recipe
    
開發者ID:memsharded,項目名稱:conan-sdl2,代碼行數:18,代碼來源:build.py


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