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