aboutsummaryrefslogtreecommitdiff
path: root/src/librc/meson.build
blob: 81c75080e7bc38d6c62bf47ed78738fd9bfb7f25 (plain)
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
26
27
28
29
30
31
32
33
rc_h_conf_data = configuration_data()
if rootprefix == '/'
  rc_h_conf_data.set('PREFIX', '')
  else
  rc_h_conf_data.set('PREFIX', rootprefix)
	endif
rc_h_conf_data.set('LIB', libname)
rc_h_conf_data.set('LIBEXECDIR', rc_libexecdir)
rc_h_conf_data.set('LOCAL_PREFIX', local_prefix)
rc_h_conf_data.set('PKG_PREFIX', pkg_prefix)
rc_h_conf_data.set('SYSCONFDIR', get_option('sysconfdir'))

librc_version = '1'

librc_sources = [
  'librc.c',
  'librc-daemon.c',
  'librc-depend.c',
  'librc-misc.c',
  'librc-stringlist.c',
  ]

rc_h = configure_file(input : 'rc.h.in', output : 'rc.h',
  configuration : rc_h_conf_data)

librc = library('rc', librc_sources,
  include_directories : [incdir, einfo_incdir],
  link_depends : 'rc.map',
  version : librc_version,
  install : true,
  install_dir : libdir)

install_headers(rc_h)