blob: 2afb8a68076181ee644f240dde17441385a5b079 [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
Johnathan Mantey777cfaf2024-06-13 10:45:47 -070020sensorsoem_src = []
21if not get_option('sensors-oem').disabled()
22 sensorsoem_src = ['dbus-sdr/sensorcommands_oem.cpp']
23endif
24
Willy Tuc710b972021-08-11 16:33:43 -070025dbus_sdr_pre = declare_dependency(
26 include_directories: root_inc,
27 dependencies: [
28 crypto,
Vernon Mauery9cf08382023-04-28 14:00:11 -070029 nlohmann_json_dep,
Willy Tuc710b972021-08-11 16:33:43 -070030 phosphor_logging_dep,
31 ipmid_dep,
Willy Tuc710b972021-08-11 16:33:43 -070032 sensorutils_dep,
33 ])
34
35dbus_sdr_src = [
Willy Tuba9bbb62022-06-01 03:41:15 -070036 'dbus-sdr/sdrutils.cpp',
37 'dbus-sdr/sensorcommands.cpp',
Harvey Wu49152e72023-06-06 16:42:58 +080038 'dbus-sdr/storagecommands.cpp',
39 hybrid_src,
Johnathan Mantey777cfaf2024-06-13 10:45:47 -070040 sensorsoem_src,
Willy Tuc710b972021-08-11 16:33:43 -070041]