Skip to content

Commit

Permalink
Merge pull request #279 from dvzrv/dvzrv/meson_improvements
Browse files Browse the repository at this point in the history
Improvements for meson build system
  • Loading branch information
nhorman authored Nov 13, 2023
2 parents 5635a2e + 1aed521 commit d08fb4d
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions contrib/meson.build
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
project('irqbalance', 'c', version: '1.9.0', default_options: ['warning_level=1'])
project('irqbalance', 'c', version: '1.9.3', default_options: ['warning_level=1'])
cc = meson.get_compiler('c')

glib_dep = dependency('glib-2.0')
m_dep = cc.find_library('m', required: false)
capng_dep = dependency('libcap-ng', required: get_option('capng'))
ncurses_dep = dependency('curses', required: get_option('ui'))
numa_dep = dependency('numa')
systemd_dep = dependency('libsystemd', required: get_option('systemd'))

cdata = configuration_data()
Expand All @@ -27,6 +28,13 @@ if cdata.get('HAVE_IRQBALANCEUI')
dependencies: [glib_dep, ncurses_dep],
install: true,
)

install_man(
'../irqbalance-ui.1',
install_dir: get_option('mandir') + '/man1',
install_mode: 'rw-r--r--',
locale: 'en',
)
endif

executable(
Expand All @@ -40,6 +48,13 @@ executable(
'../numa.c',
'../placement.c',
'../procinterrupts.c',
dependencies: [glib_dep, m_dep, capng_dep, systemd_dep],
dependencies: [glib_dep, m_dep, capng_dep, numa_dep, systemd_dep],
install: true,
)

install_man(
'../irqbalance.1',
install_dir: get_option('mandir') + '/man1',
install_mode: 'rw-r--r--',
locale: 'en',
)

0 comments on commit d08fb4d

Please sign in to comment.