xref: /openbmc/entity-manager/src/meson.build (revision 3c543605)
1cpp_args = boost_args + ['-DPACKAGE_DIR="' + packagedir + '/"']
2
3executable(
4    'entity-manager',
5    'EntityManager.cpp',
6    'PerformScan.cpp',
7    'PerformProbe.cpp',
8    'Overlay.cpp',
9    'Utils.cpp',
10    cpp_args: cpp_args + ['-DBOOST_ASIO_DISABLE_THREADS'],
11    dependencies: [
12        boost,
13        nlohmann_json,
14        sdbusplus,
15        valijson,
16    ],
17    implicit_include_directories: false,
18    include_directories: '../include',
19    install: true,
20)
21
22if get_option('fru-device')
23    cpp_args_fd = cpp_args
24    if get_option('fru-device-resizefru')
25        cpp_args_fd = cpp_args_fd + ['-DENABLE_FRU_AREA_RESIZE']
26    endif
27    executable(
28        'fru-device',
29        'FruDevice.cpp',
30        'Utils.cpp',
31        'FruUtils.cpp',
32        cpp_args: cpp_args_fd,
33        dependencies: [
34            boost,
35            i2c,
36            nlohmann_json,
37            sdbusplus,
38            threads,
39            valijson,
40        ],
41        implicit_include_directories: false,
42        include_directories: '../include',
43        install: true,
44    )
45endif
46