Skip to content

Commit

Permalink
(#18315) ccache: add version 4.8.2
Browse files Browse the repository at this point in the history
* ccache: add version 4.8.2

Also update the dependencies

* ccache: never download ZSTD from the internet

* ccache: set find_mode for zstd
  • Loading branch information
Cogitri authored Jul 20, 2023
1 parent 26ef075 commit d7da970
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
7 changes: 7 additions & 0 deletions recipes/ccache/all/conandata.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
sources:
"4.8.2":
url: "https://github.com/ccache/ccache/releases/download/v4.8.2/ccache-4.8.2.tar.xz"
sha256: "3d3fb3f888a5b16c4fa7ee5214cca76348afd6130e8443de5f6f2424f2076a49"
"4.8.1":
url: "https://github.com/ccache/ccache/releases/download/v4.8.1/ccache-4.8.1.tar.xz"
sha256: "87959b6819530b3dcaeb39992f585b9fc2c7120302809741378097774919fb6f"
Expand All @@ -9,6 +12,10 @@ sources:
url: "https://github.com/ccache/ccache/releases/download/v4.7.4/ccache-4.7.4.tar.xz"
sha256: "df0c64d15d3efaf0b4f6837dd6b1467e40eeaaa807db25ce79c3a08a46a84e36"
patches:
"4.8.2":
- patch_file: "patches/4.8-cmake-msvc-runtime.patch"
patch_description: "fixup MSVC runtime"
patch_type: "conan"
"4.8.1":
- patch_file: "patches/4.8-cmake-msvc-runtime.patch"
patch_description: "fixup MSVC runtime"
Expand Down
6 changes: 4 additions & 2 deletions recipes/ccache/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def layout(self):
cmake_layout(self, src_folder="src")

def requirements(self):
self.requires("zstd/1.5.2")
self.requires("zstd/1.5.5")
if self.options.redis_storage_backend:
self.requires("hiredis/1.1.0")

Expand All @@ -67,7 +67,7 @@ def validate(self):
raise ConanInvalidConfiguration(f"{self.ref} requires C++ filesystem library, that is not supported by Clang 11 + libstdc++.")

def build_requirements(self):
self.tool_requires("cmake/3.25.3")
self.tool_requires("cmake/[>=3.15 <4]")

def source(self):
get(self, **self.conan_data["sources"][self.version],
Expand All @@ -77,6 +77,7 @@ def generate(self):
tc = CMakeToolchain(self)
tc.variables["REDIS_STORAGE_BACKEND"] = self.options.redis_storage_backend
tc.variables["HIREDIS_FROM_INTERNET"] = False
tc.variables["ZSTD_FROM_INTERNET"] = False
tc.variables["ENABLE_DOCUMENTATION"] = False
tc.variables["ENABLE_TESTING"] = False
tc.generate()
Expand All @@ -85,6 +86,7 @@ def generate(self):
deps.set_property("hiredis", "cmake_target_name", "HIREDIS::HIREDIS")
deps.set_property("hiredis", "cmake_find_mode", "module")
deps.set_property("zstd", "cmake_target_name", "ZSTD::ZSTD")
deps.set_property("zstd", "cmake_find_mode", "module")
deps.generate()

def build(self):
Expand Down
2 changes: 2 additions & 0 deletions recipes/ccache/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
versions:
"4.8.2":
folder: all
"4.8.1":
folder: all
"4.8":
Expand Down

0 comments on commit d7da970

Please sign in to comment.