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 'device.cpp', 12 'error_logging.cpp', 13 'exception_utils.cpp', 14 'ffdc_file.cpp', 15 'id_map.cpp', 16 'journal.cpp', 17 'pmbus_utils.cpp', 18 'rail.cpp', 19 'sensor_monitoring.cpp', 20 'system.cpp', 21 'temporary_file.cpp', 22 23 'actions/if_action.cpp', 24 'actions/i2c_compare_bit_action.cpp', 25 'actions/i2c_compare_byte_action.cpp', 26 'actions/i2c_compare_bytes_action.cpp', 27 'actions/i2c_write_bit_action.cpp', 28 'actions/i2c_write_byte_action.cpp', 29 'actions/i2c_write_bytes_action.cpp', 30 'actions/pmbus_read_sensor_action.cpp', 31 'actions/pmbus_write_vout_command_action.cpp' 32] 33 34phosphor_regulators_library = static_library( 35 'phosphor-regulators', 36 phosphor_regulators_library_source_files, 37 implicit_include_directories: false, 38 include_directories: [ 39 phosphor_regulators_include_directories, 40 libi2c_inc 41 ] 42) 43 44phosphor_regulators = executable( 45 'phosphor-regulators', 46 'interfaces/manager_interface.cpp', 47 'main.cpp', 48 'manager.cpp', 49 dependencies: [ 50 libi2c_dep, 51 phosphor_logging, 52 sdbusplus, 53 sdeventplus, 54 stdplus 55 ], 56 link_with: [ 57 phosphor_regulators_library, 58 libpower 59 ], 60 implicit_include_directories: false, 61 include_directories: phosphor_regulators_include_directories, 62 install: true 63) 64 65regsctl = executable( 66 'regsctl', 67 'regsctl/main.cpp', 68 dependencies: [ 69 sdbusplus 70 ], 71 install: true 72) 73