xref: /openbmc/entity-manager/src/meson.build (revision ca2eb04e)
1b4459915SBrad Bishopcpp_args = boost_args + ['-DPACKAGE_DIR="' + packagedir + '/"']
2a9c58929SAndrew Jefferycpp_args += ['-DSYSCONF_DIR="' + sysconfdir + '/"' ]
3b4459915SBrad Bishop
4b4459915SBrad Bishopexecutable(
5b4459915SBrad Bishop    'entity-manager',
6e45d8c71SBrad Bishop    'entity_manager.cpp',
7e45d8c71SBrad Bishop    'expression.cpp',
8e45d8c71SBrad Bishop    'perform_scan.cpp',
9e45d8c71SBrad Bishop    'perform_probe.cpp',
10e45d8c71SBrad Bishop    'overlay.cpp',
11*ca2eb04eSBenjamin Fair    'topology.cpp',
12e45d8c71SBrad Bishop    'utils.cpp',
13b4459915SBrad Bishop    cpp_args: cpp_args + ['-DBOOST_ASIO_DISABLE_THREADS'],
14b4459915SBrad Bishop    dependencies: [
15b4459915SBrad Bishop        boost,
1614a7bc93SAndrew Jeffery        nlohmann_json_dep,
17b4459915SBrad Bishop        sdbusplus,
18ff1ddb7eSBrad Bishop        valijson,
19b4459915SBrad Bishop    ],
20b4459915SBrad Bishop    implicit_include_directories: false,
21b4459915SBrad Bishop    include_directories: '../include',
22b4459915SBrad Bishop    install: true,
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        implicit_include_directories: false,
47b4459915SBrad Bishop        include_directories: '../include',
48b4459915SBrad Bishop        install: true,
49b4459915SBrad Bishop    )
5092daaaa3SBrad Bishopendif
51