summaryrefslogtreecommitdiffstats
path: root/common/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'common/meson.build')
-rw-r--r--common/meson.build22
1 files changed, 22 insertions, 0 deletions
diff --git a/common/meson.build b/common/meson.build
new file mode 100644
index 0000000..e465fa5
--- /dev/null
+++ b/common/meson.build
@@ -0,0 +1,22 @@
+libdlmcommon_sources = [
+ 'socket-path.c',
+ 'log.c'
+]
+
+libdlmcommon_inc = [include_directories('.')]
+
+if enable_tests
+ libdlmcommon_inc += include_directories('test')
+ libdlmcommon_sources += ['test/test-helpers.c']
+endif
+
+libdlmcommon = static_library(
+ 'common',
+ sources: libdlmcommon_sources,
+ include_directories : configuration_inc,
+)
+
+dlmcommon_dep = declare_dependency(
+ link_with : libdlmcommon,
+ include_directories : libdlmcommon_inc
+)