Jonathan Doman | 366546c | 2023-07-24 12:33:16 -0700 | [diff] [blame] | 1 | cpp_args_smbios = boost_args |
| 2 | if get_option('dimm-dbus').allowed() |
| 3 | cpp_args_smbios += ['-DDIMM_DBUS'] |
| 4 | endif |
| 5 | |
| 6 | if get_option('dimm-only-locator').allowed() |
| 7 | cpp_args_smbios += ['-DDIMM_ONLY_LOCATOR'] |
| 8 | endif |
| 9 | |
| 10 | executable( |
| 11 | 'smbiosmdrv2app', |
| 12 | 'mdrv2.cpp', |
| 13 | 'mdrv2_main.cpp', |
| 14 | 'cpu.cpp', |
| 15 | 'dimm.cpp', |
| 16 | 'system.cpp', |
| 17 | 'pcieslot.cpp', |
| 18 | cpp_args: cpp_args_smbios, |
| 19 | dependencies: [ |
| 20 | boost_dep, |
| 21 | sdbusplus_dep, |
| 22 | phosphor_logging_dep, |
| 23 | phosphor_dbus_interfaces_dep, |
| 24 | ], |
| 25 | implicit_include_directories: false, |
| 26 | include_directories: root_inc, |
| 27 | install: true, |
| 28 | ) |
| 29 | |
| 30 | if get_option('cpuinfo').allowed() |
| 31 | cpp = meson.get_compiler('cpp') |
| 32 | # i2c-tools provides no pkgconfig so we need to find it manually |
| 33 | i2c_dep = cpp.find_library('i2c') |
| 34 | |
| 35 | peci_dep = dependency('libpeci') |
| 36 | |
| 37 | executable( |
| 38 | 'cpuinfoapp', |
| 39 | 'cpuinfo_main.cpp', |
| 40 | 'speed_select.cpp', |
| 41 | 'sst_mailbox.cpp', |
| 42 | 'cpuinfo_utils.cpp', |
| 43 | cpp_args: boost_args, |
| 44 | dependencies: [ |
| 45 | boost_dep, |
| 46 | sdbusplus_dep, |
| 47 | phosphor_logging_dep, |
| 48 | phosphor_dbus_interfaces_dep, |
| 49 | i2c_dep, |
| 50 | peci_dep, |
| 51 | ], |
| 52 | implicit_include_directories: false, |
| 53 | include_directories: root_inc, |
| 54 | install: true, |
| 55 | ) |
| 56 | endif |
| 57 | |
| 58 | if get_option('smbios-ipmi-blob').allowed() |
| 59 | subdir('smbios-ipmi-blobs') |
| 60 | endif |