blob: 450c62cb6ca2fb493f1515ec3bc64f2165125d21 [file] [log] [blame]
George Liu44073352020-03-12 14:00:13 +08001libpldm_headers = ['.', './oem/ibm']
2
Deepak Kodihalli3c275e12019-09-21 06:39:39 -05003sources = [
Manojkiran Eda3012b632024-08-22 11:09:01 +05304 'pldm_cmd_helper.cpp',
5 'pldm_base_cmd.cpp',
6 'pldm_platform_cmd.cpp',
7 'pldm_bios_cmd.cpp',
8 'pldm_fru_cmd.cpp',
9 'pldm_fw_update_cmd.cpp',
10 'pldmtool.cpp',
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050011]
12
Patrick Williams87bfacd2023-11-29 06:44:36 -060013if get_option('oem-ibm').allowed()
Manojkiran Eda3012b632024-08-22 11:09:01 +053014 sources += ['oem/ibm/pldm_oem_ibm.cpp']
Zahed Hossainf0d17222020-04-03 05:24:58 -050015endif
16
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050017executable(
Manojkiran Eda3012b632024-08-22 11:09:01 +053018 'pldmtool',
19 sources,
20 implicit_include_directories: false,
21 include_directories: include_directories(libpldm_headers),
22 dependencies: [
23 CLI11_dep,
24 libpldm_dep,
25 libpldmutils,
26 nlohmann_json_dep,
27 phosphor_dbus_interfaces,
28 sdbusplus,
29 ],
30 install: true,
31 install_dir: get_option('bindir'),
32)