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', |
George Liu | 4407335 | 2020-03-12 14:00:13 +0800 | [diff] [blame] | 9 | 'pldmtool.cpp', |
Deepak Kodihalli | 3c275e1 | 2019-09-21 06:39:39 -0500 | [diff] [blame] | 10 | ] |
| 11 | |
Zahed Hossain | f0d1722 | 2020-04-03 05:24:58 -0500 | [diff] [blame] | 12 | if get_option('oem-ibm').enabled() |
| 13 | sources += [ |
| 14 | 'oem/ibm/pldm_host_cmd.cpp' |
| 15 | ] |
| 16 | endif |
| 17 | |
Deepak Kodihalli | 3c275e1 | 2019-09-21 06:39:39 -0500 | [diff] [blame] | 18 | executable( |
| 19 | 'pldmtool', |
| 20 | sources, |
| 21 | implicit_include_directories: false, |
George Liu | 4407335 | 2020-03-12 14:00:13 +0800 | [diff] [blame] | 22 | include_directories: include_directories(libpldm_headers), |
Pavithra Barithaya | ac3c45a | 2020-03-05 02:28:26 -0600 | [diff] [blame] | 23 | dependencies: [libpldm, libpldmutils, dependency('sdbusplus')], |
Deepak Kodihalli | 3c275e1 | 2019-09-21 06:39:39 -0500 | [diff] [blame] | 24 | install: true, |
| 25 | install_dir: get_option('bindir')) |