[manifest]
name = cachelib
fbsource_path = fbcode/cachelib
shipit_project = cachelib
shipit_fbcode_builder = true

[git]
repo_url = https://github.com/facebook/cachelib.git

[build]
builder = cmake
subdir = cachelib
job_weight_mib = 2048

[dependencies]
zlib
fizz
fmt
folly
fbthrift
googletest
sparsemap
wangle
zstd
mvfst
numa
libaio
magic_enum
xxhash
# cachelib also depends on openssl but since the latter requires a platform-
# specific configuration we rely on the folly manifest to provide this
# dependency to avoid duplication.

[rpms.all(distro=centos_stream,distro_vers=9)]
gcc-toolset-14

[cmake.defines.all(distro=centos_stream,distro_vers=9)]
CMAKE_C_COMPILER=/opt/rh/gcc-toolset-14/root/usr/bin/gcc
CMAKE_CXX_COMPILER=/opt/rh/gcc-toolset-14/root/usr/bin/g++

[shipit.pathmap]
fbcode/cachelib = cachelib
fbcode/cachelib/public_tld = .

[shipit.strip]
^fbcode/cachelib/examples(/|$)
^fbcode/cachelib/facebook(/|$)
^fbcode/cachelib/public_tld/website/docs/facebook(/|$)
^fbcode/cachelib/public_tld/website/node_modules(/|$)
^fbcode/cachelib/public_tld/website/build(/|$)
^fbcode/cachelib/public_tld/website/\.rewrite-lockfile\.fb$
