From: Tomas Krizek Date: Mon, 17 Jun 2019 09:51:55 +0000 (+0200) Subject: utils/cache_gc: meson - add sources to c_lint X-Git-Tag: v4.1.0^2~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=143abc9611b79b63d55b6dc01ab8e27ae6b9f2ea;p=thirdparty%2Fknot-resolver.git utils/cache_gc: meson - add sources to c_lint --- diff --git a/utils/cache_gc/meson.build b/utils/cache_gc/meson.build index fb27f585e..a734f9545 100644 --- a/utils/cache_gc/meson.build +++ b/utils/cache_gc/meson.build @@ -6,16 +6,19 @@ cache_gc_src = files([ 'kr_cache_gc.c', 'main.c', ]) +c_src_lint += cache_gc_src -cache_gc = executable( - 'kres_cache_gc', - cache_gc_src, - dependencies: [ - contrib_dep, - libkres_dep, - libknot, - luajit_inc, - ], - install: true, - install_dir: get_option('sbindir'), -) +if build_utils + cache_gc = executable( + 'kres_cache_gc', + cache_gc_src, + dependencies: [ + contrib_dep, + libkres_dep, + libknot, + luajit_inc, + ], + install: true, + install_dir: get_option('sbindir'), + ) +endif diff --git a/utils/meson.build b/utils/meson.build index 74ad5e2dd..fbf8f33c9 100644 --- a/utils/meson.build +++ b/utils/meson.build @@ -1,8 +1,6 @@ # utils -subdir('client') - build_utils = get_option('utils') != 'disabled' -if build_utils - subdir('cache_gc') -endif + +subdir('client') +subdir('cache_gc')