1conf_data = configuration_data() 2conf_data.set10( 3 'VALIDATION_UNSECURE_FEATURE', 4 get_option('validate-unsecure-feature').allowed(), 5) 6conf_data.set10( 7 'INSECURE_UNRESTRICTED_SENSOR_OVERRIDE', 8 get_option('insecure-sensor-override').allowed(), 9) 10configure_file( 11 input: 'dbus-sensor_config.h.in', 12 output: 'dbus-sensor_config.h', 13 configuration: conf_data, 14) 15 16thresholds_a = static_library( 17 'thresholds_a', 18 'Thresholds.cpp', 19 dependencies: default_deps, 20) 21 22thresholds_dep = declare_dependency( 23 link_with: [thresholds_a], 24 dependencies: default_deps, 25) 26 27utils_a = static_library( 28 'utils_a', 29 [ 30 'FileHandle.cpp', 31 'SensorPaths.cpp', 32 'Utils.cpp', 33 ], 34 dependencies: default_deps, 35) 36 37utils_dep = declare_dependency( 38 link_with: [utils_a], 39 dependencies: [sdbusplus], 40) 41 42devicemgmt_a = static_library( 43 'devicemgmt_a', 44 [ 45 'DeviceMgmt.cpp', 46 ], 47 dependencies: default_deps, 48) 49 50devicemgmt_dep = declare_dependency( 51 link_with: [devicemgmt_a], 52 dependencies: default_deps, 53) 54 55pwmsensor_a = static_library( 56 'pwmsensor_a', 57 'PwmSensor.cpp', 58 dependencies: [default_deps, thresholds_dep], 59) 60 61pwmsensor_dep = declare_dependency( 62 link_with: [pwmsensor_a], 63 dependencies: [default_deps, thresholds_dep], 64) 65 66peci_incdirs = [] 67if not meson.get_compiler('cpp').has_header('linux/peci-ioctl.h') 68 peci_incdirs = ['../include'] 69endif 70 71if get_option('intel-cpu').allowed() 72 peci_dep = dependency('libpeci', required: true) 73 subdir('intel-cpu') 74endif 75 76if get_option('adc').allowed() 77 subdir('adc') 78endif 79 80if get_option('exit-air').allowed() 81 subdir('exit-air') 82endif 83 84if get_option('fan').allowed() 85 subdir('fan') 86endif 87 88if get_option('hwmon-temp').allowed() 89 subdir('hwmon-temp') 90endif 91 92if get_option('intrusion').allowed() 93 subdir('intrusion') 94endif 95 96if get_option('ipmb').allowed() 97 subdir('ipmb') 98endif 99 100if get_option('mcu').allowed() 101 subdir('mcu') 102endif 103 104if get_option('nvme').allowed() 105 subdir('nvme') 106endif 107 108if get_option('psu').allowed() 109 subdir('psu') 110endif 111 112if get_option('external').allowed() 113 subdir('external') 114endif 115 116if get_option('tests').allowed() 117 subdir('tests') 118endif 119