Skip to content

Commit

Permalink
p
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerixyz committed Dec 24, 2024
1 parent 5ca8635 commit f423e4c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion conanfile.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from conan import ConanFile
from conan.tools.files import copy
from conan.tools.cmake import CMakeToolchain
from os import path


Expand All @@ -17,7 +18,7 @@ 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):
self.requires("boost/1.86.0")
Expand All @@ -32,6 +33,16 @@ def requirements(self):
self.requires("openssl/3.3.2")

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.generate()

def copy_bin(dep, selector, subdir):
src = path.realpath(dep.cpp_info.bindirs[0])
dst = path.realpath(path.join(self.build_folder, subdir))
Expand Down

0 comments on commit f423e4c

Please sign in to comment.