mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
deps(conan): use boost
in header-only mode (#5107)
This commit is contained in:
parent
ef0c86be3d
commit
ba94e3879b
2 changed files with 11 additions and 7 deletions
|
@ -126,6 +126,7 @@
|
||||||
- Dev: Removed duplicate scale in settings dialog. (#5069)
|
- Dev: Removed duplicate scale in settings dialog. (#5069)
|
||||||
- Dev: Fix `NotebookTab` emitting updates for every message. (#5068)
|
- Dev: Fix `NotebookTab` emitting updates for every message. (#5068)
|
||||||
- Dev: Added benchmark for parsing and building recent messages. (#5071)
|
- 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
|
## 2.4.6
|
||||||
|
|
||||||
|
|
17
conanfile.py
17
conanfile.py
|
@ -11,6 +11,7 @@ class Chatterino(ConanFile):
|
||||||
"with_benchmark": False,
|
"with_benchmark": False,
|
||||||
"with_openssl3": False,
|
"with_openssl3": False,
|
||||||
"openssl*:shared": True,
|
"openssl*:shared": True,
|
||||||
|
"boost*:header_only": True,
|
||||||
}
|
}
|
||||||
options = {
|
options = {
|
||||||
"with_benchmark": [True, False],
|
"with_benchmark": [True, False],
|
||||||
|
@ -29,13 +30,15 @@ class Chatterino(ConanFile):
|
||||||
self.requires("openssl/1.1.1t")
|
self.requires("openssl/1.1.1t")
|
||||||
|
|
||||||
def generate(self):
|
def generate(self):
|
||||||
copy_bin = lambda dep, selector, subdir: copy(
|
def copy_bin(dep, selector, subdir):
|
||||||
self,
|
src = path.realpath(dep.cpp_info.bindirs[0])
|
||||||
selector,
|
dst = path.realpath(path.join(self.build_folder, subdir))
|
||||||
dep.cpp_info.bindirs[0],
|
|
||||||
path.join(self.build_folder, subdir),
|
if src == dst:
|
||||||
keep_path=False,
|
return
|
||||||
)
|
|
||||||
|
copy(self, selector, src, dst, keep_path=False)
|
||||||
|
|
||||||
for dep in self.dependencies.values():
|
for dep in self.dependencies.values():
|
||||||
# macOS
|
# macOS
|
||||||
copy_bin(dep, "*.dylib", "bin")
|
copy_bin(dep, "*.dylib", "bin")
|
||||||
|
|
Loading…
Reference in a new issue