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_dep = [] |
| 10 | hybrid_src = [] |
| 11 | |
| 12 | if 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 | ] |
| 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, |
Harvey Wu | 49152e7 | 2023-06-06 16:42:58 +0800 | [diff] [blame] | 33 | hybrid_dep, |
Willy Tu | c710b97 | 2021-08-11 16:33:43 -0700 | [diff] [blame] | 34 | ]) |
| 35 | |
| 36 | dbus_sdr_src = [ |
Willy Tu | ba9bbb6 | 2022-06-01 03:41:15 -0700 | [diff] [blame] | 37 | 'dbus-sdr/sdrutils.cpp', |
| 38 | 'dbus-sdr/sensorcommands.cpp', |
Harvey Wu | 49152e7 | 2023-06-06 16:42:58 +0800 | [diff] [blame] | 39 | 'dbus-sdr/storagecommands.cpp', |
| 40 | hybrid_src, |
Willy Tu | c710b97 | 2021-08-11 16:33:43 -0700 | [diff] [blame] | 41 | ] |