Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 1 | peci_incdirs = [] |
| 2 | if not meson.get_compiler('cpp').has_header('linux/peci-ioctl.h') |
| 3 | peci_incdirs = ['../include'] |
| 4 | endif |
| 5 | |
| 6 | if get_option('adc').enabled() |
| 7 | executable( |
| 8 | 'adcsensor', |
| 9 | 'ADCSensor.cpp', |
| 10 | 'ADCSensorMain.cpp', |
| 11 | dependencies: [ |
Patrick Williams | 302a61a | 2021-08-27 15:40:08 -0500 | [diff] [blame] | 12 | default_deps, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 13 | gpiodcxx, |
Patrick Williams | 8b8f606 | 2021-08-27 14:53:50 -0500 | [diff] [blame] | 14 | thresholds_dep, |
| 15 | utils_dep, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 16 | ], |
Ed Tanous | 16966b5 | 2021-09-15 15:06:59 -0700 | [diff] [blame] | 17 | cpp_args: uring_args, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 18 | implicit_include_directories: false, |
| 19 | include_directories: '../include', |
| 20 | install: true, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 21 | ) |
| 22 | endif |
| 23 | |
Thu Nguyen | 255da6b | 2022-07-29 10:05:52 +0700 | [diff] [blame] | 24 | if get_option('intel-cpu').enabled() |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 25 | executable( |
Thu Nguyen | 255da6b | 2022-07-29 10:05:52 +0700 | [diff] [blame] | 26 | 'intelcpusensor', |
| 27 | 'IntelCPUSensorMain.cpp', |
| 28 | 'IntelCPUSensor.cpp', |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 29 | dependencies: [ |
Patrick Williams | 302a61a | 2021-08-27 15:40:08 -0500 | [diff] [blame] | 30 | default_deps, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 31 | gpiodcxx, |
Patrick Williams | 8b8f606 | 2021-08-27 14:53:50 -0500 | [diff] [blame] | 32 | thresholds_dep, |
| 33 | utils_dep, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 34 | ], |
| 35 | implicit_include_directories: false, |
| 36 | include_directories: [ |
| 37 | '../include' |
| 38 | ] + peci_incdirs, |
| 39 | install: true, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 40 | ) |
| 41 | endif |
| 42 | |
| 43 | if get_option('exit-air').enabled() |
| 44 | executable( |
| 45 | 'exitairtempsensor', |
| 46 | 'ExitAirTempSensor.cpp', |
| 47 | dependencies: [ |
Patrick Williams | 302a61a | 2021-08-27 15:40:08 -0500 | [diff] [blame] | 48 | default_deps, |
Patrick Williams | 8b8f606 | 2021-08-27 14:53:50 -0500 | [diff] [blame] | 49 | thresholds_dep, |
| 50 | utils_dep, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 51 | ], |
Ed Tanous | 16966b5 | 2021-09-15 15:06:59 -0700 | [diff] [blame] | 52 | cpp_args: uring_args, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 53 | implicit_include_directories: false, |
| 54 | include_directories: '../include', |
| 55 | install: true, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 56 | ) |
| 57 | endif |
| 58 | |
| 59 | if get_option('fan').enabled() |
| 60 | executable( |
| 61 | 'fansensor', |
| 62 | 'FanMain.cpp', |
| 63 | 'TachSensor.cpp', |
| 64 | 'PwmSensor.cpp', |
| 65 | dependencies: [ |
Patrick Williams | 302a61a | 2021-08-27 15:40:08 -0500 | [diff] [blame] | 66 | default_deps, |
Patrick Williams | 8b8f606 | 2021-08-27 14:53:50 -0500 | [diff] [blame] | 67 | gpiodcxx, |
Patrick Williams | 8b8f606 | 2021-08-27 14:53:50 -0500 | [diff] [blame] | 68 | thresholds_dep, |
| 69 | utils_dep, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 70 | ], |
Ed Tanous | 16966b5 | 2021-09-15 15:06:59 -0700 | [diff] [blame] | 71 | cpp_args: uring_args, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 72 | implicit_include_directories: false, |
| 73 | include_directories: '../include', |
| 74 | install: true, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 75 | ) |
| 76 | endif |
| 77 | |
| 78 | if get_option('hwmon-temp').enabled() |
| 79 | executable( |
| 80 | 'hwmontempsensor', |
| 81 | 'HwmonTempMain.cpp', |
| 82 | 'HwmonTempSensor.cpp', |
| 83 | dependencies: [ |
Patrick Williams | 302a61a | 2021-08-27 15:40:08 -0500 | [diff] [blame] | 84 | default_deps, |
Zev Weiss | a1456c4 | 2022-07-18 16:59:35 -0700 | [diff] [blame] | 85 | devicemgmt_dep, |
Patrick Williams | 8b8f606 | 2021-08-27 14:53:50 -0500 | [diff] [blame] | 86 | thresholds_dep, |
| 87 | utils_dep, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 88 | ], |
Ed Tanous | 16966b5 | 2021-09-15 15:06:59 -0700 | [diff] [blame] | 89 | cpp_args: uring_args, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 90 | implicit_include_directories: false, |
| 91 | include_directories: '../include', |
| 92 | install: true, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 93 | ) |
| 94 | endif |
| 95 | |
| 96 | if get_option('intrusion').enabled() |
| 97 | executable( |
| 98 | 'intrusionsensor', |
| 99 | 'ChassisIntrusionSensor.cpp', |
| 100 | 'IntrusionSensorMain.cpp', |
| 101 | dependencies: [ |
Patrick Williams | 302a61a | 2021-08-27 15:40:08 -0500 | [diff] [blame] | 102 | default_deps, |
Patrick Williams | 8b8f606 | 2021-08-27 14:53:50 -0500 | [diff] [blame] | 103 | gpiodcxx, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 104 | i2c, |
Patrick Williams | 8b8f606 | 2021-08-27 14:53:50 -0500 | [diff] [blame] | 105 | utils_dep, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 106 | ], |
Ed Tanous | 16966b5 | 2021-09-15 15:06:59 -0700 | [diff] [blame] | 107 | cpp_args: uring_args, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 108 | implicit_include_directories: false, |
| 109 | include_directories: '../include', |
| 110 | install: true, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 111 | ) |
| 112 | endif |
| 113 | |
| 114 | if get_option('ipmb').enabled() |
| 115 | executable( |
| 116 | 'ipmbsensor', |
| 117 | 'IpmbSensor.cpp', |
Jayashree Dhanapal | 3746c55 | 2022-03-21 14:45:52 +0530 | [diff] [blame^] | 118 | 'IpmbSDRSensor.cpp', |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 119 | dependencies: [ |
Patrick Williams | 302a61a | 2021-08-27 15:40:08 -0500 | [diff] [blame] | 120 | default_deps, |
Patrick Williams | 8b8f606 | 2021-08-27 14:53:50 -0500 | [diff] [blame] | 121 | thresholds_dep, |
| 122 | utils_dep, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 123 | ], |
Ed Tanous | 16966b5 | 2021-09-15 15:06:59 -0700 | [diff] [blame] | 124 | cpp_args: uring_args, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 125 | implicit_include_directories: false, |
| 126 | include_directories: '../include', |
| 127 | install: true, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 128 | ) |
| 129 | endif |
| 130 | |
Ed Tanous | 49d12d8 | 2021-02-11 13:44:15 -0800 | [diff] [blame] | 131 | if get_option('mcu').enabled() |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 132 | executable( |
| 133 | 'mcutempsensor', |
| 134 | 'MCUTempSensor.cpp', |
| 135 | dependencies: [ |
Patrick Williams | 302a61a | 2021-08-27 15:40:08 -0500 | [diff] [blame] | 136 | default_deps, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 137 | i2c, |
Patrick Williams | 8b8f606 | 2021-08-27 14:53:50 -0500 | [diff] [blame] | 138 | thresholds_dep, |
| 139 | utils_dep, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 140 | ], |
Ed Tanous | 16966b5 | 2021-09-15 15:06:59 -0700 | [diff] [blame] | 141 | cpp_args: uring_args, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 142 | implicit_include_directories: false, |
| 143 | include_directories: '../include', |
| 144 | install: true, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 145 | ) |
| 146 | endif |
| 147 | |
| 148 | if get_option('nvme').enabled() |
Andrew Jeffery | e3e3c97 | 2021-05-26 14:37:07 +0930 | [diff] [blame] | 149 | nvme_srcs = files('NVMeSensorMain.cpp', 'NVMeSensor.cpp') |
| 150 | nvme_srcs += files('NVMeBasicContext.cpp') |
Andrew Jeffery | e3e3c97 | 2021-05-26 14:37:07 +0930 | [diff] [blame] | 151 | |
Andrew Jeffery | 6f25e7e | 2021-05-24 12:52:53 +0930 | [diff] [blame] | 152 | nvme_deps = [ default_deps, i2c, thresholds_dep, utils_dep, threads ] |
| 153 | |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 154 | executable( |
| 155 | 'nvmesensor', |
Andrew Jeffery | e3e3c97 | 2021-05-26 14:37:07 +0930 | [diff] [blame] | 156 | sources: nvme_srcs, |
| 157 | dependencies: nvme_deps, |
Ed Tanous | 16966b5 | 2021-09-15 15:06:59 -0700 | [diff] [blame] | 158 | cpp_args: uring_args, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 159 | implicit_include_directories: false, |
| 160 | include_directories: '../include', |
| 161 | install: true, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 162 | ) |
| 163 | endif |
| 164 | |
Lei YU | 3a18b86 | 2021-02-05 13:55:08 +0800 | [diff] [blame] | 165 | if get_option('psu').enabled() |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 166 | executable( |
Lei YU | 3a18b86 | 2021-02-05 13:55:08 +0800 | [diff] [blame] | 167 | 'psusensor', |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 168 | 'PSUEvent.cpp', |
| 169 | 'PSUSensor.cpp', |
| 170 | 'PSUSensorMain.cpp', |
| 171 | dependencies: [ |
Patrick Williams | 302a61a | 2021-08-27 15:40:08 -0500 | [diff] [blame] | 172 | default_deps, |
Patrick Williams | 8b8f606 | 2021-08-27 14:53:50 -0500 | [diff] [blame] | 173 | pwmsensor_dep, |
Patrick Williams | 8b8f606 | 2021-08-27 14:53:50 -0500 | [diff] [blame] | 174 | thresholds_dep, |
| 175 | utils_dep, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 176 | ], |
Ed Tanous | 16966b5 | 2021-09-15 15:06:59 -0700 | [diff] [blame] | 177 | cpp_args: uring_args, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 178 | implicit_include_directories: false, |
| 179 | include_directories: '../include', |
| 180 | install: true, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 181 | ) |
| 182 | endif |
| 183 | |
| 184 | if get_option('external').enabled() |
| 185 | executable( |
| 186 | 'externalsensor', |
| 187 | 'ExternalSensor.cpp', |
| 188 | 'ExternalSensorMain.cpp', |
| 189 | dependencies: [ |
Patrick Williams | 302a61a | 2021-08-27 15:40:08 -0500 | [diff] [blame] | 190 | default_deps, |
Patrick Williams | 8b8f606 | 2021-08-27 14:53:50 -0500 | [diff] [blame] | 191 | thresholds_dep, |
| 192 | utils_dep, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 193 | ], |
Ed Tanous | 16966b5 | 2021-09-15 15:06:59 -0700 | [diff] [blame] | 194 | cpp_args: uring_args, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 195 | implicit_include_directories: false, |
| 196 | include_directories: '../include', |
| 197 | install: true, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 198 | ) |
| 199 | endif |