build: Add support for Meson

This commit is contained in:
Patrick Griffis
2016-10-20 05:26:58 -04:00
parent 496f10e34a
commit 52bc856be4
14 changed files with 672 additions and 0 deletions

21
daemon/meson.build Normal file
View File

@ -0,0 +1,21 @@
if get_option('with_sysprofd') == 'bundled'
sysprofd_sources = [
'sysprofd.c',
'sd-bus-helper.c',
'sd-bus-helper.h',
]
# NOTE: This is used in data/meson.build
pkglibexecdir = join_paths(get_option('prefix'), get_option('libexecdir'), 'sysprof')
sysprofd = executable('sysprofd',
sysprofd_sources,
c_args: exe_c_args,
link_args: exe_link_args,
dependencies: dependency('libsystemd', version: '>=222'),
install: true,
install_dir: pkglibexecdir,
)
endif