blob: a0363ec028bf18b65a2c0d3677304944172322b3 [file] [log] [blame]
Willy Tuc710b972021-08-11 16:33:43 -07001sensorutils_lib = static_library(
2 'sensorutils',
3 'sensorutils.cpp',
4 include_directories: root_inc,
5 implicit_include_directories: false)
6
7sensorutils_dep = declare_dependency(link_with: sensorutils_lib)
8
Harvey Wu49152e72023-06-06 16:42:58 +08009hybrid_src = []
10
11if not get_option('hybrid-sensors').disabled()
Harvey Wu49152e72023-06-06 16:42:58 +080012 hybrid_src = [
13 'sensorhandler.cpp',
14 'sensordatahandler.cpp',
15 'ipmisensor.cpp',
16 generated_src,
17 ]
18endif
19
Willy Tuc710b972021-08-11 16:33:43 -070020dbus_sdr_pre = declare_dependency(
21 include_directories: root_inc,
22 dependencies: [
23 crypto,
Vernon Mauery9cf08382023-04-28 14:00:11 -070024 nlohmann_json_dep,
Willy Tuc710b972021-08-11 16:33:43 -070025 phosphor_logging_dep,
26 ipmid_dep,
Willy Tuc710b972021-08-11 16:33:43 -070027 sensorutils_dep,
28 ])
29
30dbus_sdr_src = [
Willy Tuba9bbb62022-06-01 03:41:15 -070031 'dbus-sdr/sdrutils.cpp',
32 'dbus-sdr/sensorcommands.cpp',
Harvey Wu49152e72023-06-06 16:42:58 +080033 'dbus-sdr/storagecommands.cpp',
34 hybrid_src,
Willy Tuc710b972021-08-11 16:33:43 -070035]