-
Notifications
You must be signed in to change notification settings - Fork 42
/
meson.build
25 lines (19 loc) · 866 Bytes
/
meson.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
project('slurm', 'c')
conf_data = configuration_data()
conf_data.set('version', '0.4.5-dev')
conf_data.set('install_prefix', get_option('prefix'))
configure_file(input : 'config.h.in',
output : 'config.h',
configuration : conf_data)
# We want ncurses but meson wraps ncurses and curses into the curses dependency
# https://mesonbuild.com/Dependencies.html#curses
# dependency "ncurses" doesn't work on OpenBSD so we use "curses" on all OS
curses_dep = dependency('curses', version: '>=5')
add_global_arguments('-D_HAVE_NCURSES', language: 'c')
# build and install slurm binary
executable('slurm', 'slurm.c', dependencies: curses_dep, install:true )
# install manpage and theme files
install_man('slurm.1')
install_subdir('themes',
install_dir: get_option('datadir') / 'slurm',
strip_directory: true)