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 = [ |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 4 | '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 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() |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 14 | sources += ['oem/ibm/pldm_oem_ibm.cpp'] |
Zahed Hossain | f0d1722 | 2020-04-03 05:24:58 -0500 | [diff] [blame] | 15 | endif |
| 16 | |
Deepak Kodihalli | 3c275e1 | 2019-09-21 06:39:39 -0500 | [diff] [blame] | 17 | executable( |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 18 | '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 | ) |