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 | |
Johnathan Mantey | 777cfaf | 2024-06-13 10:45:47 -0700 | [diff] [blame] | 20 | sensorsoem_src = [] |
| 21 | if not get_option('sensors-oem').disabled() |
| 22 | sensorsoem_src = ['dbus-sdr/sensorcommands_oem.cpp'] |
| 23 | endif |
| 24 | |
Willy Tu | c710b97 | 2021-08-11 16:33:43 -0700 | [diff] [blame] | 25 | dbus_sdr_pre = declare_dependency( |
| 26 | include_directories: root_inc, |
| 27 | dependencies: [ |
| 28 | crypto, |
Vernon Mauery | 9cf0838 | 2023-04-28 14:00:11 -0700 | [diff] [blame] | 29 | nlohmann_json_dep, |
Willy Tu | c710b97 | 2021-08-11 16:33:43 -0700 | [diff] [blame] | 30 | phosphor_logging_dep, |
| 31 | ipmid_dep, |
Willy Tu | c710b97 | 2021-08-11 16:33:43 -0700 | [diff] [blame] | 32 | sensorutils_dep, |
| 33 | ]) |
| 34 | |
| 35 | dbus_sdr_src = [ |
Willy Tu | ba9bbb6 | 2022-06-01 03:41:15 -0700 | [diff] [blame] | 36 | 'dbus-sdr/sdrutils.cpp', |
| 37 | 'dbus-sdr/sensorcommands.cpp', |
Harvey Wu | 49152e7 | 2023-06-06 16:42:58 +0800 | [diff] [blame] | 38 | 'dbus-sdr/storagecommands.cpp', |
| 39 | hybrid_src, |
Johnathan Mantey | 777cfaf | 2024-06-13 10:45:47 -0700 | [diff] [blame] | 40 | sensorsoem_src, |
Willy Tu | c710b97 | 2021-08-11 16:33:43 -0700 | [diff] [blame] | 41 | ] |