1c710b975SWilly Tusensorutils_lib = static_library( 2c710b975SWilly Tu 'sensorutils', 3c710b975SWilly Tu 'sensorutils.cpp', 4c710b975SWilly Tu include_directories: root_inc, 5c710b975SWilly Tu implicit_include_directories: false) 6c710b975SWilly Tu 7c710b975SWilly Tusensorutils_dep = declare_dependency(link_with: sensorutils_lib) 8c710b975SWilly Tu 9*49152e76SHarvey Wuhybrid_dep = [] 10*49152e76SHarvey Wuhybrid_src = [] 11*49152e76SHarvey Wu 12*49152e76SHarvey Wuif not get_option('hybrid-sensors').disabled() 13*49152e76SHarvey Wu hybrid_dep = [ 14*49152e76SHarvey Wu mapper, 15*49152e76SHarvey Wu ] 16*49152e76SHarvey Wu 17*49152e76SHarvey Wu hybrid_src = [ 18*49152e76SHarvey Wu 'sensorhandler.cpp', 19*49152e76SHarvey Wu 'sensordatahandler.cpp', 20*49152e76SHarvey Wu 'ipmisensor.cpp', 21*49152e76SHarvey Wu generated_src, 22*49152e76SHarvey Wu ] 23*49152e76SHarvey Wuendif 24*49152e76SHarvey Wu 25c710b975SWilly Tudbus_sdr_pre = declare_dependency( 26c710b975SWilly Tu include_directories: root_inc, 27c710b975SWilly Tu dependencies: [ 28c710b975SWilly Tu crypto, 299cf0838aSVernon Mauery nlohmann_json_dep, 30c710b975SWilly Tu phosphor_logging_dep, 31c710b975SWilly Tu ipmid_dep, 32c710b975SWilly Tu sensorutils_dep, 33*49152e76SHarvey Wu hybrid_dep, 34c710b975SWilly Tu ]) 35c710b975SWilly Tu 36c710b975SWilly Tudbus_sdr_src = [ 37ba9bbb6fSWilly Tu 'dbus-sdr/sdrutils.cpp', 38ba9bbb6fSWilly Tu 'dbus-sdr/sensorcommands.cpp', 39*49152e76SHarvey Wu 'dbus-sdr/storagecommands.cpp', 40*49152e76SHarvey Wu hybrid_src, 41c710b975SWilly Tu] 42