xref: /openbmc/entity-manager/src/meson.build (revision 14a7bc93)
1cpp_args = boost_args + ['-DPACKAGE_DIR="' + packagedir + '/"']
2cpp_args += ['-DSYSCONF_DIR="' + sysconfdir + '/"' ]
3
4executable(
5    'entity-manager',
6    'EntityManager.cpp',
7    'Expression.cpp',
8    'PerformScan.cpp',
9    'PerformProbe.cpp',
10    'Overlay.cpp',
11    'Utils.cpp',
12    cpp_args: cpp_args + ['-DBOOST_ASIO_DISABLE_THREADS'],
13    dependencies: [
14        boost,
15        nlohmann_json_dep,
16        sdbusplus,
17        valijson,
18    ],
19    implicit_include_directories: false,
20    include_directories: '../include',
21    install: true,
22)
23
24if get_option('fru-device')
25    cpp_args_fd = cpp_args
26    if get_option('fru-device-resizefru')
27        cpp_args_fd = cpp_args_fd + ['-DENABLE_FRU_AREA_RESIZE']
28    endif
29    executable(
30        'fru-device',
31        'Expression.cpp',
32        'FruDevice.cpp',
33        'Utils.cpp',
34        'FruUtils.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        implicit_include_directories: false,
45        include_directories: '../include',
46        install: true,
47    )
48endif
49