1c710b975SWilly Tusensorutils_lib = static_library(
2c710b975SWilly Tu  'sensorutils',
3c710b975SWilly Tu  'sensorutils.cpp',
4c710b975SWilly Tu  include_directories: root_inc,
5c710b975SWilly Tu  implicit_include_directories: false)
6c710b975SWilly Tu
7c710b975SWilly Tusensorutils_dep = declare_dependency(link_with: sensorutils_lib)
8c710b975SWilly Tu
949152e76SHarvey Wuhybrid_src = []
1049152e76SHarvey Wu
1149152e76SHarvey Wuif not get_option('hybrid-sensors').disabled()
1249152e76SHarvey Wu  hybrid_src = [
1349152e76SHarvey Wu    'sensorhandler.cpp',
1449152e76SHarvey Wu    'sensordatahandler.cpp',
1549152e76SHarvey Wu    'ipmisensor.cpp',
1649152e76SHarvey Wu    generated_src,
1749152e76SHarvey Wu  ]
1849152e76SHarvey Wuendif
1949152e76SHarvey Wu
20*777cfaf2SJohnathan Manteysensorsoem_src = []
21*777cfaf2SJohnathan Manteyif not get_option('sensors-oem').disabled()
22*777cfaf2SJohnathan Mantey  sensorsoem_src = ['dbus-sdr/sensorcommands_oem.cpp']
23*777cfaf2SJohnathan Manteyendif
24*777cfaf2SJohnathan Mantey
25c710b975SWilly Tudbus_sdr_pre = declare_dependency(
26c710b975SWilly Tu  include_directories: root_inc,
27c710b975SWilly Tu  dependencies: [
28c710b975SWilly Tu    crypto,
299cf0838aSVernon Mauery    nlohmann_json_dep,
30c710b975SWilly Tu    phosphor_logging_dep,
31c710b975SWilly Tu    ipmid_dep,
32c710b975SWilly Tu    sensorutils_dep,
33c710b975SWilly Tu  ])
34c710b975SWilly Tu
35c710b975SWilly Tudbus_sdr_src = [
36ba9bbb6fSWilly Tu  'dbus-sdr/sdrutils.cpp',
37ba9bbb6fSWilly Tu  'dbus-sdr/sensorcommands.cpp',
3849152e76SHarvey Wu  'dbus-sdr/storagecommands.cpp',
3949152e76SHarvey Wu  hybrid_src,
40*777cfaf2SJohnathan Mantey  sensorsoem_src,
41c710b975SWilly Tu]
42