Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

Commit

Permalink
Testing/5.8.0 (#27)
Browse files Browse the repository at this point in the history
* Add openssl option (#26)
* Ignore MT runtime to make appveyor builds faster
  • Loading branch information
osechet authored Jul 4, 2017
1 parent 46bcbad commit b55d73b
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 23 deletions.
24 changes: 4 additions & 20 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ environment:
CONAN_CURRENT_PAGE: 1
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
CONAN_VISUAL_VERSIONS: 12
CONAN_TOTAL_PAGES: 4
CONAN_TOTAL_PAGES: 2
CONAN_CURRENT_PAGE: 1

- MINGW_CONFIGURATIONS: "5.4@x86_64@seh@posix"
Expand All @@ -25,32 +25,16 @@ environment:

- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
CONAN_VISUAL_VERSIONS: 12
CONAN_TOTAL_PAGES: 4
CONAN_TOTAL_PAGES: 2
CONAN_CURRENT_PAGE: 2
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
CONAN_VISUAL_VERSIONS: 12
CONAN_TOTAL_PAGES: 4
CONAN_CURRENT_PAGE: 3
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
CONAN_VISUAL_VERSIONS: 12
CONAN_TOTAL_PAGES: 4
CONAN_CURRENT_PAGE: 4
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
CONAN_VISUAL_VERSIONS: 14
CONAN_TOTAL_PAGES: 4
CONAN_TOTAL_PAGES: 2
CONAN_CURRENT_PAGE: 1
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
CONAN_VISUAL_VERSIONS: 14
CONAN_TOTAL_PAGES: 4
CONAN_TOTAL_PAGES: 2
CONAN_CURRENT_PAGE: 2
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
CONAN_VISUAL_VERSIONS: 14
CONAN_TOTAL_PAGES: 4
CONAN_CURRENT_PAGE: 3
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
CONAN_VISUAL_VERSIONS: 14
CONAN_TOTAL_PAGES: 4
CONAN_CURRENT_PAGE: 4

install:
- set PATH=%PATH%;%PYTHON%/Scripts/
Expand Down
4 changes: 4 additions & 0 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ def main():
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

Expand Down
25 changes: 22 additions & 3 deletions conanfile.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

import os
from distutils.spawn import find_executable
from conans import AutoToolsBuildEnvironment, ConanFile, tools, VisualStudioBuildEnvironment
from conans.tools import cpu_count, os_info, SystemPackageTool
from distutils.spawn import find_executable

def which(program):
"""
Expand Down Expand Up @@ -48,9 +48,10 @@ class QtConan(ConanFile):
"tools": [True, False],
"webengine": [True, False],
"websockets": [True, False],
"xmlpatterns": [True, False]
"xmlpatterns": [True, False],
"openssl": ["no", "yes", "linked"]
}
default_options = "shared=True", "opengl=desktop", "canvas3d=False", "gamepad=False", "graphicaleffects=False", "imageformats=False", "location=False", "serialport=False", "svg=False", "tools=False", "webengine=False", "websockets=False", "xmlpatterns=False"
default_options = "shared=True", "opengl=desktop", "canvas3d=False", "gamepad=False", "graphicaleffects=False", "imageformats=False", "location=False", "serialport=False", "svg=False", "tools=False", "webengine=False", "websockets=False", "xmlpatterns=False", "openssl=no"
url = "http://github.com/osechet/conan-qt"
license = "http://doc.qt.io/qt-5/lgpl.html"
short_paths = True
Expand Down Expand Up @@ -78,6 +79,18 @@ def system_requirements(self):
installer.update() # Update the package database
installer.install(" ".join(pack_names)) # Install the package

def config_options(self):
if self.settings.os != "Windows":
del self.options.opengl
del self.options.openssl

def requirements(self):
if self.settings.os == "Windows":
if self.options.openssl == "yes":
self.requires("OpenSSL/1.0.2l@conan/stable", dev=True)
elif self.options.openssl == "linked":
self.requires("OpenSSL/1.0.2l@conan/stable")

def source(self):
submodules = ["qtbase"]

Expand Down Expand Up @@ -182,6 +195,12 @@ def _build_msvc(self, args):
vcvars = tools.vcvars_command(self.settings)

args += ["-opengl %s" % self.options.opengl]
if self.options.openssl == "no":
args += ["-no-openssl"]
elif self.options.openssl == "yes":
args += ["-openssl"]
else:
args += ["-openssl-linked"]

self.run("cd %s && %s && set" % (self.source_dir, vcvars))
self.run("cd %s && %s && configure %s"
Expand Down

0 comments on commit b55d73b

Please sign in to comment.