blob: 7cbd8cb7af0e5a459d463d0d8d3b0a6b1748d15e [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_dep = []
10hybrid_src = []
11
12if not get_option('hybrid-sensors').disabled()
13 hybrid_dep = [
14 mapper,
15 ]
16
17 hybrid_src = [
18 'sensorhandler.cpp',
19 'sensordatahandler.cpp',
20 'ipmisensor.cpp',
21 generated_src,
22 ]
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,
Harvey Wu49152e72023-06-06 16:42:58 +080033 hybrid_dep,
Willy Tuc710b972021-08-11 16:33:43 -070034 ])
35
36dbus_sdr_src = [
Willy Tuba9bbb62022-06-01 03:41:15 -070037 'dbus-sdr/sdrutils.cpp',
38 'dbus-sdr/sensorcommands.cpp',
Harvey Wu49152e72023-06-06 16:42:58 +080039 'dbus-sdr/storagecommands.cpp',
40 hybrid_src,
Willy Tuc710b972021-08-11 16:33:43 -070041]