コード例 #1
0
ファイル: build.py プロジェクト: osechet/conan-qt
def main():
    """
    Main function.
    """

    builder = ConanMultiPackager(username="******", 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
0
ファイル: build.py プロジェクト: TyRoXx/conan-sqlite3
    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
0
ファイル: build.py プロジェクト: lasote/conan-jansson
from conan.packager import ConanMultiPackager


if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(shared_option_name="jansson:shared", pure_c=True)
    builder.run()

コード例 #4
0
from conan.packager import ConanMultiPackager

if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(shared_option_name="BeagleBoneBlackGPIO:shared", pure_c=False)
    builder.run()
コード例 #5
0
ファイル: build.py プロジェクト: nanopb/nanopb
from conan.packager import ConanMultiPackager

if __name__ == "__main__":
    builder = ConanMultiPackager(build_policy="outdated")
    builder.add_common_builds(shared_option_name=None)
    builder.run()
コード例 #6
0
ファイル: build.py プロジェクト: polysquare/compiler-rt-conan
from conan.packager import ConanMultiPackager
import platform

if __name__ == "__main__":
    builder = ConanMultiPackager(visual_runtimes=["MT", "MD"])
    builder.add_common_builds()
    builder.run()
コード例 #7
0
ファイル: build.py プロジェクト: lasote/conan-libcurl
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()
コード例 #8
0
from conan.packager import ConanMultiPackager

if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(shared_option_name="macchina.io:shared")
    builder.run()
コード例 #9
0
ファイル: build.py プロジェクト: odant/conan-cityhash
# Build Conan package
# Dmitriy Vetutnev, ODANT, 2020

from conan.packager import ConanMultiPackager
import os

env_pure_c = os.getenv("CONAN_PURE_C", True)
pure_c = True if str(env_pure_c).lower() != "false" else False

if __name__ == "__main__":
    builder = ConanMultiPackager(exclude_vcvars_precommand=True)
    builder.add_common_builds(pure_c=pure_c)
    builder.remove_build_if(
        lambda build: build.settings.get("compiler.libcxx") == "libstdc++")
    builder.run()
コード例 #10
0
ファイル: build.py プロジェクト: HamzaZFrog/hello
from conan.packager import ConanMultiPackager

if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(shared_option_name="Hello:shared")
    builder.run()
コード例 #11
0
ファイル: build.py プロジェクト: lasote/conan-c-capnproto
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()
コード例 #12
0
ファイル: build.py プロジェクト: memsharded/conan-zmq
from conan.packager import ConanMultiPackager


if __name__ == "__main__":
    builder = ConanMultiPackager(username="******", channel="testing")
    builder.add_common_builds(shared_option_name="libzmq:shared")
    builder.run()
コード例 #13
0
ファイル: build.py プロジェクト: sixten-hilborn/luabind_cpp11
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()

コード例 #14
0
ファイル: build.py プロジェクト: lasote/conan-zlib-ng
from conan.packager import ConanMultiPackager


if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(shared_option_name="zlib-ng:shared", pure_c=True)
    builder.run()
コード例 #15
0
from conan.packager import ConanMultiPackager

if __name__ == "__main__":
    builder = ConanMultiPackager(username="******", channel="testing")
    builder.add_common_builds()
    builder.run()
コード例 #16
0
def get_env_vars():
    return get_ci_vars() if is_ci_running() else get_default_vars()


def get_os():
    return platform.system().replace("Darwin", "Macos")


if __name__ == "__main__":
    name = get_name_from_recipe()
    username, channel, version = get_env_vars()
    reference = "{0}/{1}".format(name, version)
    upload = "https://api.bintray.com/conan/{0}/public-conan".format(username)

    builder = ConanMultiPackager(
        username=username,
        channel=channel,
        reference=reference,
        upload=upload,
        remotes=
        upload,  # while redundant, this moves bincrafters remote to position 0
        upload_only_when_stable=True,
        stable_branch_pattern="stable/*")

    kwargs = {}
    if not os.environ.get('CONAN_VISUAL_VERSIONS'):
        kwargs['shared_option_name'] = name + ":shared"

    builder.add_common_builds(**kwargs)
    builder.run()
コード例 #17
0
from conan.packager import ConanMultiPackager
import copy
import os
import platform

if __name__ == "__main__":
    builder = ConanMultiPackager()

    if os.getenv("HEADER_ONLY"):

        builder.add({}, {"boost:header_only": True})
    else:
        builder.add_common_builds(shared_option_name="boost:shared",
                                  pure_c=False)

        if platform.system() == "Windows":
            filtered_builds = []
            for settings, options, env_vars, build_requires in builder.builds:
                # MinGW shared with linker errors. I don't have a clue
                if settings["compiler"] == "gcc" and options[
                        "boost:shared"] is True:
                    continue
                filtered_builds.append(
                    [settings, options, env_vars, build_requires])
            builder.builds = filtered_builds

        if platform.system() == "Linux":
            filtered_builds = []
            for settings, options, env_vars, build_requires in builder.builds:
                filtered_builds.append([settings, options])
                new_options = copy.copy(options)
コード例 #18
0
ファイル: build.py プロジェクト: lasote/conan-capnproto
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()
コード例 #19
0
ファイル: build.py プロジェクト: viduranga/conan
from conan.packager import ConanMultiPackager


if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(pure_c=True,
                              shared_option_name="c-ares:shared")
    builder.run()
コード例 #20
0
ファイル: conan-build.py プロジェクト: cyrusimap/cyrus-sasl
from conan.packager import ConanMultiPackager


if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(shared_option_name="cyrus-sasl:shared")
    builder.run()
コード例 #21
0
from conan.packager import ConanMultiPackager

if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(shared_option_name="cyrus-sasl:shared")
    builder.run()
コード例 #22
0
from conan.packager import ConanMultiPackager


if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(pure_c=True)
    builder.run()
コード例 #23
0
ファイル: build.py プロジェクト: theirix/conan-http-parser
from conan.packager import ConanMultiPackager

if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(shared_option_name="http-parser:shared", pure_c=True)
    builder.run()
コード例 #24
0
ファイル: build.py プロジェクト: jenshnielsen/conan-poco
from conan.packager import ConanMultiPackager


if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(shared_option_name="Poco:shared", pure_c=False)
    builder.run()
コード例 #25
0
from conan.packager import ConanMultiPackager

if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(shared_option_name="zookeeper:shared",
                              pure_c=False)
    builder.run()
コード例 #26
0
ファイル: build.py プロジェクト: lasote/conan-electric-fence
from conan.packager import ConanMultiPackager


if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(shared_option_name="electric-fence:shared", pure_c=True)
    builder.run()

コード例 #27
0
from conan.packager import ConanMultiPackager

if __name__ == "__main__":
    builder = ConanMultiPackager(username="******")
    builder.add_common_builds(pure_c=False)
    builder.run()
コード例 #28
0
ファイル: build.py プロジェクト: ViaviSolutions/conan-openssl
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()
コード例 #29
0
ファイル: build.py プロジェクト: CAMOBAP/conan-jasper
from conan.packager import ConanMultiPackager


if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(shared_option_name="jasper:shared")
    builder.run()
コード例 #30
0
ファイル: build.py プロジェクト: jonico-sandbox/libzengithub
from conan.packager import ConanMultiPackager
import platform


if __name__ == "__main__":
    builder = ConanMultiPackager(remotes=["https://api.bintray.com/conan/bincrafters/public-conan"])
    builder.add_common_builds(pure_c=True, shared_option_name="ZenGitHub:shared")
    builder.run()
コード例 #31
0
from conan.packager import ConanMultiPackager
from conans.tools import os_info
import platform

if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(shared_option_name="opencv:shared", pure_c=True)
    # @todo macos static builds need opencl/lapack linking to make test_package work
    builder.builds = [[settings, options, env_vars, build_requires, reference]
                      for settings, options, env_vars, build_requires,
                      reference in builder.items
                      if (not ((os_info.is_macos or os_info.is_windows)
                               and options['opencv:shared'] == False))]
    builder.run()
コード例 #32
0
ファイル: build.py プロジェクト: hoxnox/conan-mathgl
from conan.packager import ConanMultiPackager

if __name__ == "__main__":
    builder = ConanMultiPackager(username="******", channel="stable")
    builder.add_common_builds(pure_c=True)
    builder.run()
コード例 #33
0
ファイル: build.py プロジェクト: viduranga/conan
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
from bincrafters import build_template_installer
from bincrafters import build_shared
from bincrafters import build_template_default

from conan.packager import ConanMultiPackager

if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(shared_option_name="jmalloc:shared")
    builder.run()
コード例 #34
0
from conan.packager import ConanMultiPackager

if __name__ == "__main__":
    builder = ConanMultiPackager(visual_runtimes=["MD", "MDd"],
                                 archs=['x86_64'])
    builder.add_common_builds(shared_option_name=False, pure_c=False)
    builder.run()
コード例 #35
0
ファイル: build.py プロジェクト: uilianries/conan-cpprestsdk
"""This script build Conan.io package to multiple platforms."""
from conan.packager import ConanMultiPackager
import platform

if __name__ == "__main__":
    builder = ConanMultiPackager(args="--build missing")
    builder.add_common_builds(shared_option_name="cpprestsdk:shared",
                              pure_c=False)
    filtered_builds = []
    for settings, options, env_vars, build_requires in builder.builds:
        # XXX (uilian.ries): MTd could not link
        if settings["compiler"] == "Visual Studio" and settings[
                "compiler.runtime"] == "MTd":
            continue
        # XXX (uilian.ries): libstdc++ could not link on Linux
        if settings["compiler"] == "clang" and platform.system() == "Linux":
            settings["compiler.libcxx"] = "libc++"
        filtered_builds.append([settings, options, env_vars, build_requires])
    builder.builds = filtered_builds
    builder.run()
コード例 #36
0
from conan.packager import ConanMultiPackager

if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(shared_option_name="jsoncpp:shared", pure_c=False)
    for settings, options in builder.builds:
        if settings["arch"] == "x86":
            settings["cmake_installer:arch"] = "x86_64"
    builder.run()
コード例 #37
0
from conan.packager import ConanMultiPackager


if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(shared_option_name="fontconfig:shared", pure_c=True)
    builder.run()
コード例 #38
0
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()
コード例 #39
0
ファイル: build.py プロジェクト: GavinNL/conan-cci
from conan.packager import ConanMultiPackager

if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(shared_option_name="ilmbase:shared")
    builder.run()
コード例 #40
0
ファイル: build.py プロジェクト: WimK/conan-libxml2
from conan.packager import ConanMultiPackager


if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(shared_option_name="libxml2:shared", pure_c=True)
    builder.run()
コード例 #41
0
from conan.packager import ConanMultiPackager

if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(shared_option_name="pistache:shared")
    builder.run()
コード例 #42
0
ファイル: build.py プロジェクト: imazen/conan-libjpeg-turbo
from conan.packager import ConanMultiPackager


if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(shared_option_name="libjpeg-turbo:shared", pure_c=True)
    builder.run()
コード例 #43
0
import os
from conan.packager import ConanMultiPackager
from conanfile import QuerysetCPP

username = os.getenv("CONAN_USERNAME", "jgsogo")
reference = os.getenv("CONAN_REFERENCE",
                      "{}/{}".format(QuerysetCPP.name, QuerysetCPP.version))

if __name__ == "__main__":
    builder = ConanMultiPackager(
        username=username,
        reference=reference,
        args="--scope queryset-cpp:BUILD_TEST=1 --build=missing",
        stable_branch_pattern="master")
    builder.add_common_builds(shared_option_name="queryset-cpp:shared")
    filtered_builds = []
    for settings, options, env_vars, build_requires in builder.builds:
        if settings["arch"] == "x86_64" and settings["build_type"] == "Release":
            filtered_builds.append(
                [settings, options, env_vars, build_requires])
    builder.builds = filtered_builds

    print("{} builds ahead!".format(len(builder.builds)))
    builder.run()
コード例 #44
0
ファイル: build.py プロジェクト: SamuelEnglard/imageflow
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()

コード例 #45
0
from conan.packager import ConanMultiPackager

if __name__ == "__main__":
    builder = ConanMultiPackager(
        username="******",
        channel="testing",
        upload="https://api.bintray.com/conan/pix4d/conan")
    builder.add_common_builds(shared_option_name="Expat:shared")
    builder.run()
コード例 #46
0
ファイル: build.py プロジェクト: lasote/conan-opencv
from conan.packager import ConanMultiPackager


if __name__ == "__main__":
    builder = ConanMultiPackager(username="******", channel="testing")
    builder.add_common_builds(shared_option_name="ZMQ:shared")
    builder.run()
コード例 #47
0
import os
from conan.packager import ConanMultiPackager

if __name__ == "__main__":
    builder = ConanMultiPackager(username="******", channel="testing")
    builder.password = os.getenv("CONAN_PASSWORD")
    builder.add_common_builds(shared_option_name="conan_test:shared")
    builder.run()
コード例 #48
0
ファイル: build_ci.py プロジェクト: dwerner/conan-protobuf
from conan.packager import ConanMultiPackager


if __name__ == "__main__":
    builder = ConanMultiPackager(username="******", 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()
コード例 #49
0
from conan.packager import ConanMultiPackager

if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(shared_option_name="openexr:shared")
    builder.run()
コード例 #50
0
ファイル: build.py プロジェクト: polysquare/clang-conan
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()
コード例 #51
0
ファイル: build.py プロジェクト: pbtrung/conan-libcurl
from conan.packager import ConanMultiPackager

if __name__ == "__main__":
    builder = ConanMultiPackager(args="--build missing")
    builder.add_common_builds(pure_c=True, shared_option_name="libcurl:shared")
    builder.run()
コード例 #52
0
ファイル: build.py プロジェクト: cyrusimap/cyrus-sasl
import os

from conan.packager import ConanMultiPackager
from conans import tools

if __name__ == "__main__":
    runtimes = ["MD", "MDd"]
    for subdir in ["sasl2", "sasldb", "gssapiv2"]:
        ref = os.environ.get("CONAN_REFERENCE", "")
        if ref:
            name, ver = ref.split("/", 1)
            os.environ["CONAN_REFERENCE"] = "cyrus-sasl-" + subdir + "/" + ver
        with tools.chdir(os.path.join("win32", "conan", subdir)):
            builder = ConanMultiPackager(visual_runtimes=runtimes)
            builder.add_common_builds(shared_option_name=False, pure_c=True)
            builder.run()
コード例 #53
0
ファイル: build.py プロジェクト: sixten-hilborn/luabind_cpp11
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()
コード例 #54
0
ファイル: build.py プロジェクト: memsharded/conan-freetype
from conan.packager import ConanMultiPackager
import platform

if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(shared_option_name="freetype:shared", pure_c=True) 
    builder.run()
コード例 #55
0
from conan.packager import ConanMultiPackager

if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(shared_option_name="libssh2:shared", pure_c=True)
    builder.run()
コード例 #56
0
ファイル: build.py プロジェクト: ckohnert/conan_bgfx
from conan.packager import ConanMultiPackager

if __name__ == "__main__":
	builder = ConanMultiPackager(username="******")
	builder.add_common_builds(pure_c=False)
	builder.run()
コード例 #57
0
ファイル: build.py プロジェクト: WhoBrokeTheBuild/conan-icu
    user_remote = "https://api.bintray.com/conan/{0}/public-conan".format(
        username)
    bincrafters_remote = 'https://api.bintray.com/conan/bincrafters/public-conan'
    remotes = [user_remote, bincrafters_remote]

    # If the user supplied a remote manually we give him priority
    # e.g. maybe he is trying to override user_remote or the bincrafters_remote repo.
    remote_env = split_colon_env("CONAN_REMOTES")
    if remote_env:
        remotes = remote_env + remotes
    return remotes


if __name__ == "__main__":
    name = get_name_from_recipe()
    username, channel, version = get_env_vars()
    reference = "{0}/{1}".format(name, version)
    upload = "https://api.bintray.com/conan/{0}/public-conan".format(username)

    builder = ConanMultiPackager(username=username,
                                 channel=channel,
                                 reference=reference,
                                 build_types=get_build_types(),
                                 upload=upload,
                                 remotes=get_remotes(),
                                 upload_only_when_stable=True,
                                 stable_branch_pattern="stable/*")

    builder.add_common_builds(shared_option_name=name + ":shared")
    builder.run()
コード例 #58
0
ファイル: build.py プロジェクト: lasote/conan-littlecms
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()
コード例 #59
0
ファイル: build.py プロジェクト: imazen/conan-giflib
from conan.packager import ConanMultiPackager
import platform

if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(shared_option_name="giflib:shared", pure_c=True)
    if platform.system() == "Windows": # Library not prepared to create a .lib to link with (only dll)
        # Remove shared builds in Windows
        static_builds = []
        for build in builder.builds:
            if not build[1]["giflib:shared"]:
                static_builds.append([build[0], {}])
            
        builder.builds = static_builds
    builder.run()