## utils/cache_gc
# SPDX-License-Identifier: GPL-3.0-or-later

cache_gc_src = files([
  'categories.c',
  'db.c',
  'kr_cache_gc.c',
  'main.c',
])
c_src_lint += cache_gc_src

if build_utils
  cache_gc = executable(
    'kres-cache-gc',
    cache_gc_src,
    dependencies: [
      kresconfig_dep,
      contrib_dep,
      libkres_dep,
      libknot,
      libuv,
      lmdb,
    ],
    install: true,
    install_dir: get_option('sbindir'),
    install_rpath: rpath,
  )

integr_tests += [
  ['gc_cache_overflow', meson.current_source_dir() / 'test.integr'],
]

endif
