1phosphor_regulators_include_directories = include_directories( 2 '.', 3 '../..', 4 'actions' 5) 6 7phosphor_regulators_library_source_files = [ 8 'chassis.cpp', 9 'config_file_parser.cpp', 10 'configuration.cpp', 11 'dbus_sensor.cpp', 12 'dbus_sensors.cpp', 13 'device.cpp', 14 'error_logging.cpp', 15 'error_logging_utils.cpp', 16 'exception_utils.cpp', 17 'ffdc_file.cpp', 18 'id_map.cpp', 19 'journal.cpp', 20 'pmbus_utils.cpp', 21 'presence_detection.cpp', 22 'presence_service.cpp', 23 'rail.cpp', 24 'sensor_monitoring.cpp', 25 'system.cpp', 26 'temporary_file.cpp', 27 'vpd.cpp', 28 29 'actions/compare_presence_action.cpp', 30 'actions/compare_vpd_action.cpp', 31 'actions/if_action.cpp', 32 'actions/i2c_compare_bit_action.cpp', 33 'actions/i2c_compare_byte_action.cpp', 34 'actions/i2c_compare_bytes_action.cpp', 35 'actions/i2c_write_bit_action.cpp', 36 'actions/i2c_write_byte_action.cpp', 37 'actions/i2c_write_bytes_action.cpp', 38 'actions/pmbus_read_sensor_action.cpp', 39 'actions/pmbus_write_vout_command_action.cpp' 40] 41 42phosphor_regulators_library = static_library( 43 'phosphor-regulators', 44 phosphor_regulators_library_source_files, 45 implicit_include_directories: false, 46 include_directories: [ 47 phosphor_regulators_include_directories, 48 libi2c_inc 49 ] 50) 51 52phosphor_regulators = executable( 53 'phosphor-regulators', 54 'interfaces/manager_interface.cpp', 55 'main.cpp', 56 'manager.cpp', 57 dependencies: [ 58 libi2c_dep, 59 phosphor_logging, 60 sdbusplus, 61 sdeventplus, 62 stdplus 63 ], 64 link_with: [ 65 phosphor_regulators_library, 66 libpower 67 ], 68 implicit_include_directories: false, 69 include_directories: phosphor_regulators_include_directories, 70 install: true 71) 72 73regsctl = executable( 74 'regsctl', 75 'regsctl/main.cpp', 76 dependencies: [ 77 sdbusplus 78 ], 79 install: true 80) 81