pldm: change utils.cpp to a shared library
pldmtool is a separate executable that depends on utils.cpp.
Compile utils.cpp to a shared libaray so that it could be linked against
by components.
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I25086d543746a220ff257b0b53101f4e61e28b95
diff --git a/test/meson.build b/test/meson.build
index 4366a2b..567ac34 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -14,7 +14,7 @@
gtest = dependency('gtest', main: true, disabler: true, required: true)
gmock = dependency('gmock', disabler: true, required: true)
-pldmd = declare_dependency(sources: ['../instance_id.cpp', '../utils.cpp'])
+pldmd = declare_dependency(sources: '../instance_id.cpp')
tests = [
'libpldm_base_test',
@@ -48,6 +48,7 @@
dependencies: [
libpldm,
libpldmresponder,
+ libpldmutils,
gtest,
gmock,
pldmd,