本文整理汇总了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()
示例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()
示例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