blob: a7205ac2fb84d5c045a588bb283c8f5baddfa188 [file] [log] [blame]
Brad Bishopb4459912019-11-05 19:39:11 -05001cpp_args = boost_args + ['-DPACKAGE_DIR="' + packagedir + '/"']
Andrew Jefferya9c58922021-06-01 09:28:59 +09302cpp_args += ['-DSYSCONF_DIR="' + sysconfdir + '/"' ]
Brad Bishopb4459912019-11-05 19:39:11 -05003
4executable(
5 'entity-manager',
Brad Bishope45d8c72022-05-25 15:12:53 -04006 'entity_manager.cpp',
7 'expression.cpp',
8 'perform_scan.cpp',
9 'perform_probe.cpp',
10 'overlay.cpp',
Benjamin Fairca2eb042022-09-13 06:40:42 +000011 'topology.cpp',
Brad Bishope45d8c72022-05-25 15:12:53 -040012 'utils.cpp',
Brad Bishopb4459912019-11-05 19:39:11 -050013 cpp_args: cpp_args + ['-DBOOST_ASIO_DISABLE_THREADS'],
14 dependencies: [
15 boost,
Andrew Jeffery14a7bc92021-08-02 10:01:22 +093016 nlohmann_json_dep,
Brad Bishopb4459912019-11-05 19:39:11 -050017 sdbusplus,
Brad Bishopff1ddb72020-01-15 12:24:56 -050018 valijson,
Brad Bishopb4459912019-11-05 19:39:11 -050019 ],
Brad Bishopb4459912019-11-05 19:39:11 -050020 install: true,
21)
22
Brad Bishop92daaaa2020-01-20 15:45:01 -050023if get_option('fru-device')
Andrei Kartashev6b3d4c52020-08-10 19:24:17 +030024 cpp_args_fd = cpp_args
25 if get_option('fru-device-resizefru')
26 cpp_args_fd = cpp_args_fd + ['-DENABLE_FRU_AREA_RESIZE']
27 endif
Brad Bishop92daaaa2020-01-20 15:45:01 -050028 executable(
29 'fru-device',
Brad Bishope45d8c72022-05-25 15:12:53 -040030 'expression.cpp',
31 'fru_device.cpp',
32 'utils.cpp',
33 'fru_utils.cpp',
Zev Weiss309c0b12022-02-25 01:44:12 +000034 'fru_reader.cpp',
Andrei Kartashev6b3d4c52020-08-10 19:24:17 +030035 cpp_args: cpp_args_fd,
Brad Bishop92daaaa2020-01-20 15:45:01 -050036 dependencies: [
37 boost,
38 i2c,
Andrew Jeffery14a7bc92021-08-02 10:01:22 +093039 nlohmann_json_dep,
Brad Bishop92daaaa2020-01-20 15:45:01 -050040 sdbusplus,
41 threads,
42 valijson,
43 ],
Brad Bishop92daaaa2020-01-20 15:45:01 -050044 install: true,
45 )
46endif