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: [ 12302a61a5SPatrick Williams default_deps, 13feb19ef0SBrad Bishop gpiodcxx, 148b8f606fSPatrick Williams thresholds_dep, 158b8f606fSPatrick Williams utils_dep, 16feb19ef0SBrad Bishop ], 1716966b55SEd Tanous cpp_args: uring_args, 18feb19ef0SBrad Bishop implicit_include_directories: false, 19feb19ef0SBrad Bishop include_directories: '../include', 20feb19ef0SBrad Bishop install: true, 21feb19ef0SBrad Bishop ) 22feb19ef0SBrad Bishopendif 23feb19ef0SBrad Bishop 24255da6b4SThu Nguyenif get_option('intel-cpu').enabled() 25feb19ef0SBrad Bishop executable( 26255da6b4SThu Nguyen 'intelcpusensor', 27255da6b4SThu Nguyen 'IntelCPUSensorMain.cpp', 28255da6b4SThu Nguyen 'IntelCPUSensor.cpp', 29feb19ef0SBrad Bishop dependencies: [ 30302a61a5SPatrick Williams default_deps, 31feb19ef0SBrad Bishop gpiodcxx, 328b8f606fSPatrick Williams thresholds_dep, 338b8f606fSPatrick Williams utils_dep, 34feb19ef0SBrad Bishop ], 35feb19ef0SBrad Bishop implicit_include_directories: false, 36feb19ef0SBrad Bishop include_directories: [ 37feb19ef0SBrad Bishop '../include' 38feb19ef0SBrad Bishop ] + peci_incdirs, 39feb19ef0SBrad Bishop install: true, 40feb19ef0SBrad Bishop ) 41feb19ef0SBrad Bishopendif 42feb19ef0SBrad Bishop 43feb19ef0SBrad Bishopif get_option('exit-air').enabled() 44feb19ef0SBrad Bishop executable( 45feb19ef0SBrad Bishop 'exitairtempsensor', 46feb19ef0SBrad Bishop 'ExitAirTempSensor.cpp', 47feb19ef0SBrad Bishop dependencies: [ 48302a61a5SPatrick Williams default_deps, 498b8f606fSPatrick Williams thresholds_dep, 508b8f606fSPatrick Williams utils_dep, 51feb19ef0SBrad Bishop ], 5216966b55SEd Tanous cpp_args: uring_args, 53feb19ef0SBrad Bishop implicit_include_directories: false, 54feb19ef0SBrad Bishop include_directories: '../include', 55feb19ef0SBrad Bishop install: true, 56feb19ef0SBrad Bishop ) 57feb19ef0SBrad Bishopendif 58feb19ef0SBrad Bishop 59feb19ef0SBrad Bishopif get_option('fan').enabled() 60feb19ef0SBrad Bishop executable( 61feb19ef0SBrad Bishop 'fansensor', 62feb19ef0SBrad Bishop 'FanMain.cpp', 63feb19ef0SBrad Bishop 'TachSensor.cpp', 64feb19ef0SBrad Bishop 'PwmSensor.cpp', 65feb19ef0SBrad Bishop dependencies: [ 66302a61a5SPatrick Williams default_deps, 678b8f606fSPatrick Williams gpiodcxx, 688b8f606fSPatrick Williams thresholds_dep, 698b8f606fSPatrick Williams utils_dep, 70feb19ef0SBrad Bishop ], 7116966b55SEd Tanous cpp_args: uring_args, 72feb19ef0SBrad Bishop implicit_include_directories: false, 73feb19ef0SBrad Bishop include_directories: '../include', 74feb19ef0SBrad Bishop install: true, 75feb19ef0SBrad Bishop ) 76feb19ef0SBrad Bishopendif 77feb19ef0SBrad Bishop 78feb19ef0SBrad Bishopif get_option('hwmon-temp').enabled() 79feb19ef0SBrad Bishop executable( 80feb19ef0SBrad Bishop 'hwmontempsensor', 81feb19ef0SBrad Bishop 'HwmonTempMain.cpp', 82feb19ef0SBrad Bishop 'HwmonTempSensor.cpp', 83feb19ef0SBrad Bishop dependencies: [ 84302a61a5SPatrick Williams default_deps, 85a1456c4aSZev Weiss devicemgmt_dep, 868b8f606fSPatrick Williams thresholds_dep, 878b8f606fSPatrick Williams utils_dep, 88feb19ef0SBrad Bishop ], 8916966b55SEd Tanous cpp_args: uring_args, 90feb19ef0SBrad Bishop implicit_include_directories: false, 91feb19ef0SBrad Bishop include_directories: '../include', 92feb19ef0SBrad Bishop install: true, 93feb19ef0SBrad Bishop ) 94feb19ef0SBrad Bishopendif 95feb19ef0SBrad Bishop 96feb19ef0SBrad Bishopif get_option('intrusion').enabled() 97feb19ef0SBrad Bishop executable( 98feb19ef0SBrad Bishop 'intrusionsensor', 99feb19ef0SBrad Bishop 'ChassisIntrusionSensor.cpp', 100feb19ef0SBrad Bishop 'IntrusionSensorMain.cpp', 101feb19ef0SBrad Bishop dependencies: [ 102302a61a5SPatrick Williams default_deps, 1038b8f606fSPatrick Williams gpiodcxx, 104feb19ef0SBrad Bishop i2c, 1058b8f606fSPatrick Williams utils_dep, 106feb19ef0SBrad Bishop ], 10716966b55SEd Tanous cpp_args: uring_args, 108feb19ef0SBrad Bishop implicit_include_directories: false, 109feb19ef0SBrad Bishop include_directories: '../include', 110feb19ef0SBrad Bishop install: true, 111feb19ef0SBrad Bishop ) 112feb19ef0SBrad Bishopendif 113feb19ef0SBrad Bishop 114feb19ef0SBrad Bishopif get_option('ipmb').enabled() 115feb19ef0SBrad Bishop executable( 116feb19ef0SBrad Bishop 'ipmbsensor', 117feb19ef0SBrad Bishop 'IpmbSensor.cpp', 118*3746c553SJayashree Dhanapal 'IpmbSDRSensor.cpp', 119feb19ef0SBrad Bishop dependencies: [ 120302a61a5SPatrick Williams default_deps, 1218b8f606fSPatrick Williams thresholds_dep, 1228b8f606fSPatrick Williams utils_dep, 123feb19ef0SBrad Bishop ], 12416966b55SEd Tanous cpp_args: uring_args, 125feb19ef0SBrad Bishop implicit_include_directories: false, 126feb19ef0SBrad Bishop include_directories: '../include', 127feb19ef0SBrad Bishop install: true, 128feb19ef0SBrad Bishop ) 129feb19ef0SBrad Bishopendif 130feb19ef0SBrad Bishop 13149d12d89SEd Tanousif get_option('mcu').enabled() 132feb19ef0SBrad Bishop executable( 133feb19ef0SBrad Bishop 'mcutempsensor', 134feb19ef0SBrad Bishop 'MCUTempSensor.cpp', 135feb19ef0SBrad Bishop dependencies: [ 136302a61a5SPatrick Williams default_deps, 137feb19ef0SBrad Bishop i2c, 1388b8f606fSPatrick Williams thresholds_dep, 1398b8f606fSPatrick Williams utils_dep, 140feb19ef0SBrad Bishop ], 14116966b55SEd Tanous cpp_args: uring_args, 142feb19ef0SBrad Bishop implicit_include_directories: false, 143feb19ef0SBrad Bishop include_directories: '../include', 144feb19ef0SBrad Bishop install: true, 145feb19ef0SBrad Bishop ) 146feb19ef0SBrad Bishopendif 147feb19ef0SBrad Bishop 148feb19ef0SBrad Bishopif get_option('nvme').enabled() 149e3e3c97aSAndrew Jeffery nvme_srcs = files('NVMeSensorMain.cpp', 'NVMeSensor.cpp') 150e3e3c97aSAndrew Jeffery nvme_srcs += files('NVMeBasicContext.cpp') 151e3e3c97aSAndrew Jeffery 1526f25e7e0SAndrew Jeffery nvme_deps = [ default_deps, i2c, thresholds_dep, utils_dep, threads ] 1536f25e7e0SAndrew Jeffery 154feb19ef0SBrad Bishop executable( 155feb19ef0SBrad Bishop 'nvmesensor', 156e3e3c97aSAndrew Jeffery sources: nvme_srcs, 157e3e3c97aSAndrew Jeffery dependencies: nvme_deps, 15816966b55SEd Tanous cpp_args: uring_args, 159feb19ef0SBrad Bishop implicit_include_directories: false, 160feb19ef0SBrad Bishop include_directories: '../include', 161feb19ef0SBrad Bishop install: true, 162feb19ef0SBrad Bishop ) 163feb19ef0SBrad Bishopendif 164feb19ef0SBrad Bishop 1653a18b860SLei YUif get_option('psu').enabled() 166feb19ef0SBrad Bishop executable( 1673a18b860SLei YU 'psusensor', 168feb19ef0SBrad Bishop 'PSUEvent.cpp', 169feb19ef0SBrad Bishop 'PSUSensor.cpp', 170feb19ef0SBrad Bishop 'PSUSensorMain.cpp', 171feb19ef0SBrad Bishop dependencies: [ 172302a61a5SPatrick Williams default_deps, 1738b8f606fSPatrick Williams pwmsensor_dep, 1748b8f606fSPatrick Williams thresholds_dep, 1758b8f606fSPatrick Williams utils_dep, 176feb19ef0SBrad Bishop ], 17716966b55SEd Tanous cpp_args: uring_args, 178feb19ef0SBrad Bishop implicit_include_directories: false, 179feb19ef0SBrad Bishop include_directories: '../include', 180feb19ef0SBrad Bishop install: true, 181feb19ef0SBrad Bishop ) 182feb19ef0SBrad Bishopendif 183feb19ef0SBrad Bishop 184feb19ef0SBrad Bishopif get_option('external').enabled() 185feb19ef0SBrad Bishop executable( 186feb19ef0SBrad Bishop 'externalsensor', 187feb19ef0SBrad Bishop 'ExternalSensor.cpp', 188feb19ef0SBrad Bishop 'ExternalSensorMain.cpp', 189feb19ef0SBrad Bishop dependencies: [ 190302a61a5SPatrick Williams default_deps, 1918b8f606fSPatrick Williams thresholds_dep, 1928b8f606fSPatrick Williams utils_dep, 193feb19ef0SBrad Bishop ], 19416966b55SEd Tanous cpp_args: uring_args, 195feb19ef0SBrad Bishop implicit_include_directories: false, 196feb19ef0SBrad Bishop include_directories: '../include', 197feb19ef0SBrad Bishop install: true, 198feb19ef0SBrad Bishop ) 199feb19ef0SBrad Bishopendif 200