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 include_directories: ['.'], 24 link_with: [thresholds_a], 25 dependencies: default_deps, 26) 27 28utils_a = static_library( 29 'utils_a', 30 ['FileHandle.cpp', 'SensorPaths.cpp', 'Utils.cpp'], 31 dependencies: default_deps, 32) 33 34utils_dep = declare_dependency( 35 include_directories: ['.'], 36 link_with: [utils_a], 37 dependencies: [sdbusplus], 38) 39 40devicemgmt_a = static_library( 41 'devicemgmt_a', 42 ['DeviceMgmt.cpp'], 43 dependencies: default_deps, 44) 45 46devicemgmt_dep = declare_dependency( 47 include_directories: ['.'], 48 link_with: [devicemgmt_a], 49 dependencies: default_deps, 50) 51 52pwmsensor_a = static_library( 53 'pwmsensor_a', 54 'PwmSensor.cpp', 55 dependencies: [default_deps, thresholds_dep], 56) 57 58pwmsensor_dep = declare_dependency( 59 include_directories: ['.'], 60 link_with: [pwmsensor_a], 61 dependencies: [default_deps, thresholds_dep], 62) 63 64peci_incdirs = [] 65if not meson.get_compiler('cpp').has_header('linux/peci-ioctl.h') 66 peci_incdirs = ['../include'] 67endif 68 69if get_option('intel-cpu').allowed() 70 peci_dep = dependency('libpeci', required: true) 71 subdir('intel-cpu') 72endif 73 74if get_option('adc').allowed() 75 subdir('adc') 76endif 77 78if get_option('exit-air').allowed() 79 subdir('exit-air') 80endif 81 82if get_option('fan').allowed() 83 subdir('fan') 84endif 85 86if get_option('hwmon-temp').allowed() 87 subdir('hwmon-temp') 88endif 89 90if get_option('intrusion').allowed() 91 subdir('intrusion') 92endif 93 94if get_option('ipmb').allowed() 95 subdir('ipmb') 96endif 97 98if get_option('mctp').allowed() 99 subdir('mctp') 100endif 101 102if get_option('mcu').allowed() 103 subdir('mcu') 104endif 105 106if get_option('nvme').allowed() 107 subdir('nvme') 108endif 109 110if get_option('psu').allowed() 111 subdir('psu') 112endif 113 114if get_option('external').allowed() 115 subdir('external') 116endif 117 118if get_option('tests').allowed() 119 subdir('tests') 120endif 121