xref: /openbmc/entity-manager/src/meson.build (revision 73963328)
1cpp_args = boost_args + ['-DPACKAGE_DIR="' + packagedir + '/"']
2cpp_args += ['-DSYSCONF_DIR="' + sysconfdir + '/"' ]
3
4executable(
5    'entity-manager',
6    'entity_manager.cpp',
7    'expression.cpp',
8    'perform_scan.cpp',
9    'perform_probe.cpp',
10    'overlay.cpp',
11    'topology.cpp',
12    'utils.cpp',
13    cpp_args: cpp_args + ['-DBOOST_ASIO_DISABLE_THREADS'],
14    dependencies: [
15        boost,
16        nlohmann_json_dep,
17        sdbusplus,
18        valijson,
19    ],
20    install: true,
21)
22
23if get_option('fru-device')
24    cpp_args_fd = cpp_args
25    if get_option('fru-device-resizefru')
26        cpp_args_fd = cpp_args_fd + ['-DENABLE_FRU_AREA_RESIZE']
27    endif
28    executable(
29        'fru-device',
30        'expression.cpp',
31        'fru_device.cpp',
32        'utils.cpp',
33        'fru_utils.cpp',
34        'fru_reader.cpp',
35        cpp_args: cpp_args_fd,
36        dependencies: [
37            boost,
38            i2c,
39            nlohmann_json_dep,
40            sdbusplus,
41            threads,
42            valijson,
43        ],
44        install: true,
45    )
46endif
47