Brad Bishop | a0fa15b | 2020-11-06 14:42:24 -0500 | [diff] [blame] | 1 | project( |
| 2 | 'openpower-pnor-code-mgmt', |
| 3 | 'cpp', |
| 4 | default_options: [ |
| 5 | 'warning_level=3', |
| 6 | 'werror=true', |
Patrick Williams | 90475e7 | 2023-07-12 11:15:12 -0500 | [diff] [blame] | 7 | 'cpp_std=c++23', |
Brad Bishop | a0fa15b | 2020-11-06 14:42:24 -0500 | [diff] [blame] | 8 | 'buildtype=debugoptimized', |
| 9 | 'b_ndebug=if-release', |
| 10 | 'b_lto=true', |
| 11 | ], |
| 12 | license: 'Apache-2.0', |
| 13 | version: '1.0', |
Patrick Williams | 90475e7 | 2023-07-12 11:15:12 -0500 | [diff] [blame] | 14 | meson_version: '>=1.1.1', |
Brad Bishop | a0fa15b | 2020-11-06 14:42:24 -0500 | [diff] [blame] | 15 | ) |
| 16 | |
Patrick Williams | 9df0f3f | 2025-02-01 08:36:28 -0500 | [diff] [blame^] | 17 | if (get_option('buildtype') == 'minsize') |
| 18 | add_project_arguments('-DNDEBUG', language: 'cpp') |
Brad Bishop | a0fa15b | 2020-11-06 14:42:24 -0500 | [diff] [blame] | 19 | endif |
| 20 | |
| 21 | # Disable lto when compiling with no optimization |
Patrick Williams | 9df0f3f | 2025-02-01 08:36:28 -0500 | [diff] [blame^] | 22 | if (get_option('optimization') == '0') |
Brad Bishop | a0fa15b | 2020-11-06 14:42:24 -0500 | [diff] [blame] | 23 | add_project_arguments('-fno-lto', language: 'cpp') |
| 24 | message('Disabling lto because optimization is disabled') |
| 25 | endif |
| 26 | |
Brad Bishop | 099543e | 2020-11-09 15:37:58 -0500 | [diff] [blame] | 27 | cxx = meson.get_compiler('cpp') |
| 28 | |
Brad Bishop | a0fa15b | 2020-11-06 14:42:24 -0500 | [diff] [blame] | 29 | extra_sources = [] |
| 30 | extra_unit_files = [] |
| 31 | extra_scripts = [] |
| 32 | |
Patrick Williams | 9c6fa9b | 2023-11-29 06:43:59 -0600 | [diff] [blame] | 33 | build_vpnor = get_option('vpnor').allowed() |
| 34 | build_pldm = get_option('pldm').allowed() |
| 35 | build_verify_signature = get_option('verify-signature').allowed() |
Brad Bishop | a0fa15b | 2020-11-06 14:42:24 -0500 | [diff] [blame] | 36 | |
Brad Bishop | 099543e | 2020-11-09 15:37:58 -0500 | [diff] [blame] | 37 | if not cxx.has_header('CLI/CLI.hpp') |
Patrick Williams | 9df0f3f | 2025-02-01 08:36:28 -0500 | [diff] [blame^] | 38 | error('Could not find CLI.hpp') |
Brad Bishop | 099543e | 2020-11-09 15:37:58 -0500 | [diff] [blame] | 39 | endif |
| 40 | |
Brad Bishop | a0fa15b | 2020-11-06 14:42:24 -0500 | [diff] [blame] | 41 | summary('building for device type', '@0@'.format(get_option('device-type'))) |
| 42 | summary('building vpnor', build_vpnor) |
Adriana Kobylak | 6fc7fcd | 2021-10-18 18:47:55 +0000 | [diff] [blame] | 43 | summary('building pldm', build_pldm) |
Brad Bishop | a0fa15b | 2020-11-06 14:42:24 -0500 | [diff] [blame] | 44 | summary('building signature verify', build_verify_signature) |
| 45 | |
| 46 | subs = configuration_data() |
| 47 | subs.set_quoted('ACTIVATION_FWD_ASSOCIATION', 'inventory') |
| 48 | subs.set_quoted('ACTIVATION_REV_ASSOCIATION', 'activation') |
| 49 | subs.set_quoted('ACTIVE_FWD_ASSOCIATION', 'active') |
| 50 | subs.set('ACTIVE_PNOR_MAX_ALLOWED', 2) |
| 51 | subs.set_quoted('ACTIVE_REV_ASSOCIATION', 'software_version') |
Patrick Williams | 9df0f3f | 2025-02-01 08:36:28 -0500 | [diff] [blame^] | 52 | subs.set_quoted( |
| 53 | 'ASSOCIATIONS_INTERFACE', |
| 54 | 'xyz.openbmc_project.Association.Definitions', |
| 55 | ) |
Brad Bishop | 7c053c3 | 2020-11-16 12:58:11 -0500 | [diff] [blame] | 56 | subs.set_quoted('BUSNAME_UPDATER', 'org.open_power.Software.Host.Updater') |
Brad Bishop | a0fa15b | 2020-11-06 14:42:24 -0500 | [diff] [blame] | 57 | subs.set_quoted('CHASSIS_STATE_OBJ', 'xyz.openbmc_project.State.Chassis') |
Patrick Williams | 9df0f3f | 2025-02-01 08:36:28 -0500 | [diff] [blame^] | 58 | subs.set_quoted( |
| 59 | 'CHASSIS_STATE_OFF', |
| 60 | 'xyz.openbmc_project.State.Chassis.PowerState.Off', |
| 61 | ) |
Brad Bishop | a0fa15b | 2020-11-06 14:42:24 -0500 | [diff] [blame] | 62 | subs.set_quoted('CHASSIS_STATE_PATH', '/xyz/openbmc_project/state/chassis0') |
| 63 | subs.set_quoted('FILEPATH_IFACE', 'xyz.openbmc_project.Common.FilePath') |
| 64 | subs.set_quoted('FUNCTIONAL_FWD_ASSOCIATION', 'functional') |
| 65 | subs.set_quoted('FUNCTIONAL_REV_ASSOCIATION', 'software_version') |
| 66 | subs.set_quoted('HASH_FILE_NAME', 'hashfunc') |
Patrick Williams | 9df0f3f | 2025-02-01 08:36:28 -0500 | [diff] [blame^] | 67 | subs.set_quoted( |
| 68 | 'HOST_INVENTORY_PATH', |
| 69 | '/xyz/openbmc_project/inventory/system/chassis', |
| 70 | ) |
Brad Bishop | a0fa15b | 2020-11-06 14:42:24 -0500 | [diff] [blame] | 71 | subs.set_quoted('IMG_DIR', '/tmp/images') |
| 72 | subs.set_quoted('MANIFEST_FILE', 'MANIFEST') |
| 73 | subs.set_quoted('MAPPER_BUSNAME', 'xyz.openbmc_project.ObjectMapper') |
| 74 | subs.set_quoted('MAPPER_INTERFACE', 'xyz.openbmc_project.ObjectMapper') |
| 75 | subs.set_quoted('MAPPER_PATH', '/xyz/openbmc_project/object_mapper') |
| 76 | subs.set_quoted('MEDIA_DIR', '/media/') |
| 77 | subs.set('MMC_LAYOUT', get_option('device-type') == 'mmc') |
| 78 | subs.set_quoted('PERSIST_DIR', '/var/lib/obmc/openpower-pnor-code-mgmt/') |
| 79 | subs.set_quoted('PNOR_ACTIVE_PATH', '/var/lib/phosphor-software-manager/pnor/') |
| 80 | subs.set_quoted('PNOR_MSL', get_option('msl')) |
| 81 | subs.set_quoted('PNOR_PRSV', '/media/pnor-prsv') |
Patrick Williams | 9df0f3f | 2025-02-01 08:36:28 -0500 | [diff] [blame^] | 82 | subs.set_quoted( |
| 83 | 'PNOR_PRSV_ACTIVE_PATH', |
| 84 | '/var/lib/phosphor-software-manager/pnor/prsv', |
| 85 | ) |
| 86 | subs.set_quoted( |
| 87 | 'PNOR_RO_ACTIVE_PATH', |
| 88 | '/var/lib/phosphor-software-manager/pnor/ro', |
| 89 | ) |
Brad Bishop | a0fa15b | 2020-11-06 14:42:24 -0500 | [diff] [blame] | 90 | subs.set_quoted('PNOR_RO_PREFIX', '/media/pnor-ro-') |
Patrick Williams | 9df0f3f | 2025-02-01 08:36:28 -0500 | [diff] [blame^] | 91 | subs.set_quoted( |
| 92 | 'PNOR_RW_ACTIVE_PATH', |
| 93 | '/var/lib/phosphor-software-manager/pnor/rw', |
| 94 | ) |
Brad Bishop | a0fa15b | 2020-11-06 14:42:24 -0500 | [diff] [blame] | 95 | subs.set_quoted('PNOR_RW_PREFIX', '/media/pnor-rw-') |
| 96 | subs.set_quoted('PNOR_SIGNED_IMAGE_CONF_PATH', '/etc/activationdata/') |
| 97 | subs.set_quoted('PNOR_TOC_FILE', 'pnor.toc') |
| 98 | subs.set_quoted('PNOR_VERSION_PARTITION', 'VERSION') |
| 99 | subs.set_quoted('PUBLICKEY_FILE_NAME', 'publickey') |
| 100 | subs.set_quoted('SIGNATURE_FILE_EXT', '.sig') |
| 101 | subs.set_quoted('SOFTWARE_OBJPATH', '/xyz/openbmc_project/software') |
| 102 | subs.set_quoted('SYSTEMD_BUSNAME', 'org.freedesktop.systemd1') |
| 103 | subs.set_quoted('SYSTEMD_INTERFACE', 'org.freedesktop.systemd1.Manager') |
| 104 | subs.set_quoted('SYSTEMD_PATH', '/org/freedesktop/systemd1') |
| 105 | subs.set_quoted('SYSTEMD_PROPERTY_INTERFACE', 'org.freedesktop.DBus.Properties') |
| 106 | subs.set('UBIFS_LAYOUT', get_option('device-type') == 'ubi') |
| 107 | subs.set_quoted('UPDATEABLE_FWD_ASSOCIATION', 'updateable') |
| 108 | subs.set_quoted('UPDATEABLE_REV_ASSOCIATION', 'software_version') |
| 109 | subs.set_quoted('VERSION_IFACE', 'xyz.openbmc_project.Software.Version') |
| 110 | subs.set('WANT_SIGNATURE_VERIFY', build_verify_signature) |
Patrick Williams | 9df0f3f | 2025-02-01 08:36:28 -0500 | [diff] [blame^] | 111 | configure_file(output: 'config.h', configuration: subs) |
Brad Bishop | a0fa15b | 2020-11-06 14:42:24 -0500 | [diff] [blame] | 112 | |
| 113 | if get_option('device-type') == 'ubi' |
| 114 | extra_sources += [ |
| 115 | 'ubi/activation_ubi.cpp', |
| 116 | 'ubi/item_updater_ubi.cpp', |
| 117 | 'ubi/serialize.cpp', |
| 118 | 'ubi/watch.cpp', |
| 119 | ] |
Patrick Williams | 9df0f3f | 2025-02-01 08:36:28 -0500 | [diff] [blame^] | 120 | extra_scripts += ['ubi/obmc-flash-bios'] |
Brad Bishop | a0fa15b | 2020-11-06 14:42:24 -0500 | [diff] [blame] | 121 | extra_unit_files += [ |
| 122 | 'ubi/obmc-flash-bios-cleanup.service', |
| 123 | 'ubi/obmc-flash-bios-ubiattach.service', |
| 124 | 'ubi/obmc-flash-bios-ubimount@.service', |
| 125 | 'ubi/obmc-flash-bios-ubipatch.service', |
| 126 | 'ubi/obmc-flash-bios-ubiremount.service', |
| 127 | 'ubi/obmc-flash-bios-ubiumount-ro@.service', |
| 128 | 'ubi/obmc-flash-bios-ubiumount-rw@.service', |
| 129 | ] |
| 130 | endif |
| 131 | |
| 132 | if get_option('device-type') == 'mmc' |
Patrick Williams | 9df0f3f | 2025-02-01 08:36:28 -0500 | [diff] [blame^] | 133 | extra_sources += ['mmc/activation_mmc.cpp', 'mmc/item_updater_mmc.cpp'] |
| 134 | extra_scripts += ['mmc/obmc-flash-bios', 'mmc/recover_pnor_files'] |
Brad Bishop | a0fa15b | 2020-11-06 14:42:24 -0500 | [diff] [blame] | 135 | extra_unit_files += [ |
| 136 | 'mmc/obmc-flash-bios-init.service', |
| 137 | 'mmc/obmc-flash-bios-patch.service', |
Isaac Kurth | 514a094 | 2021-10-19 21:17:44 +0000 | [diff] [blame] | 138 | 'mmc/openpower-bios-factory-reset.service', |
Deepa Karthikeyan | a96df3e | 2024-04-16 11:22:29 -0500 | [diff] [blame] | 139 | 'mmc/obmc-recover-pnor.service', |
Adriana Kobylak | 6fc7fcd | 2021-10-18 18:47:55 +0000 | [diff] [blame] | 140 | ] |
| 141 | endif |
| 142 | |
| 143 | if build_pldm |
| 144 | extra_unit_files += [ |
Adriana Kobylak | ac5aec1 | 2021-06-22 16:22:17 +0000 | [diff] [blame] | 145 | 'mmc/openpower-process-host-firmware.service', |
Adriana Kobylak | 53a2739 | 2021-06-14 17:42:40 +0000 | [diff] [blame] | 146 | 'mmc/openpower-update-bios-attr-table.service', |
Brad Bishop | a0fa15b | 2020-11-06 14:42:24 -0500 | [diff] [blame] | 147 | ] |
| 148 | endif |
| 149 | |
| 150 | if get_option('device-type') == 'static' |
| 151 | extra_sources += [ |
| 152 | 'static/item_updater_static.cpp', |
| 153 | 'static/activation_static.cpp', |
| 154 | ] |
Patrick Williams | 9df0f3f | 2025-02-01 08:36:28 -0500 | [diff] [blame^] | 155 | extra_unit_files += ['openpower-pnor-update@.service'] |
Brad Bishop | a0fa15b | 2020-11-06 14:42:24 -0500 | [diff] [blame] | 156 | endif |
| 157 | |
| 158 | if build_verify_signature |
Patrick Williams | 9df0f3f | 2025-02-01 08:36:28 -0500 | [diff] [blame^] | 159 | extra_sources += ['image_verify.cpp'] |
Brad Bishop | a0fa15b | 2020-11-06 14:42:24 -0500 | [diff] [blame] | 160 | endif |
| 161 | |
| 162 | if build_vpnor |
Patrick Williams | 9df0f3f | 2025-02-01 08:36:28 -0500 | [diff] [blame^] | 163 | extra_scripts += ['vpnor/obmc-vpnor-util'] |
Brad Bishop | a0fa15b | 2020-11-06 14:42:24 -0500 | [diff] [blame] | 164 | extra_unit_files += [ |
| 165 | 'vpnor/obmc-vpnor-check-clearvolatile@.service', |
| 166 | 'vpnor/obmc-vpnor-enable-clearvolatile@.service', |
| 167 | 'vpnor/obmc-vpnor-updatesymlinks.service', |
| 168 | ] |
| 169 | endif |
| 170 | |
| 171 | executable( |
| 172 | 'openpower-update-manager', |
| 173 | [ |
| 174 | 'activation.cpp', |
Brad Bishop | 099543e | 2020-11-09 15:37:58 -0500 | [diff] [blame] | 175 | 'functions.cpp', |
Brad Bishop | a0fa15b | 2020-11-06 14:42:24 -0500 | [diff] [blame] | 176 | 'version.cpp', |
| 177 | 'item_updater.cpp', |
| 178 | 'item_updater_main.cpp', |
| 179 | 'utils.cpp', |
| 180 | ] + extra_sources, |
| 181 | dependencies: [ |
| 182 | dependency('libcrypto'), |
| 183 | dependency('libsystemd'), |
| 184 | dependency('openssl'), |
| 185 | dependency('phosphor-dbus-interfaces'), |
| 186 | dependency('phosphor-logging'), |
| 187 | dependency('sdbusplus'), |
Brad Bishop | 0283f7c | 2020-11-09 10:09:26 -0500 | [diff] [blame] | 188 | dependency('sdeventplus'), |
Brad Bishop | a0fa15b | 2020-11-06 14:42:24 -0500 | [diff] [blame] | 189 | ], |
Patrick Williams | 9df0f3f | 2025-02-01 08:36:28 -0500 | [diff] [blame^] | 190 | install: true, |
Brad Bishop | a0fa15b | 2020-11-06 14:42:24 -0500 | [diff] [blame] | 191 | ) |
| 192 | |
| 193 | executable( |
| 194 | 'openpower-pnor-msl', |
Patrick Williams | 9df0f3f | 2025-02-01 08:36:28 -0500 | [diff] [blame^] | 195 | ['msl_verify.cpp', 'msl_verify_main.cpp'], |
Brad Bishop | a0fa15b | 2020-11-06 14:42:24 -0500 | [diff] [blame] | 196 | dependencies: [ |
| 197 | dependency('libsystemd'), |
| 198 | dependency('phosphor-dbus-interfaces'), |
| 199 | dependency('phosphor-logging'), |
| 200 | dependency('sdbusplus'), |
| 201 | ], |
Patrick Williams | 9df0f3f | 2025-02-01 08:36:28 -0500 | [diff] [blame^] | 202 | install: true, |
Brad Bishop | a0fa15b | 2020-11-06 14:42:24 -0500 | [diff] [blame] | 203 | ) |
| 204 | |
George Liu | 24bfa19 | 2023-08-16 14:32:24 +0800 | [diff] [blame] | 205 | fs = import('fs') |
Brad Bishop | a0fa15b | 2020-11-06 14:42:24 -0500 | [diff] [blame] | 206 | foreach s : extra_scripts |
George Liu | 24bfa19 | 2023-08-16 14:32:24 +0800 | [diff] [blame] | 207 | fs.copyfile( |
| 208 | s, |
Brad Bishop | a0fa15b | 2020-11-06 14:42:24 -0500 | [diff] [blame] | 209 | install: true, |
| 210 | install_mode: 'rwxr-xr-x', |
Patrick Williams | 9df0f3f | 2025-02-01 08:36:28 -0500 | [diff] [blame^] | 211 | install_dir: get_option('bindir'), |
Brad Bishop | a0fa15b | 2020-11-06 14:42:24 -0500 | [diff] [blame] | 212 | ) |
| 213 | endforeach |
| 214 | |
| 215 | unit_files = [ |
| 216 | 'op-pnor-msl.service', |
| 217 | 'org.open_power.Software.Host.Updater.service', |
| 218 | ] + extra_unit_files |
| 219 | |
Adriana Kobylak | 067876a | 2021-04-26 19:36:39 +0000 | [diff] [blame] | 220 | systemd_system_unit_dir = dependency('systemd').get_variable( |
Patrick Williams | fe34ccd | 2023-04-12 08:01:04 -0500 | [diff] [blame] | 221 | 'systemdsystemunitdir', |
Patrick Williams | 9df0f3f | 2025-02-01 08:36:28 -0500 | [diff] [blame^] | 222 | pkgconfig_define: ['prefix', get_option('prefix')], |
| 223 | ) |
Brad Bishop | a0fa15b | 2020-11-06 14:42:24 -0500 | [diff] [blame] | 224 | foreach u : unit_files |
Patrick Williams | 9df0f3f | 2025-02-01 08:36:28 -0500 | [diff] [blame^] | 225 | fs.copyfile(u, install: true, install_dir: systemd_system_unit_dir) |
Brad Bishop | a0fa15b | 2020-11-06 14:42:24 -0500 | [diff] [blame] | 226 | endforeach |
| 227 | |
Adriana Kobylak | 067876a | 2021-04-26 19:36:39 +0000 | [diff] [blame] | 228 | dbus_system_bus_services_dir = dependency('dbus-1').get_variable( |
Patrick Williams | fe34ccd | 2023-04-12 08:01:04 -0500 | [diff] [blame] | 229 | 'system_bus_services_dir', |
Patrick Williams | 9df0f3f | 2025-02-01 08:36:28 -0500 | [diff] [blame^] | 230 | pkgconfig_define: ['prefix', get_option('prefix')], |
| 231 | ) |
Brad Bishop | 671a7da | 2020-11-15 13:31:05 -0500 | [diff] [blame] | 232 | dbus_policy_dir = run_command( |
| 233 | 'realpath', |
Patrick Williams | 9df0f3f | 2025-02-01 08:36:28 -0500 | [diff] [blame^] | 234 | join_paths(dbus_system_bus_services_dir, '..', 'system.d'), |
| 235 | ).stdout().strip() |
Brad Bishop | 671a7da | 2020-11-15 13:31:05 -0500 | [diff] [blame] | 236 | |
| 237 | install_data( |
| 238 | 'dbus/org.open_power.Software.Host.Updater.conf', |
Patrick Williams | 9df0f3f | 2025-02-01 08:36:28 -0500 | [diff] [blame^] | 239 | install_dir: dbus_policy_dir, |
| 240 | ) |
Brad Bishop | 671a7da | 2020-11-15 13:31:05 -0500 | [diff] [blame] | 241 | |
Patrick Williams | d1ff1a4 | 2025-01-30 17:47:20 -0500 | [diff] [blame] | 242 | if get_option('tests').allowed() |
Adriana Kobylak | 588a9fa | 2021-06-22 14:28:45 +0000 | [diff] [blame] | 243 | oe_sdk = get_option('oe-sdk') |
Patrick Williams | 9c6fa9b | 2023-11-29 06:43:59 -0600 | [diff] [blame] | 244 | if oe_sdk.allowed() |
Adriana Kobylak | 588a9fa | 2021-06-22 14:28:45 +0000 | [diff] [blame] | 245 | # Setup OE SYSROOT |
Patrick Williams | 9df0f3f | 2025-02-01 08:36:28 -0500 | [diff] [blame^] | 246 | OECORE_TARGET_SYSROOT = run_command( |
| 247 | 'sh', |
| 248 | '-c', |
| 249 | 'echo $OECORE_TARGET_SYSROOT', |
| 250 | ).stdout().strip() |
Adriana Kobylak | 588a9fa | 2021-06-22 14:28:45 +0000 | [diff] [blame] | 251 | if OECORE_TARGET_SYSROOT == '' |
Patrick Williams | 9df0f3f | 2025-02-01 08:36:28 -0500 | [diff] [blame^] | 252 | error( |
| 253 | 'Unable to get $OECORE_TARGET_SYSROOT, check your environment.', |
| 254 | ) |
Adriana Kobylak | 588a9fa | 2021-06-22 14:28:45 +0000 | [diff] [blame] | 255 | endif |
| 256 | message('OE_SYSROOT: ' + OECORE_TARGET_SYSROOT) |
Patrick Williams | 9df0f3f | 2025-02-01 08:36:28 -0500 | [diff] [blame^] | 257 | rpath = ':'.join( |
| 258 | [OECORE_TARGET_SYSROOT + '/lib', OECORE_TARGET_SYSROOT + '/usr/lib'], |
| 259 | ) |
| 260 | ld_so = run_command( |
| 261 | 'sh', |
| 262 | '-c', |
| 263 | 'find ' + OECORE_TARGET_SYSROOT + '/lib/ld-*.so | sort -r -n | head -n1', |
| 264 | ).stdout().strip() |
Adriana Kobylak | 588a9fa | 2021-06-22 14:28:45 +0000 | [diff] [blame] | 265 | dynamic_linker = ['-Wl,-dynamic-linker,' + ld_so] |
| 266 | else |
| 267 | dynamic_linker = [] |
| 268 | endif |
| 269 | |
Brad Bishop | a0fa15b | 2020-11-06 14:42:24 -0500 | [diff] [blame] | 270 | test( |
| 271 | 'utest', |
| 272 | executable( |
| 273 | 'utest', |
| 274 | 'activation.cpp', |
| 275 | 'version.cpp', |
| 276 | 'item_updater.cpp', |
| 277 | 'image_verify.cpp', |
| 278 | 'utils.cpp', |
| 279 | 'msl_verify.cpp', |
| 280 | 'ubi/activation_ubi.cpp', |
| 281 | 'ubi/item_updater_ubi.cpp', |
| 282 | 'ubi/serialize.cpp', |
| 283 | 'ubi/watch.cpp', |
| 284 | 'static/item_updater_static.cpp', |
| 285 | 'static/activation_static.cpp', |
| 286 | 'test/test_signature.cpp', |
| 287 | 'test/test_version.cpp', |
| 288 | 'test/test_item_updater_static.cpp', |
| 289 | 'msl_verify.cpp', |
| 290 | dependencies: [ |
| 291 | dependency('libcrypto'), |
| 292 | dependency('gtest', main: true), |
| 293 | dependency('openssl'), |
| 294 | dependency('phosphor-logging'), |
| 295 | dependency('phosphor-dbus-interfaces'), |
| 296 | ], |
| 297 | implicit_include_directories: false, |
| 298 | include_directories: '.', |
Patrick Williams | 9df0f3f | 2025-02-01 08:36:28 -0500 | [diff] [blame^] | 299 | ), |
Brad Bishop | a0fa15b | 2020-11-06 14:42:24 -0500 | [diff] [blame] | 300 | ) |
Brad Bishop | 099543e | 2020-11-09 15:37:58 -0500 | [diff] [blame] | 301 | test( |
| 302 | 'test_functions', |
| 303 | executable( |
| 304 | 'test_functions', |
| 305 | 'test/test_functions.cpp', |
| 306 | 'functions.cpp', |
| 307 | dependencies: [ |
| 308 | dependency('gtest', main: true), |
Adriana Kobylak | 2b78eb0 | 2022-04-06 19:38:47 +0000 | [diff] [blame] | 309 | dependency('phosphor-dbus-interfaces'), |
Brad Bishop | 099543e | 2020-11-09 15:37:58 -0500 | [diff] [blame] | 310 | dependency('sdbusplus'), |
| 311 | dependency('sdeventplus'), |
| 312 | ], |
Patrick Williams | 9df0f3f | 2025-02-01 08:36:28 -0500 | [diff] [blame^] | 313 | ), |
Brad Bishop | 099543e | 2020-11-09 15:37:58 -0500 | [diff] [blame] | 314 | ) |
Brad Bishop | a0fa15b | 2020-11-06 14:42:24 -0500 | [diff] [blame] | 315 | endif |