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', |
| 118 | dependencies: [ |
Patrick Williams | 302a61a | 2021-08-27 15:40:08 -0500 | [diff] [blame] | 119 | default_deps, |
Patrick Williams | 8b8f606 | 2021-08-27 14:53:50 -0500 | [diff] [blame] | 120 | thresholds_dep, |
| 121 | utils_dep, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 122 | ], |
Ed Tanous | 16966b5 | 2021-09-15 15:06:59 -0700 | [diff] [blame] | 123 | cpp_args: uring_args, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 124 | implicit_include_directories: false, |
| 125 | include_directories: '../include', |
| 126 | install: true, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 127 | ) |
| 128 | endif |
| 129 | |
Ed Tanous | 49d12d8 | 2021-02-11 13:44:15 -0800 | [diff] [blame] | 130 | if get_option('mcu').enabled() |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 131 | executable( |
| 132 | 'mcutempsensor', |
| 133 | 'MCUTempSensor.cpp', |
| 134 | dependencies: [ |
Patrick Williams | 302a61a | 2021-08-27 15:40:08 -0500 | [diff] [blame] | 135 | default_deps, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 136 | i2c, |
Patrick Williams | 8b8f606 | 2021-08-27 14:53:50 -0500 | [diff] [blame] | 137 | thresholds_dep, |
| 138 | utils_dep, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 139 | ], |
Ed Tanous | 16966b5 | 2021-09-15 15:06:59 -0700 | [diff] [blame] | 140 | cpp_args: uring_args, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 141 | implicit_include_directories: false, |
| 142 | include_directories: '../include', |
| 143 | install: true, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 144 | ) |
| 145 | endif |
| 146 | |
| 147 | if get_option('nvme').enabled() |
Andrew Jeffery | e3e3c97 | 2021-05-26 14:37:07 +0930 | [diff] [blame] | 148 | nvme_srcs = files('NVMeSensorMain.cpp', 'NVMeSensor.cpp') |
| 149 | nvme_srcs += files('NVMeBasicContext.cpp') |
Andrew Jeffery | e3e3c97 | 2021-05-26 14:37:07 +0930 | [diff] [blame] | 150 | |
Andrew Jeffery | 6f25e7e | 2021-05-24 12:52:53 +0930 | [diff] [blame] | 151 | nvme_deps = [ default_deps, i2c, thresholds_dep, utils_dep, threads ] |
| 152 | |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 153 | executable( |
| 154 | 'nvmesensor', |
Andrew Jeffery | e3e3c97 | 2021-05-26 14:37:07 +0930 | [diff] [blame] | 155 | sources: nvme_srcs, |
| 156 | dependencies: nvme_deps, |
Ed Tanous | 16966b5 | 2021-09-15 15:06:59 -0700 | [diff] [blame] | 157 | cpp_args: uring_args, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 158 | implicit_include_directories: false, |
| 159 | include_directories: '../include', |
| 160 | install: true, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 161 | ) |
| 162 | endif |
| 163 | |
Lei YU | 3a18b86 | 2021-02-05 13:55:08 +0800 | [diff] [blame] | 164 | if get_option('psu').enabled() |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 165 | executable( |
Lei YU | 3a18b86 | 2021-02-05 13:55:08 +0800 | [diff] [blame] | 166 | 'psusensor', |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 167 | 'PSUEvent.cpp', |
| 168 | 'PSUSensor.cpp', |
| 169 | 'PSUSensorMain.cpp', |
| 170 | dependencies: [ |
Patrick Williams | 302a61a | 2021-08-27 15:40:08 -0500 | [diff] [blame] | 171 | default_deps, |
Patrick Williams | 8b8f606 | 2021-08-27 14:53:50 -0500 | [diff] [blame] | 172 | pwmsensor_dep, |
Patrick Williams | 8b8f606 | 2021-08-27 14:53:50 -0500 | [diff] [blame] | 173 | thresholds_dep, |
| 174 | utils_dep, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 175 | ], |
Ed Tanous | 16966b5 | 2021-09-15 15:06:59 -0700 | [diff] [blame] | 176 | cpp_args: uring_args, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 177 | implicit_include_directories: false, |
| 178 | include_directories: '../include', |
| 179 | install: true, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 180 | ) |
| 181 | endif |
| 182 | |
| 183 | if get_option('external').enabled() |
| 184 | executable( |
| 185 | 'externalsensor', |
| 186 | 'ExternalSensor.cpp', |
| 187 | 'ExternalSensorMain.cpp', |
| 188 | dependencies: [ |
Patrick Williams | 302a61a | 2021-08-27 15:40:08 -0500 | [diff] [blame] | 189 | default_deps, |
Patrick Williams | 8b8f606 | 2021-08-27 14:53:50 -0500 | [diff] [blame] | 190 | thresholds_dep, |
| 191 | utils_dep, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 192 | ], |
Ed Tanous | 16966b5 | 2021-09-15 15:06:59 -0700 | [diff] [blame] | 193 | cpp_args: uring_args, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 194 | implicit_include_directories: false, |
| 195 | include_directories: '../include', |
| 196 | install: true, |
Brad Bishop | feb19ef | 2019-11-07 18:02:16 -0500 | [diff] [blame] | 197 | ) |
| 198 | endif |