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