Willy Tu | c710b97 | 2021-08-11 16:33:43 -0700 | [diff] [blame] | 1 | sensorutils_lib = static_library( |
| 2 | 'sensorutils', |
| 3 | 'sensorutils.cpp', |
| 4 | include_directories: root_inc, |
| 5 | implicit_include_directories: false) |
| 6 | |
| 7 | sensorutils_dep = declare_dependency(link_with: sensorutils_lib) |
| 8 | |
Harvey Wu | 49152e7 | 2023-06-06 16:42:58 +0800 | [diff] [blame] | 9 | hybrid_src = [] |
| 10 | |
| 11 | if not get_option('hybrid-sensors').disabled() |
Harvey Wu | 49152e7 | 2023-06-06 16:42:58 +0800 | [diff] [blame] | 12 | hybrid_src = [ |
| 13 | 'sensorhandler.cpp', |
| 14 | 'sensordatahandler.cpp', |
| 15 | 'ipmisensor.cpp', |
| 16 | generated_src, |
| 17 | ] |
| 18 | endif |
| 19 | |
Willy Tu | c710b97 | 2021-08-11 16:33:43 -0700 | [diff] [blame] | 20 | dbus_sdr_pre = declare_dependency( |
| 21 | include_directories: root_inc, |
| 22 | dependencies: [ |
| 23 | crypto, |
Vernon Mauery | 9cf0838 | 2023-04-28 14:00:11 -0700 | [diff] [blame] | 24 | nlohmann_json_dep, |
Willy Tu | c710b97 | 2021-08-11 16:33:43 -0700 | [diff] [blame] | 25 | phosphor_logging_dep, |
| 26 | ipmid_dep, |
Willy Tu | c710b97 | 2021-08-11 16:33:43 -0700 | [diff] [blame] | 27 | sensorutils_dep, |
| 28 | ]) |
| 29 | |
| 30 | dbus_sdr_src = [ |
Willy Tu | ba9bbb6 | 2022-06-01 03:41:15 -0700 | [diff] [blame] | 31 | 'dbus-sdr/sdrutils.cpp', |
| 32 | 'dbus-sdr/sensorcommands.cpp', |
Harvey Wu | 49152e7 | 2023-06-06 16:42:58 +0800 | [diff] [blame] | 33 | 'dbus-sdr/storagecommands.cpp', |
| 34 | hybrid_src, |
Willy Tu | c710b97 | 2021-08-11 16:33:43 -0700 | [diff] [blame] | 35 | ] |