build(conan): 👷 update version and dependencies (#5776)

This commit is contained in:
nerix
2025-01-11 12:09:12 +01:00
committed by GitHub
parent 2f2fc36791
commit 3ec9b93684
4 changed files with 19 additions and 10 deletions
+16 -4
View File
@@ -1,11 +1,12 @@
from conan import ConanFile
from conan.tools.files import copy
from conan.tools.cmake import CMakeToolchain
from os import path
class Chatterino(ConanFile):
name = "Chatterino"
requires = "boost/1.83.0"
requires = "boost/1.86.0"
settings = "os", "compiler", "build_type", "arch"
default_options = {
"with_benchmark": False,
@@ -18,18 +19,29 @@ class Chatterino(ConanFile):
# Qt is built with OpenSSL 3 from version 6.5.0 onwards
"with_openssl3": [True, False],
}
generators = "CMakeDeps", "CMakeToolchain"
generators = "CMakeDeps"
def requirements(self):
if self.options.get_safe("with_benchmark", False):
self.requires("benchmark/1.7.1")
self.requires("benchmark/1.9.0")
if self.options.get_safe("with_openssl3", False):
self.requires("openssl/3.2.0")
self.requires("openssl/3.3.2")
else:
self.requires("openssl/1.1.1t")
def generate(self):
tc = CMakeToolchain(self)
tc.blocks.remove("compilers")
tc.blocks.remove("cmake_flags_init")
tc.blocks.remove("cppstd")
tc.blocks.remove("libcxx")
tc.blocks.remove("generic_system")
tc.blocks.remove("user_toolchain")
tc.blocks.remove("output_dirs")
tc.blocks.remove("apple_system")
tc.generate()
def copy_bin(dep, selector, subdir):
src = path.realpath(dep.cpp_info.bindirs[0])
dst = path.realpath(path.join(self.build_folder, subdir))