Browse Source

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.
Christian Kellner 5 years ago
parent
commit
cd6c2ee612
1 changed files with 15 additions and 0 deletions
  1. 15 0
      common/meson.build

+ 15 - 0
common/meson.build

@@ -19,3 +19,18 @@ link_daemon_common = declare_dependency(
     link_with: daemon_common,
     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('.')]
+)