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