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