George Liu | 4407335 | 2020-03-12 14:00:13 +0800 | [diff] [blame] | 1 | libpldm_headers = ['.', './oem/ibm'] |
| 2 | |
Deepak Kodihalli | 3c275e1 | 2019-09-21 06:39:39 -0500 | [diff] [blame] | 3 | sources = [ |
| 4 | 'pldm_cmd_helper.cpp', |
| 5 | 'pldm_base_cmd.cpp', |
George Liu | d664936 | 2019-11-27 19:06:51 +0800 | [diff] [blame] | 6 | 'pldm_platform_cmd.cpp', |
Sridevi Ramesh | 9857643 | 2019-11-27 10:10:28 -0600 | [diff] [blame] | 7 | 'pldm_bios_cmd.cpp', |
Sridevi Ramesh | d448975 | 2019-12-08 09:03:29 -0600 | [diff] [blame] | 8 | 'pldm_fru_cmd.cpp', |
Tom Joseph | eea835a | 2021-10-25 19:30:32 +0530 | [diff] [blame] | 9 | 'pldm_fw_update_cmd.cpp', |
George Liu | 4407335 | 2020-03-12 14:00:13 +0800 | [diff] [blame] | 10 | 'pldmtool.cpp', |
Deepak Kodihalli | 3c275e1 | 2019-09-21 06:39:39 -0500 | [diff] [blame] | 11 | ] |
| 12 | |
Patrick Williams | 87bfacd | 2023-11-29 06:44:36 -0600 | [diff] [blame] | 13 | if get_option('oem-ibm').allowed() |
Zahed Hossain | f0d1722 | 2020-04-03 05:24:58 -0500 | [diff] [blame] | 14 | sources += [ |
Pavithra Barithaya | c4e80cc | 2020-05-26 07:00:26 -0500 | [diff] [blame] | 15 | 'oem/ibm/pldm_oem_ibm.cpp', |
Zahed Hossain | f0d1722 | 2020-04-03 05:24:58 -0500 | [diff] [blame] | 16 | ] |
| 17 | endif |
| 18 | |
Deepak Kodihalli | 3c275e1 | 2019-09-21 06:39:39 -0500 | [diff] [blame] | 19 | executable( |
| 20 | 'pldmtool', |
| 21 | sources, |
| 22 | implicit_include_directories: false, |
George Liu | 4407335 | 2020-03-12 14:00:13 +0800 | [diff] [blame] | 23 | include_directories: include_directories(libpldm_headers), |
Patrick Williams | 3b1dc01 | 2021-04-16 21:51:47 -0500 | [diff] [blame] | 24 | dependencies: [ |
| 25 | CLI11_dep, |
| 26 | libpldm_dep, |
| 27 | libpldmutils, |
Patrick Williams | cf77284 | 2023-12-07 14:39:52 -0600 | [diff] [blame] | 28 | nlohmann_json_dep, |
Patrick Williams | 3b1dc01 | 2021-04-16 21:51:47 -0500 | [diff] [blame] | 29 | phosphor_dbus_interfaces, |
| 30 | sdbusplus, |
| 31 | ], |
Deepak Kodihalli | 3c275e1 | 2019-09-21 06:39:39 -0500 | [diff] [blame] | 32 | install: true, |
| 33 | install_dir: get_option('bindir')) |