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