meson: use phosphor-logging for debug statements
There is no need to individually patch each file to enable debug
logging.
All the different definitions of 'bool debug' are removed in favor of
using phosphor-logging.
Change-Id: Ia9a8ecfa4ea220f588d7cf2d291b14067e0391e7
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
diff --git a/meson.build b/meson.build
index 93fd6a1..57ba3e1 100644
--- a/meson.build
+++ b/meson.build
@@ -35,13 +35,9 @@
endif
nlohmann_json_dep = dependency('nlohmann_json', include_type: 'system')
+sdbusplus = dependency('sdbusplus', include_type: 'system')
+phosphor_logging_dep = dependency('phosphor-logging')
-sdbusplus = dependency('sdbusplus', required: false)
-if not sdbusplus.found()
- sdbusplus_proj = subproject('sdbusplus', required: true)
- sdbusplus = sdbusplus_proj.get_variable('sdbusplus_dep')
- sdbusplus = sdbusplus.as_system('system')
-endif
systemd = dependency('systemd')
systemd_system_unit_dir = systemd.get_variable(
'systemdsystemunitdir',
@@ -302,6 +298,7 @@
boost,
gtest,
nlohmann_json_dep,
+ phosphor_logging_dep,
sdbusplus,
valijson,
],
@@ -320,6 +317,7 @@
dependencies: [
boost,
gtest,
+ phosphor_logging_dep,
sdbusplus,
],
include_directories: 'src',
@@ -337,6 +335,7 @@
gtest,
gmock,
nlohmann_json_dep,
+ phosphor_logging_dep,
],
include_directories: 'src',
)