common: create another lib tailored for the client

Use a small subset of the existing common files to create another
static library to be used from the client library.
This commit is contained in:
Christian Kellner 2019-10-04 18:56:36 +02:00
parent a6552044cd
commit cd6c2ee612

View File

@ -19,3 +19,18 @@ link_daemon_common = declare_dependency(
link_with: daemon_common, link_with: daemon_common,
include_directories: [include_directories('.')] include_directories: [include_directories('.')]
) )
lib_common = static_library(
'lib-common',
sources: [
'common-helpers.c',
'common-pidfds.c'
],
install: false,
include_directories: [config_h_dir]
)
link_lib_common = declare_dependency(
link_with: lib_common,
include_directories: [include_directories('.')]
)