blob: 0ada42d259df02527938e0772910fdd53087d574 [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 ],
20 implicit_include_directories: false,
21 include_directories: '../include',
22 install: true,
23)
24
Brad Bishop92daaaa2020-01-20 15:45:01 -050025if get_option('fru-device')
Andrei Kartashev6b3d4c52020-08-10 19:24:17 +030026 cpp_args_fd = cpp_args
27 if get_option('fru-device-resizefru')
28 cpp_args_fd = cpp_args_fd + ['-DENABLE_FRU_AREA_RESIZE']
29 endif
Brad Bishop92daaaa2020-01-20 15:45:01 -050030 executable(
31 'fru-device',
Brad Bishope45d8c72022-05-25 15:12:53 -040032 'expression.cpp',
33 'fru_device.cpp',
34 'utils.cpp',
35 'fru_utils.cpp',
Zev Weiss309c0b12022-02-25 01:44:12 +000036 'fru_reader.cpp',
Andrei Kartashev6b3d4c52020-08-10 19:24:17 +030037 cpp_args: cpp_args_fd,
Brad Bishop92daaaa2020-01-20 15:45:01 -050038 dependencies: [
39 boost,
40 i2c,
Andrew Jeffery14a7bc92021-08-02 10:01:22 +093041 nlohmann_json_dep,
Brad Bishop92daaaa2020-01-20 15:45:01 -050042 sdbusplus,
43 threads,
44 valijson,
45 ],
46 implicit_include_directories: false,
47 include_directories: '../include',
48 install: true,
49 )
50endif