xref: /openbmc/entity-manager/src/meson.build (revision f375fecc)
1b4459915SBrad Bishopcpp_args = boost_args + ['-DPACKAGE_DIR="' + packagedir + '/"']
2a9c58929SAndrew Jefferycpp_args += ['-DSYSCONF_DIR="' + sysconfdir + '/"' ]
3*f375feccSPotin Laiinstalldir = join_paths(get_option('libexecdir'), 'entity-manager')
4b4459915SBrad Bishop
5b4459915SBrad Bishopexecutable(
6b4459915SBrad Bishop    'entity-manager',
7e45d8c71SBrad Bishop    'entity_manager.cpp',
8e45d8c71SBrad Bishop    'expression.cpp',
9e45d8c71SBrad Bishop    'perform_scan.cpp',
10e45d8c71SBrad Bishop    'perform_probe.cpp',
11e45d8c71SBrad Bishop    'overlay.cpp',
12ca2eb04eSBenjamin Fair    'topology.cpp',
13e45d8c71SBrad Bishop    'utils.cpp',
14b4459915SBrad Bishop    cpp_args: cpp_args + ['-DBOOST_ASIO_DISABLE_THREADS'],
15b4459915SBrad Bishop    dependencies: [
16b4459915SBrad Bishop        boost,
1714a7bc93SAndrew Jeffery        nlohmann_json_dep,
18b4459915SBrad Bishop        sdbusplus,
19ff1ddb7eSBrad Bishop        valijson,
20b4459915SBrad Bishop    ],
21b4459915SBrad Bishop    install: true,
22*f375feccSPotin Lai    install_dir: installdir,
23b4459915SBrad Bishop)
24b4459915SBrad Bishop
2592daaaa3SBrad Bishopif get_option('fru-device')
266b3d4c59SAndrei Kartashev    cpp_args_fd = cpp_args
276b3d4c59SAndrei Kartashev    if get_option('fru-device-resizefru')
286b3d4c59SAndrei Kartashev        cpp_args_fd = cpp_args_fd + ['-DENABLE_FRU_AREA_RESIZE']
296b3d4c59SAndrei Kartashev    endif
30b4459915SBrad Bishop    executable(
31b4459915SBrad Bishop        'fru-device',
32e45d8c71SBrad Bishop        'expression.cpp',
33e45d8c71SBrad Bishop        'fru_device.cpp',
34e45d8c71SBrad Bishop        'utils.cpp',
35e45d8c71SBrad Bishop        'fru_utils.cpp',
36309c0b13SZev Weiss        'fru_reader.cpp',
376b3d4c59SAndrei Kartashev        cpp_args: cpp_args_fd,
38b4459915SBrad Bishop        dependencies: [
39b4459915SBrad Bishop            boost,
40b4459915SBrad Bishop            i2c,
4114a7bc93SAndrew Jeffery            nlohmann_json_dep,
42b4459915SBrad Bishop            sdbusplus,
43b4459915SBrad Bishop            threads,
44ff1ddb7eSBrad Bishop            valijson,
45b4459915SBrad Bishop        ],
46b4459915SBrad Bishop        install: true,
47*f375feccSPotin Lai        install_dir: installdir,
48b4459915SBrad Bishop    )
4992daaaa3SBrad Bishopendif
50