1# SPDX-License-Identifier: Apache-2.0
2
3unit_files += {'input': 'dump-extensions/openpower-dumps/clear_hostdumps_poweroff.service',
4         'output': 'clear_hostdumps_poweroff.service'}
5
6# Configuration header file(openpower_dumps_config.h) generation
7opconf_data = configuration_data()
8
9opconf_data.set_quoted('SYSTEM_DUMP_OBJPATH', get_option('SYSTEM_DUMP_OBJPATH'),
10                      description : 'The system dump manager D-Bus path'
11                    )
12opconf_data.set_quoted('SYSTEM_DUMP_OBJ_ENTRY', get_option('SYSTEM_DUMP_OBJ_ENTRY'),
13                      description : 'The system dump entry D-Bus object path'
14                    )
15
16opconf_data.set_quoted('RESOURCE_DUMP_OBJPATH', get_option('RESOURCE_DUMP_OBJPATH'),
17                      description : 'The resource dump manager D-Bus path'
18                    )
19opconf_data.set_quoted('RESOURCE_DUMP_OBJ_ENTRY', get_option('RESOURCE_DUMP_OBJ_ENTRY'),
20                      description : 'The resource dump entry D-Bus object path'
21                    )
22configure_file(configuration : opconf_data,
23               output : 'openpower_dumps_config.h'
24              )
25
26phosphor_dump_manager_sources += [
27        'dump-extensions/openpower-dumps/dump-extensions.cpp',
28        'dump-extensions/openpower-dumps/dump_manager_system.cpp',
29        'dump-extensions/openpower-dumps/system_dump_entry.cpp',
30        'dump-extensions/openpower-dumps/dump_manager_resource.cpp',
31        'dump-extensions/openpower-dumps/resource_dump_entry.cpp'
32    ]
33