xref: /openbmc/entity-manager/src/meson.build (revision 37304f099971e0f1805dbc0e3b779a1badfd57a5)
1b4459915SBrad Bishopcpp_args = boost_args + ['-DPACKAGE_DIR="' + packagedir + '/"']
2a9c58929SAndrew Jefferycpp_args += ['-DSYSCONF_DIR="' + sysconfdir + '/"']
3f375feccSPotin 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,
18c3db2c3cSAlexander Hansen        phosphor_logging_dep,
19b4459915SBrad Bishop        sdbusplus,
20ff1ddb7eSBrad Bishop        valijson,
21b4459915SBrad Bishop    ],
22b4459915SBrad Bishop    install: true,
23f375feccSPotin Lai    install_dir: installdir,
24b4459915SBrad Bishop)
25b4459915SBrad Bishop
2692daaaa3SBrad Bishopif get_option('fru-device')
276b3d4c59SAndrei Kartashev    cpp_args_fd = cpp_args
286b3d4c59SAndrei Kartashev    if get_option('fru-device-resizefru')
296b3d4c59SAndrei Kartashev        cpp_args_fd = cpp_args_fd + ['-DENABLE_FRU_AREA_RESIZE']
306b3d4c59SAndrei Kartashev    endif
31dac2dfc3SVu Pham    detect_mode = get_option('fru-device-16bitdetectmode')
32dac2dfc3SVu Pham    cpp_args_fd += ['-DFRU_DEVICE_16BITDETECTMODE="' + detect_mode + '"']
33b4459915SBrad Bishop    executable(
34b4459915SBrad Bishop        'fru-device',
35e45d8c71SBrad Bishop        'expression.cpp',
36e45d8c71SBrad Bishop        'fru_device.cpp',
37e45d8c71SBrad Bishop        'utils.cpp',
38e45d8c71SBrad Bishop        'fru_utils.cpp',
39309c0b13SZev Weiss        'fru_reader.cpp',
406b3d4c59SAndrei Kartashev        cpp_args: cpp_args_fd,
41b4459915SBrad Bishop        dependencies: [
42b4459915SBrad Bishop            boost,
43b4459915SBrad Bishop            i2c,
4414a7bc93SAndrew Jeffery            nlohmann_json_dep,
45c3db2c3cSAlexander Hansen            phosphor_logging_dep,
46b4459915SBrad Bishop            sdbusplus,
47b4459915SBrad Bishop            threads,
48ff1ddb7eSBrad Bishop            valijson,
49b4459915SBrad Bishop        ],
50b4459915SBrad Bishop        install: true,
51f375feccSPotin Lai        install_dir: installdir,
52b4459915SBrad Bishop    )
5392daaaa3SBrad Bishopendif
542ab7341bSChris Sides
552ab7341bSChris Sidesif get_option('devicetree-vpd')
562ab7341bSChris Sides    cpp_args_fd = cpp_args
572ab7341bSChris Sides    executable(
582ab7341bSChris Sides        'devicetree-vpd-parser',
592ab7341bSChris Sides        'machine_context.cpp',
602ab7341bSChris Sides        'devicetree_vpd_parser.cpp',
612ab7341bSChris Sides        cpp_args: cpp_args_fd,
62*37304f09SPatrick Williams        dependencies: [sdbusplus, phosphor_dbus_interfaces_dep],
632ab7341bSChris Sides        install: true,
642ab7341bSChris Sides        install_dir: installdir,
652ab7341bSChris Sides    )
662ab7341bSChris Sidesendif
67