blob: 2afb8a68076181ee644f240dde17441385a5b079 [file] [log] [blame]
sensorutils_lib = static_library(
'sensorutils',
'sensorutils.cpp',
include_directories: root_inc,
implicit_include_directories: false)
sensorutils_dep = declare_dependency(link_with: sensorutils_lib)
hybrid_src = []
if not get_option('hybrid-sensors').disabled()
hybrid_src = [
'sensorhandler.cpp',
'sensordatahandler.cpp',
'ipmisensor.cpp',
generated_src,
]
endif
sensorsoem_src = []
if not get_option('sensors-oem').disabled()
sensorsoem_src = ['dbus-sdr/sensorcommands_oem.cpp']
endif
dbus_sdr_pre = declare_dependency(
include_directories: root_inc,
dependencies: [
crypto,
nlohmann_json_dep,
phosphor_logging_dep,
ipmid_dep,
sensorutils_dep,
])
dbus_sdr_src = [
'dbus-sdr/sdrutils.cpp',
'dbus-sdr/sensorcommands.cpp',
'dbus-sdr/storagecommands.cpp',
hybrid_src,
sensorsoem_src,
]