Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion conan_profiles/base/apple
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ onnxruntime/*:compiler.cppstd=17
tools.apple:enable_bitcode=False

[options]
qt/*:openssl=False
libcurl/*:with_apple_sectrust=True
23 changes: 22 additions & 1 deletion conan_profiles/base/common
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,27 @@ ffmpeg/*:enable_protocols={{ ffProtocols|join(',') }}
# ffmpeg/*:with_programs=True
# ffmpeg/*:with_sdl=True

# libcurl
# used only for HTTPS downloads in launcher
# CA certificates are provided at runtime by VCMI, path detected on build machine would be wrong on target system
Comment thread
kambala-decapitator marked this conversation as resolved.
Resolved
libcurl/*:with_ca_bundle=False
libcurl/*:with_ca_path=False
libcurl/*:with_cookies=False
libcurl/*:with_dict=False
libcurl/*:with_file=False
libcurl/*:with_form_api=False
libcurl/*:with_ftp=False
libcurl/*:with_gopher=False
libcurl/*:with_imap=False
libcurl/*:with_mqtt=False
libcurl/*:with_pop3=False
libcurl/*:with_rtsp=False
libcurl/*:with_smtp=False
libcurl/*:with_telnet=False
libcurl/*:with_tftp=False
libcurl/*:with_unix_sockets=False
libcurl/*:with_websockets=False

# Lua
lua/*:compile_as_cpp=True

Expand Down Expand Up @@ -193,7 +214,7 @@ onetbb/*:tbbproxy=False
] %}
qt/*:config={{ qtConfig|join(' ') }}
qt/*:essential_modules=False
qt/*:openssl=True
qt/*:openssl=False
qt/*:qtsvg=True
qt/*:qttools=True
qt/*:with_freetype=False
Expand Down
1 change: 1 addition & 0 deletions conan_profiles/base/msvc
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ os=Windows

[options]
ffmpeg/*:shared=True
libcurl/*:with_ssl=schannel
8 changes: 2 additions & 6 deletions conanfile.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from conan import ConanFile
from conan.errors import ConanInvalidConfiguration
from conan.tools.apple import is_apple_os
from conan.tools.microsoft import is_msvc

from os import getenv
Expand All @@ -25,6 +24,7 @@ class VCMI(ConanFile):
"sdl_ttf/[^3.2.2]",
]
_launcherRequires = [
"libcurl/[^8.17]", # 8.17 added Apple SecTrust support
"xz_utils/[^5.2.5]", # innoextract
]
requires = _libRequires + _clientRequires + _launcherRequires
Expand Down Expand Up @@ -66,7 +66,7 @@ def config_options(self):
self.options["sdl_mixer"].shared = isSdlShared
self.options["sdl_ttf"].shared = isSdlShared

self.options["qt"].openssl = not is_apple_os(self)
self.options["qt"].openssl = False
self.options["qt"].qtsvg = True
if self.settings.os == "Android":
self.options["qt"].android_sdk = getenv("ANDROID_HOME")
Expand Down Expand Up @@ -136,7 +136,3 @@ def requirements(self):
self.requires("qt/[~5.15.14]") # earlier versions have serious bugs
else:
self.requires("qt/[~5.15.2]")

def validate(self):
if not is_apple_os(self) and self.dependencies["qt"].options.openssl != True:
self.output.warning("qt:openssl option for non-Apple OS should be set to True, otherwise mods can't be downloaded")
Loading