]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: add irq utils
authorKarel Zak <kzak@redhat.com>
Thu, 25 Mar 2021 11:12:11 +0000 (12:12 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 25 Mar 2021 11:12:11 +0000 (12:12 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
meson.build
meson_options.txt
sys-utils/meson.build

index bf4886bab6cbc6a1e95394def75363173e2ee999..7c9608d8e5ae9668c5f011f50382008cc615face 100644 (file)
@@ -1681,6 +1681,38 @@ exe = executable(
 exes += exe
 install_man('sys-utils/flock.1')
 
+opt = not get_option('build-lsirq').disabled()
+exe = executable(
+  'lsirq',
+  lsirq_sources,
+  include_directories : includes,
+  link_with : [lib_common,
+               lib_smartcols],
+  install_dir : usrbin_exec_dir,
+  install : opt,
+  build_by_default : opt)
+if opt and not is_disabler(exe)
+  exes += exe
+  install_man('sys-utils/lsirq.1')
+endif
+
+opt = not get_option('build-irqtop').disabled()
+exe = executable(
+  'irqtop',
+  irqtop_sources,
+  include_directories : includes,
+  dependencies : [realtime_libs, curses_libs],
+  link_with : [lib_common,
+               lib_smartcols,
+              lib_tcolors],
+  install_dir : usrbin_exec_dir,
+  install : opt,
+  build_by_default : opt)
+if opt and not is_disabler(exe)
+  exes += exe
+  install_man('sys-utils/irqtop.1')
+endif
+
 opt = not get_option('build-ipcs').disabled()
 exe = executable(
   'lsipc',
index b1650f61d6276489a5527cb8e42e6c0360238a95..7542c38250263cc3a49acc21bd9bb4c722aaf74c 100644 (file)
@@ -100,6 +100,10 @@ option('build-pivot_root', type : 'feature',
        description : 'build pivot_root')
 option('build-lsmem', type : 'feature',
        description : 'build lsmem')
+option('build-lsirq', type : 'feature',
+       description : 'build lsirq')
+option('build-irqtop', type : 'feature',
+       description : 'build irqtop')
 option('build-chmem', type : 'feature',
        description : 'build chmem')
 option('build-ipcrm', type : 'feature',
index 38712c7c7446a4b3bf35c8fa45785136fb9aac69..69df9f9fed37a3f3a8ced881e3f83ec9ea1250ed 100644 (file)
@@ -197,6 +197,19 @@ lsipc_sources = files(
   'ipcutils.h',
 )
 
+lsirq_sources = files(
+  'lsirq.c',
+  'irq-common.c',
+  'irq-common.h',
+)
+
+irqtop_sources = files(
+  'irqtop.c',
+  'irq-common.c',
+  'irq-common.h',
+) + \
+    monotonic_c
+
 hwclock_sources = [
   'sys-utils/hwclock.c',
   'sys-utils/hwclock.h',