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