shared: remove use of libshared

This moves everything into other places and simple includes the
files in the cases that it is necessary. In the future, we can
rewrite sysprofd to use GDBus and add GetProcFile() to allow
for client-side processing of kallsyms.
This commit is contained in:
Christian Hergert
2019-05-08 09:57:30 -07:00
parent 1c6741bdc6
commit 6ba408f073
26 changed files with 33 additions and 122 deletions

View File

@ -4,6 +4,7 @@ sysprofd_sources = [
'sysprofd.c',
'sd-bus-helper.c',
'sd-bus-helper.h',
'../libsysprof/sp-kallsyms.c',
]
pkglibexecdir = join_paths(get_option('prefix'), get_option('libexecdir'))
@ -11,14 +12,14 @@ pkglibexecdir = join_paths(get_option('prefix'), get_option('libexecdir'))
sysprofd_deps = [
dependency('libsystemd', version: '>=222'),
dependency('glib-2.0', version: glib_req_version),
libshared_dep,
]
sysprofd = executable('sysprofd', sysprofd_sources,
dependencies: sysprofd_deps,
install: true,
install_dir: pkglibexecdir,
pie: true,
dependencies: sysprofd_deps,
install: true,
install_dir: pkglibexecdir,
pie: true,
include_directories: [include_directories('.'), '../libsysprof'],
)
sysprofdconf = configuration_data()