deps(conan): use boost in header-only mode (#5107)

This commit is contained in:
nerix 2024-01-19 21:32:34 +01:00 committed by GitHub
parent ef0c86be3d
commit ba94e3879b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 7 deletions

View file

@ -126,6 +126,7 @@
- Dev: Removed duplicate scale in settings dialog. (#5069)
- Dev: Fix `NotebookTab` emitting updates for every message. (#5068)
- Dev: Added benchmark for parsing and building recent messages. (#5071)
- Dev: Boost is depended on as a header-only library when using conan. (#5107)
## 2.4.6

View file

@ -11,6 +11,7 @@ class Chatterino(ConanFile):
"with_benchmark": False,
"with_openssl3": False,
"openssl*:shared": True,
"boost*:header_only": True,
}
options = {
"with_benchmark": [True, False],
@ -29,13 +30,15 @@ class Chatterino(ConanFile):
self.requires("openssl/1.1.1t")
def generate(self):
copy_bin = lambda dep, selector, subdir: copy(
self,
selector,
dep.cpp_info.bindirs[0],
path.join(self.build_folder, subdir),
keep_path=False,
)
def copy_bin(dep, selector, subdir):
src = path.realpath(dep.cpp_info.bindirs[0])
dst = path.realpath(path.join(self.build_folder, subdir))
if src == dst:
return
copy(self, selector, src, dst, keep_path=False)
for dep in self.dependencies.values():
# macOS
copy_bin(dep, "*.dylib", "bin")