1feb19ef0SBrad Bishoppeci_incdirs = [] 2feb19ef0SBrad Bishopif not meson.get_compiler('cpp').has_header('linux/peci-ioctl.h') 3feb19ef0SBrad Bishop peci_incdirs = ['../include'] 4feb19ef0SBrad Bishopendif 5feb19ef0SBrad Bishop 6feb19ef0SBrad Bishopif get_option('adc').enabled() 7feb19ef0SBrad Bishop executable( 8feb19ef0SBrad Bishop 'adcsensor', 9feb19ef0SBrad Bishop 'ADCSensor.cpp', 10feb19ef0SBrad Bishop 'ADCSensorMain.cpp', 11feb19ef0SBrad Bishop dependencies: [ 12feb19ef0SBrad Bishop gpiodcxx, 13feb19ef0SBrad Bishop sdbusplus, 14feb19ef0SBrad Bishop ], 15feb19ef0SBrad Bishop implicit_include_directories: false, 16feb19ef0SBrad Bishop include_directories: '../include', 17feb19ef0SBrad Bishop install: true, 18feb19ef0SBrad Bishop link_with: [ 19feb19ef0SBrad Bishop thresholds_a, 20feb19ef0SBrad Bishop utils_a, 21feb19ef0SBrad Bishop ], 22feb19ef0SBrad Bishop ) 23feb19ef0SBrad Bishopendif 24feb19ef0SBrad Bishop 25feb19ef0SBrad Bishopif get_option('cpu').enabled() 26feb19ef0SBrad Bishop executable( 27feb19ef0SBrad Bishop 'cpusensor', 28feb19ef0SBrad Bishop 'CPUSensorMain.cpp', 29feb19ef0SBrad Bishop 'CPUSensor.cpp', 30feb19ef0SBrad Bishop dependencies: [ 31feb19ef0SBrad Bishop gpiodcxx, 32feb19ef0SBrad Bishop sdbusplus, 33feb19ef0SBrad Bishop ], 34feb19ef0SBrad Bishop implicit_include_directories: false, 35feb19ef0SBrad Bishop include_directories: [ 36feb19ef0SBrad Bishop '../include' 37feb19ef0SBrad Bishop ] + peci_incdirs, 38feb19ef0SBrad Bishop install: true, 39feb19ef0SBrad Bishop link_with: [ 40feb19ef0SBrad Bishop thresholds_a, 41feb19ef0SBrad Bishop utils_a, 42feb19ef0SBrad Bishop ], 43feb19ef0SBrad Bishop ) 44feb19ef0SBrad Bishopendif 45feb19ef0SBrad Bishop 46feb19ef0SBrad Bishopif get_option('exit-air').enabled() 47feb19ef0SBrad Bishop executable( 48feb19ef0SBrad Bishop 'exitairtempsensor', 49feb19ef0SBrad Bishop 'ExitAirTempSensor.cpp', 50feb19ef0SBrad Bishop dependencies: [ 51feb19ef0SBrad Bishop sdbusplus, 52feb19ef0SBrad Bishop ], 53feb19ef0SBrad Bishop implicit_include_directories: false, 54feb19ef0SBrad Bishop include_directories: '../include', 55feb19ef0SBrad Bishop install: true, 56feb19ef0SBrad Bishop link_with: [ 57feb19ef0SBrad Bishop thresholds_a, 58feb19ef0SBrad Bishop utils_a, 59feb19ef0SBrad Bishop ], 60feb19ef0SBrad Bishop ) 61feb19ef0SBrad Bishopendif 62feb19ef0SBrad Bishop 63feb19ef0SBrad Bishopif get_option('fan').enabled() 64feb19ef0SBrad Bishop executable( 65feb19ef0SBrad Bishop 'fansensor', 66feb19ef0SBrad Bishop 'FanMain.cpp', 67feb19ef0SBrad Bishop 'TachSensor.cpp', 68feb19ef0SBrad Bishop 'PwmSensor.cpp', 69feb19ef0SBrad Bishop dependencies: [ 70feb19ef0SBrad Bishop sdbusplus, 71feb19ef0SBrad Bishop gpiodcxx 72feb19ef0SBrad Bishop ], 73feb19ef0SBrad Bishop implicit_include_directories: false, 74feb19ef0SBrad Bishop include_directories: '../include', 75feb19ef0SBrad Bishop install: true, 76feb19ef0SBrad Bishop link_with: [ 77feb19ef0SBrad Bishop thresholds_a, 78feb19ef0SBrad Bishop utils_a, 79feb19ef0SBrad Bishop ], 80feb19ef0SBrad Bishop ) 81feb19ef0SBrad Bishopendif 82feb19ef0SBrad Bishop 83feb19ef0SBrad Bishopif get_option('hwmon-temp').enabled() 84feb19ef0SBrad Bishop executable( 85feb19ef0SBrad Bishop 'hwmontempsensor', 86feb19ef0SBrad Bishop 'HwmonTempMain.cpp', 87feb19ef0SBrad Bishop 'HwmonTempSensor.cpp', 88feb19ef0SBrad Bishop dependencies: [ 89feb19ef0SBrad Bishop sdbusplus, 90feb19ef0SBrad Bishop ], 91feb19ef0SBrad Bishop implicit_include_directories: false, 92feb19ef0SBrad Bishop include_directories: '../include', 93feb19ef0SBrad Bishop install: true, 94feb19ef0SBrad Bishop link_with: [ 95feb19ef0SBrad Bishop thresholds_a, 96feb19ef0SBrad Bishop utils_a, 97feb19ef0SBrad Bishop ], 98feb19ef0SBrad Bishop ) 99feb19ef0SBrad Bishopendif 100feb19ef0SBrad Bishop 101feb19ef0SBrad Bishopif get_option('intrusion').enabled() 102feb19ef0SBrad Bishop executable( 103feb19ef0SBrad Bishop 'intrusionsensor', 104feb19ef0SBrad Bishop 'ChassisIntrusionSensor.cpp', 105feb19ef0SBrad Bishop 'IntrusionSensorMain.cpp', 106feb19ef0SBrad Bishop dependencies: [ 107feb19ef0SBrad Bishop i2c, 108feb19ef0SBrad Bishop sdbusplus, 109feb19ef0SBrad Bishop gpiodcxx, 110feb19ef0SBrad Bishop ], 111feb19ef0SBrad Bishop implicit_include_directories: false, 112feb19ef0SBrad Bishop include_directories: '../include', 113feb19ef0SBrad Bishop install: true, 114feb19ef0SBrad Bishop link_with: [ 115feb19ef0SBrad Bishop utils_a, 116feb19ef0SBrad Bishop ], 117feb19ef0SBrad Bishop ) 118feb19ef0SBrad Bishopendif 119feb19ef0SBrad Bishop 120feb19ef0SBrad Bishopif get_option('ipmb').enabled() 121feb19ef0SBrad Bishop executable( 122feb19ef0SBrad Bishop 'ipmbsensor', 123feb19ef0SBrad Bishop 'IpmbSensor.cpp', 124feb19ef0SBrad Bishop dependencies: [ 125feb19ef0SBrad Bishop sdbusplus, 126feb19ef0SBrad Bishop ], 127feb19ef0SBrad Bishop implicit_include_directories: false, 128feb19ef0SBrad Bishop include_directories: '../include', 129feb19ef0SBrad Bishop install: true, 130feb19ef0SBrad Bishop link_with: [ 131feb19ef0SBrad Bishop thresholds_a, 132feb19ef0SBrad Bishop utils_a, 133feb19ef0SBrad Bishop ], 134feb19ef0SBrad Bishop ) 135feb19ef0SBrad Bishopendif 136feb19ef0SBrad Bishop 137feb19ef0SBrad Bishopif get_option('mcu-temp').enabled() 138feb19ef0SBrad Bishop executable( 139feb19ef0SBrad Bishop 'mcutempsensor', 140feb19ef0SBrad Bishop 'MCUTempSensor.cpp', 141feb19ef0SBrad Bishop dependencies: [ 142feb19ef0SBrad Bishop i2c, 143feb19ef0SBrad Bishop sdbusplus, 144feb19ef0SBrad Bishop ], 145feb19ef0SBrad Bishop implicit_include_directories: false, 146feb19ef0SBrad Bishop include_directories: '../include', 147feb19ef0SBrad Bishop install: true, 148feb19ef0SBrad Bishop link_with: [ 149feb19ef0SBrad Bishop utils_a, 150feb19ef0SBrad Bishop thresholds_a, 151feb19ef0SBrad Bishop ], 152feb19ef0SBrad Bishop ) 153feb19ef0SBrad Bishopendif 154feb19ef0SBrad Bishop 155feb19ef0SBrad Bishopif get_option('nvme').enabled() 156feb19ef0SBrad Bishop executable( 157feb19ef0SBrad Bishop 'nvmesensor', 158feb19ef0SBrad Bishop 'NVMeSensorMain.cpp', 159feb19ef0SBrad Bishop 'NVMeSensor.cpp', 160feb19ef0SBrad Bishop dependencies: [ 161feb19ef0SBrad Bishop i2c, 162feb19ef0SBrad Bishop sdbusplus, 163feb19ef0SBrad Bishop mctp, 164feb19ef0SBrad Bishop ], 165feb19ef0SBrad Bishop implicit_include_directories: false, 166feb19ef0SBrad Bishop include_directories: '../include', 167feb19ef0SBrad Bishop install: true, 168feb19ef0SBrad Bishop link_with: [ 169feb19ef0SBrad Bishop utils_a, 170feb19ef0SBrad Bishop thresholds_a, 171feb19ef0SBrad Bishop ], 172feb19ef0SBrad Bishop ) 173feb19ef0SBrad Bishopendif 174feb19ef0SBrad Bishop 175*3a18b860SLei YUif get_option('psu').enabled() 176feb19ef0SBrad Bishop executable( 177*3a18b860SLei YU 'psusensor', 178feb19ef0SBrad Bishop 'PSUEvent.cpp', 179feb19ef0SBrad Bishop 'PSUSensor.cpp', 180feb19ef0SBrad Bishop 'PSUSensorMain.cpp', 181feb19ef0SBrad Bishop dependencies: [ 182feb19ef0SBrad Bishop sdbusplus, 183feb19ef0SBrad Bishop ], 184feb19ef0SBrad Bishop implicit_include_directories: false, 185feb19ef0SBrad Bishop include_directories: '../include', 186feb19ef0SBrad Bishop install: true, 187feb19ef0SBrad Bishop link_with: [ 188feb19ef0SBrad Bishop pwmsensor_a, 189feb19ef0SBrad Bishop thresholds_a, 190feb19ef0SBrad Bishop utils_a, 191feb19ef0SBrad Bishop ], 192feb19ef0SBrad Bishop ) 193feb19ef0SBrad Bishopendif 194feb19ef0SBrad Bishop 195feb19ef0SBrad Bishopif get_option('external').enabled() 196feb19ef0SBrad Bishop executable( 197feb19ef0SBrad Bishop 'externalsensor', 198feb19ef0SBrad Bishop 'ExternalSensor.cpp', 199feb19ef0SBrad Bishop 'ExternalSensorMain.cpp', 200feb19ef0SBrad Bishop dependencies: [ 201feb19ef0SBrad Bishop sdbusplus, 202feb19ef0SBrad Bishop ], 203feb19ef0SBrad Bishop implicit_include_directories: false, 204feb19ef0SBrad Bishop include_directories: '../include', 205feb19ef0SBrad Bishop install: true, 206feb19ef0SBrad Bishop link_with: [ 207feb19ef0SBrad Bishop thresholds_a, 208feb19ef0SBrad Bishop utils_a, 209feb19ef0SBrad Bishop ], 210feb19ef0SBrad Bishop ) 211feb19ef0SBrad Bishopendif 212