blob: 17fe3741cb8b5499140c52474ca3b59d7b7af566 [file] [log] [blame]
George Liu44073352020-03-12 14:00:13 +08001libpldm_headers = ['.', './oem/ibm']
2
Deepak Kodihalli3c275e12019-09-21 06:39:39 -05003sources = [
4 'pldm_cmd_helper.cpp',
5 'pldm_base_cmd.cpp',
George Liud6649362019-11-27 19:06:51 +08006 'pldm_platform_cmd.cpp',
Sridevi Ramesh98576432019-11-27 10:10:28 -06007 'pldm_bios_cmd.cpp',
Sridevi Rameshd4489752019-12-08 09:03:29 -06008 'pldm_fru_cmd.cpp',
Tom Josepheea835a2021-10-25 19:30:32 +05309 'pldm_fw_update_cmd.cpp',
George Liu44073352020-03-12 14:00:13 +080010 'pldmtool.cpp',
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050011]
12
Patrick Williams87bfacd2023-11-29 06:44:36 -060013if get_option('oem-ibm').allowed()
Zahed Hossainf0d17222020-04-03 05:24:58 -050014sources += [
Pavithra Barithayac4e80cc2020-05-26 07:00:26 -050015 'oem/ibm/pldm_oem_ibm.cpp',
Zahed Hossainf0d17222020-04-03 05:24:58 -050016 ]
17endif
18
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050019executable(
20 'pldmtool',
21 sources,
22 implicit_include_directories: false,
George Liu44073352020-03-12 14:00:13 +080023 include_directories: include_directories(libpldm_headers),
Patrick Williams3b1dc012021-04-16 21:51:47 -050024 dependencies: [
25 CLI11_dep,
26 libpldm_dep,
27 libpldmutils,
28 nlohmann_json,
29 phosphor_dbus_interfaces,
30 sdbusplus,
31 ],
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050032 install: true,
33 install_dir: get_option('bindir'))