blob: 6c8fb5f1d299078f2c0b24fe966d0687f32d8a07 [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',
George Liu44073352020-03-12 14:00:13 +08009 'pldmtool.cpp',
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050010]
11
Zahed Hossainf0d17222020-04-03 05:24:58 -050012if get_option('oem-ibm').enabled()
13sources += [
14 'oem/ibm/pldm_host_cmd.cpp'
15 ]
16endif
17
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050018executable(
19 'pldmtool',
20 sources,
21 implicit_include_directories: false,
George Liu44073352020-03-12 14:00:13 +080022 include_directories: include_directories(libpldm_headers),
Xiaochao Ma4f9cac62020-04-08 17:15:46 +080023 dependencies: [libpldm, libpldmutils, dependency('sdbusplus'), dependency('CLI11')],
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050024 install: true,
25 install_dir: get_option('bindir'))