Adriana Kobylak | 0af80a4 | 2020-05-05 13:32:10 -0500 | [diff] [blame] | 1 | project('phosphor-bmc-code-mgmt', 'cpp', |
| 2 | default_options: [ |
Gunnar Mills | f7a69e1 | 2020-06-15 12:16:51 -0500 | [diff] [blame] | 3 | 'buildtype=debugoptimized', |
Patrick Williams | 4026702 | 2021-08-26 16:48:42 -0500 | [diff] [blame^] | 4 | 'cpp_std=c++20', |
Adriana Kobylak | 0af80a4 | 2020-05-05 13:32:10 -0500 | [diff] [blame] | 5 | 'warning_level=3', |
Gunnar Mills | f7a69e1 | 2020-06-15 12:16:51 -0500 | [diff] [blame] | 6 | 'werror=true' |
Adriana Kobylak | 0af80a4 | 2020-05-05 13:32:10 -0500 | [diff] [blame] | 7 | ], |
Patrick Williams | 4026702 | 2021-08-26 16:48:42 -0500 | [diff] [blame^] | 8 | meson_version: '>= 0.57.0', |
Adriana Kobylak | 0af80a4 | 2020-05-05 13:32:10 -0500 | [diff] [blame] | 9 | license: 'Apache-2.0', |
| 10 | version: '1.0') |
| 11 | |
Lei YU | 2586818 | 2021-05-14 14:50:51 +0800 | [diff] [blame] | 12 | add_project_arguments( |
| 13 | '-DBOOST_SYSTEM_NO_DEPRECATED', |
| 14 | '-DBOOST_ERROR_CODE_HEADER_ONLY', |
| 15 | '-DBOOST_NO_RTTI', |
| 16 | '-DBOOST_NO_TYPEID', |
| 17 | '-DBOOST_ALL_NO_LIB', |
| 18 | '-DBOOST_ASIO_DISABLE_THREADS', |
| 19 | '-DBOOST_ASIO_NO_DEPRECATED', |
| 20 | language: 'cpp', |
| 21 | ) |
| 22 | |
Patrick Williams | 4026702 | 2021-08-26 16:48:42 -0500 | [diff] [blame^] | 23 | cpp = meson.get_compiler('cpp') |
| 24 | |
Adriana Kobylak | 0af80a4 | 2020-05-05 13:32:10 -0500 | [diff] [blame] | 25 | conf = configuration_data() |
| 26 | |
| 27 | # DBus information |
| 28 | conf.set_quoted('BMC_INVENTORY_INTERFACE', 'xyz.openbmc_project.Inventory.Item.Bmc') |
| 29 | conf.set_quoted('BUSNAME_UPDATER', 'xyz.openbmc_project.Software.BMC.Updater') |
| 30 | conf.set_quoted('DOWNLOAD_BUSNAME', 'xyz.openbmc_project.Software.Download') |
| 31 | conf.set_quoted('FILEPATH_IFACE', 'xyz.openbmc_project.Common.FilePath') |
| 32 | conf.set_quoted('INVENTORY_PATH', '/xyz/openbmc_project/inventory/') |
| 33 | conf.set_quoted('MAPPER_BUSNAME', 'xyz.openbmc_project.ObjectMapper') |
| 34 | conf.set_quoted('MAPPER_INTERFACE', 'xyz.openbmc_project.ObjectMapper') |
| 35 | conf.set_quoted('MAPPER_PATH', '/xyz/openbmc_project/object_mapper') |
| 36 | conf.set_quoted('SOFTWARE_OBJPATH', '/xyz/openbmc_project/software') |
| 37 | conf.set_quoted('SYSTEMD_BUSNAME', 'org.freedesktop.systemd1') |
| 38 | conf.set_quoted('SYSTEMD_PATH', '/org/freedesktop/systemd1') |
| 39 | conf.set_quoted('SYSTEMD_INTERFACE', 'org.freedesktop.systemd1.Manager') |
| 40 | conf.set_quoted('VERSION_BUSNAME', 'xyz.openbmc_project.Software.Version') |
| 41 | conf.set_quoted('VERSION_IFACE', 'xyz.openbmc_project.Software.Version') |
Chanh Nguyen | 1fd6ddd | 2021-01-06 11:09:09 +0700 | [diff] [blame] | 42 | conf.set_quoted('EXTENDED_VERSION_IFACE', 'xyz.openbmc_project.Software.ExtendedVersion') |
Adriana Kobylak | 0af80a4 | 2020-05-05 13:32:10 -0500 | [diff] [blame] | 43 | |
| 44 | # Names of the forward and reverse associations |
| 45 | conf.set_quoted('ACTIVATION_FWD_ASSOCIATION', 'inventory') |
| 46 | conf.set_quoted('ACTIVATION_REV_ASSOCIATION', 'activation') |
| 47 | conf.set_quoted('ACTIVE_FWD_ASSOCIATION', 'active') |
| 48 | conf.set_quoted('ACTIVE_REV_ASSOCIATION', 'software_version') |
| 49 | conf.set_quoted('FUNCTIONAL_FWD_ASSOCIATION', 'functional') |
| 50 | conf.set_quoted('FUNCTIONAL_REV_ASSOCIATION', 'software_version') |
| 51 | conf.set_quoted('UPDATEABLE_FWD_ASSOCIATION', 'updateable') |
| 52 | conf.set_quoted('UPDATEABLE_REV_ASSOCIATION', 'software_version') |
| 53 | |
| 54 | # Filesystem files and directories |
| 55 | # The path of the alt rwfs overlay |
| 56 | conf.set_quoted('ALT_RWFS', '/media/alt/var/persist') |
| 57 | # The prefix path for the versioned read-only bmc partitions |
| 58 | conf.set_quoted('BMC_ROFS_PREFIX', get_option('media-dir') + '/rofs-') |
| 59 | # The name of the BMC table of contents file |
| 60 | conf.set_quoted('OS_RELEASE_FILE', '/etc/os-release') |
| 61 | # The dir where activation data is stored in files |
| 62 | conf.set_quoted('PERSIST_DIR', '/var/lib/phosphor-bmc-code-mgmt/') |
| 63 | |
| 64 | # Supported BMC layout types |
| 65 | conf.set('STATIC_LAYOUT', get_option('bmc-layout').contains('static')) |
| 66 | conf.set('UBIFS_LAYOUT', get_option('bmc-layout').contains('ubi')) |
Adriana Kobylak | 70f5bc0 | 2020-05-13 14:08:14 -0500 | [diff] [blame] | 67 | conf.set('MMC_LAYOUT', get_option('bmc-layout').contains('mmc')) |
Adriana Kobylak | 0af80a4 | 2020-05-05 13:32:10 -0500 | [diff] [blame] | 68 | |
| 69 | # Configurable features |
| 70 | conf.set('HOST_BIOS_UPGRADE', get_option('host-bios-upgrade').enabled()) |
Adriana Kobylak | 42bd993 | 2021-01-28 09:45:24 -0600 | [diff] [blame] | 71 | conf.set('WANT_SIGNATURE_VERIFY', \ |
| 72 | get_option('verify-signature').enabled() or \ |
| 73 | get_option('verify-full-signature').enabled()) |
George Liu | 0a06e97 | 2020-12-17 09:17:04 +0800 | [diff] [blame] | 74 | conf.set('WANT_SIGNATURE_FULL_VERIFY', get_option('verify-full-signature').enabled()) |
Adriana Kobylak | 0af80a4 | 2020-05-05 13:32:10 -0500 | [diff] [blame] | 75 | |
| 76 | # Configurable variables |
| 77 | conf.set('ACTIVE_BMC_MAX_ALLOWED', get_option('active-bmc-max-allowed')) |
| 78 | conf.set_quoted('HASH_FILE_NAME', get_option('hash-file-name')) |
| 79 | conf.set_quoted('IMG_UPLOAD_DIR', get_option('img-upload-dir')) |
| 80 | conf.set_quoted('MANIFEST_FILE_NAME', get_option('manifest-file-name')) |
| 81 | conf.set_quoted('MEDIA_DIR', get_option('media-dir')) |
Adriana Kobylak | 73609bb | 2020-06-18 15:05:40 -0500 | [diff] [blame] | 82 | optional_array = get_option('optional-images') |
| 83 | optional_images = '' |
| 84 | foreach optiona_image : optional_array |
| 85 | optional_images = ' '.join([optional_images, optiona_image]) |
| 86 | endforeach |
| 87 | conf.set_quoted('OPTIONAL_IMAGES', optional_images) |
Adriana Kobylak | 0af80a4 | 2020-05-05 13:32:10 -0500 | [diff] [blame] | 88 | conf.set_quoted('PUBLICKEY_FILE_NAME', get_option('publickey-file-name')) |
| 89 | conf.set_quoted('SIGNATURE_FILE_EXT', get_option('signature-file-ext')) |
| 90 | conf.set_quoted('SIGNED_IMAGE_CONF_PATH', get_option('signed-image-conf-path')) |
| 91 | conf.set_quoted('SYNC_LIST_DIR_PATH', get_option('sync-list-dir-path')) |
| 92 | conf.set_quoted('SYNC_LIST_FILE_NAME', get_option('sync-list-file-name')) |
Miguel Gomez | 21dad04 | 2020-06-26 20:54:48 +0000 | [diff] [blame] | 93 | conf.set_quoted('BMC_MSL', get_option('bmc-msl')) |
| 94 | conf.set_quoted('REGEX_BMC_MSL', get_option('regex-bmc-msl')) |
| 95 | |
Lei YU | 6e9fb1d | 2021-02-19 18:01:40 +0800 | [diff] [blame] | 96 | if get_option('host-bios-upgrade').enabled() |
| 97 | conf.set_quoted('BIOS_OBJPATH', get_option('bios-object-path')) |
| 98 | endif |
Adriana Kobylak | 0af80a4 | 2020-05-05 13:32:10 -0500 | [diff] [blame] | 99 | |
| 100 | configure_file(output: 'config.h', configuration: conf) |
Adriana Kobylak | 113492e | 2020-05-05 13:45:45 -0500 | [diff] [blame] | 101 | |
Patrick Williams | 4026702 | 2021-08-26 16:48:42 -0500 | [diff] [blame^] | 102 | sdbusplus_dep = dependency('sdbusplus', required: false) |
| 103 | sdbusplus_proj = dependency('', required: false) |
| 104 | if not sdbusplus_dep.found() or sdbusplus_dep.type_name() == 'internal' |
| 105 | sdbusplus_proj = subproject('sdbusplus') |
| 106 | endif |
| 107 | if not sdbusplus_dep.found() |
| 108 | sdbusplus_dep = sdbusplus_proj.get_variable('sdbusplus_dep') |
| 109 | endif |
| 110 | |
| 111 | if sdbusplus_proj.found() |
| 112 | sdbusplusplus_prog = sdbusplus_proj.get_variable('sdbusplusplus_prog') |
| 113 | sdbuspp_gen_meson_prog = sdbusplus_proj.get_variable( |
| 114 | 'sdbuspp_gen_meson_prog') |
| 115 | else |
| 116 | sdbusplusplus_prog = find_program('sdbus++', native: true) |
| 117 | sdbuspp_gen_meson_prog = find_program('sdbus++-gen-meson', native: true) |
| 118 | endif |
| 119 | |
| 120 | cereal_dep = dependency('cereal', required: false) |
| 121 | has_cereal = cpp.has_header_symbol( |
| 122 | 'cereal/cereal.hpp', |
| 123 | 'cereal::specialize', |
| 124 | dependencies: cereal_dep, |
| 125 | required: false) |
| 126 | if not has_cereal |
| 127 | cereal_opts = import('cmake').subproject_options() |
| 128 | cereal_opts.add_cmake_defines({'BUILD_TESTS': 'OFF'}) |
| 129 | cereal_proj = import('cmake').subproject( |
| 130 | 'cereal', |
| 131 | options: cereal_opts, |
| 132 | required: false) |
| 133 | assert(cereal_proj.found(), 'cereal is required') |
| 134 | cereal_dep = cereal_proj.dependency('cereal') |
| 135 | endif |
| 136 | |
Adriana Kobylak | e0aa780 | 2020-05-05 13:54:49 -0500 | [diff] [blame] | 137 | deps = [ |
Patrick Williams | 4026702 | 2021-08-26 16:48:42 -0500 | [diff] [blame^] | 138 | dependency( |
| 139 | 'phosphor-dbus-interfaces', |
| 140 | fallback: ['phosphor-dbus-interfaces', 'phosphor_dbus_interfaces_dep'], |
| 141 | ), |
| 142 | dependency( |
| 143 | 'phosphor-logging', |
| 144 | fallback: ['phosphor-logging', 'phosphor_logging_dep'], |
| 145 | ), |
| 146 | sdbusplus_dep, |
| 147 | cereal_dep, |
Adriana Kobylak | e0aa780 | 2020-05-05 13:54:49 -0500 | [diff] [blame] | 148 | ] |
| 149 | |
| 150 | ssl = dependency('openssl') |
| 151 | |
Adriana Kobylak | 29a0d90 | 2020-05-05 13:59:49 -0500 | [diff] [blame] | 152 | systemd = dependency('systemd') |
| 153 | systemd_system_unit_dir = systemd.get_pkgconfig_variable('systemdsystemunitdir') |
| 154 | |
| 155 | unit_files = [ |
Adriana Kobylak | 436be81 | 2020-06-17 09:44:56 -0500 | [diff] [blame] | 156 | 'obmc-flash-bmc-setenv@.service.in', |
| 157 | 'reboot-guard-disable.service.in', |
| 158 | 'reboot-guard-enable.service.in', |
| 159 | 'force-reboot.service.in', |
| 160 | 'usr-local.mount.in', |
| 161 | 'xyz.openbmc_project.Software.BMC.Updater.service.in', |
| 162 | 'xyz.openbmc_project.Software.Download.service.in', |
| 163 | 'xyz.openbmc_project.Software.Sync.service.in', |
| 164 | 'xyz.openbmc_project.Software.Version.service.in' |
Adriana Kobylak | 29a0d90 | 2020-05-05 13:59:49 -0500 | [diff] [blame] | 165 | ] |
| 166 | |
Adriana Kobylak | 113492e | 2020-05-05 13:45:45 -0500 | [diff] [blame] | 167 | subdir('xyz/openbmc_project/Software/Image') |
Adriana Kobylak | e0aa780 | 2020-05-05 13:54:49 -0500 | [diff] [blame] | 168 | |
| 169 | image_updater_sources = files( |
| 170 | 'activation.cpp', |
Adriana Kobylak | 73609bb | 2020-06-18 15:05:40 -0500 | [diff] [blame] | 171 | 'images.cpp', |
Adriana Kobylak | e0aa780 | 2020-05-05 13:54:49 -0500 | [diff] [blame] | 172 | 'item_updater.cpp', |
| 173 | 'item_updater_main.cpp', |
| 174 | 'serialize.cpp', |
| 175 | 'version.cpp', |
Miguel Gomez | 21dad04 | 2020-06-26 20:54:48 +0000 | [diff] [blame] | 176 | 'utils.cpp', |
| 177 | 'msl_verify.cpp' |
Adriana Kobylak | e0aa780 | 2020-05-05 13:54:49 -0500 | [diff] [blame] | 178 | ) |
| 179 | |
| 180 | if get_option('bmc-layout').contains('static') |
Adriana Kobylak | 436be81 | 2020-06-17 09:44:56 -0500 | [diff] [blame] | 181 | image_updater_sources += files( |
| 182 | 'static/flash.cpp', |
| 183 | 'static/item_updater_helper.cpp' |
| 184 | ) |
Adriana Kobylak | 86013f3 | 2020-05-13 12:12:38 -0500 | [diff] [blame] | 185 | elif get_option('bmc-layout').contains('ubi') |
Adriana Kobylak | 436be81 | 2020-06-17 09:44:56 -0500 | [diff] [blame] | 186 | image_updater_sources += files( |
| 187 | 'ubi/flash.cpp', |
| 188 | 'ubi/item_updater_helper.cpp' |
| 189 | ) |
| 190 | |
| 191 | unit_files += [ |
| 192 | 'ubi/obmc-flash-bmc-cleanup.service.in', |
| 193 | 'ubi/obmc-flash-bmc-mirroruboot.service.in', |
| 194 | 'ubi/obmc-flash-bmc-ubiremount.service.in', |
| 195 | 'ubi/obmc-flash-bmc-ubiro@.service.in', |
| 196 | 'ubi/obmc-flash-bmc-ubiro-remove@.service.in', |
| 197 | 'ubi/obmc-flash-bmc-ubirw.service.in', |
| 198 | 'ubi/obmc-flash-bmc-ubirw-remove.service.in', |
| 199 | 'ubi/obmc-flash-bmc-updateubootvars@.service.in' |
| 200 | ] |
Adriana Kobylak | 86013f3 | 2020-05-13 12:12:38 -0500 | [diff] [blame] | 201 | elif get_option('bmc-layout').contains('mmc') |
Adriana Kobylak | 436be81 | 2020-06-17 09:44:56 -0500 | [diff] [blame] | 202 | image_updater_sources += files( |
| 203 | 'mmc/flash.cpp', |
| 204 | 'mmc/item_updater_helper.cpp' |
| 205 | ) |
Adriana Kobylak | 70f5bc0 | 2020-05-13 14:08:14 -0500 | [diff] [blame] | 206 | |
| 207 | unit_files += [ |
| 208 | 'mmc/obmc-flash-mmc@.service.in', |
Adriana Kobylak | d7fbc1e | 2020-06-06 07:46:40 -0500 | [diff] [blame] | 209 | 'mmc/obmc-flash-mmc-mount.service.in', |
Adriana Kobylak | 70f5bc0 | 2020-05-13 14:08:14 -0500 | [diff] [blame] | 210 | 'mmc/obmc-flash-mmc-remove@.service.in', |
Adriana Kobylak | 3412435 | 2020-05-22 09:40:40 -0500 | [diff] [blame] | 211 | 'mmc/obmc-flash-mmc-setprimary@.service.in', |
Adriana Kobylak | d7fbc1e | 2020-06-06 07:46:40 -0500 | [diff] [blame] | 212 | 'mmc/obmc-flash-mmc-umount.service.in', |
Adriana Kobylak | 70f5bc0 | 2020-05-13 14:08:14 -0500 | [diff] [blame] | 213 | ] |
Adriana Kobylak | e0aa780 | 2020-05-05 13:54:49 -0500 | [diff] [blame] | 214 | endif |
| 215 | |
Adriana Kobylak | 29a0d90 | 2020-05-05 13:59:49 -0500 | [diff] [blame] | 216 | if get_option('host-bios-upgrade').enabled() |
Adriana Kobylak | 436be81 | 2020-06-17 09:44:56 -0500 | [diff] [blame] | 217 | unit_files += 'obmc-flash-host-bios@.service.in' |
Adriana Kobylak | 29a0d90 | 2020-05-05 13:59:49 -0500 | [diff] [blame] | 218 | endif |
| 219 | |
Adriana Kobylak | e0aa780 | 2020-05-05 13:54:49 -0500 | [diff] [blame] | 220 | if get_option('sync-bmc-files').enabled() |
| 221 | executable( |
| 222 | 'phosphor-sync-software-manager', |
| 223 | 'sync_manager.cpp', |
| 224 | 'sync_manager_main.cpp', |
| 225 | 'sync_watch.cpp', |
| 226 | dependencies: deps, |
| 227 | install: true |
| 228 | ) |
Adriana Kobylak | 817209f | 2020-05-07 09:52:03 -0500 | [diff] [blame] | 229 | |
| 230 | install_data('synclist', |
| 231 | install_dir: get_option('sysconfdir') |
| 232 | ) |
Adriana Kobylak | e0aa780 | 2020-05-05 13:54:49 -0500 | [diff] [blame] | 233 | endif |
| 234 | |
Adriana Kobylak | 42bd993 | 2021-01-28 09:45:24 -0600 | [diff] [blame] | 235 | if (get_option('verify-signature').enabled() or \ |
| 236 | get_option('verify-full-signature').enabled()) |
Adriana Kobylak | e0aa780 | 2020-05-05 13:54:49 -0500 | [diff] [blame] | 237 | image_updater_sources += files( |
George Liu | 0a06e97 | 2020-12-17 09:17:04 +0800 | [diff] [blame] | 238 | 'utils.cpp', |
Adriana Kobylak | e0aa780 | 2020-05-05 13:54:49 -0500 | [diff] [blame] | 239 | 'image_verify.cpp', |
| 240 | 'openssl_alloc.cpp' |
| 241 | ) |
| 242 | endif |
| 243 | |
| 244 | executable( |
| 245 | 'phosphor-download-manager', |
| 246 | 'download_manager.cpp', |
| 247 | 'download_manager_main.cpp', |
| 248 | dependencies: deps, |
| 249 | install: true |
| 250 | ) |
| 251 | |
| 252 | executable( |
| 253 | 'phosphor-image-updater', |
| 254 | image_error_cpp, |
| 255 | image_error_hpp, |
| 256 | image_updater_sources, |
| 257 | dependencies: [deps, ssl], |
| 258 | install: true |
| 259 | ) |
| 260 | |
| 261 | executable( |
| 262 | 'phosphor-version-software-manager', |
| 263 | image_error_cpp, |
| 264 | image_error_hpp, |
| 265 | 'image_manager.cpp', |
| 266 | 'image_manager_main.cpp', |
| 267 | 'version.cpp', |
| 268 | 'watch.cpp', |
| 269 | dependencies: [deps, ssl], |
| 270 | install: true |
| 271 | ) |
Adriana Kobylak | 817209f | 2020-05-07 09:52:03 -0500 | [diff] [blame] | 272 | |
| 273 | install_data('obmc-flash-bmc', |
| 274 | install_mode: 'rwxr-xr-x', |
| 275 | install_dir: get_option('bindir') |
| 276 | ) |
| 277 | |
| 278 | install_data('software.conf', |
| 279 | install_dir: '/usr/lib/tmpfiles.d/' |
| 280 | ) |
Adriana Kobylak | 29a0d90 | 2020-05-05 13:59:49 -0500 | [diff] [blame] | 281 | |
| 282 | foreach u : unit_files |
| 283 | configure_file( |
Adriana Kobylak | 29a0d90 | 2020-05-05 13:59:49 -0500 | [diff] [blame] | 284 | input: u, |
Adriana Kobylak | 436be81 | 2020-06-17 09:44:56 -0500 | [diff] [blame] | 285 | output: '@BASENAME@', |
| 286 | configuration: conf, |
Adriana Kobylak | 29a0d90 | 2020-05-05 13:59:49 -0500 | [diff] [blame] | 287 | install: true, |
| 288 | install_dir: systemd_system_unit_dir, |
Adriana Kobylak | 29a0d90 | 2020-05-05 13:59:49 -0500 | [diff] [blame] | 289 | ) |
| 290 | endforeach |
Adriana Kobylak | 78e72d9 | 2020-05-05 14:01:54 -0500 | [diff] [blame] | 291 | |
| 292 | # If test coverage of source files within the root directory are wanted, |
| 293 | # need to define and build the tests from here |
| 294 | build_tests = get_option('tests') |
| 295 | if not build_tests.disabled() |
| 296 | oe_sdk = get_option('oe-sdk') |
| 297 | if oe_sdk.enabled() |
| 298 | # Setup OE SYSROOT |
| 299 | OECORE_TARGET_SYSROOT = run_command('sh', '-c', 'echo $OECORE_TARGET_SYSROOT').stdout().strip() |
| 300 | if OECORE_TARGET_SYSROOT == '' |
| 301 | error('Unable to get $OECORE_TARGET_SYSROOT, check your environment.') |
| 302 | endif |
| 303 | message('OE_SYSROOT: ' + OECORE_TARGET_SYSROOT) |
| 304 | rpath = ':'.join([OECORE_TARGET_SYSROOT + '/lib', OECORE_TARGET_SYSROOT + '/usr/lib']) |
| 305 | ld_so = run_command('sh', '-c', 'find ' + OECORE_TARGET_SYSROOT + '/lib/ld-*.so | sort -r -n | head -n1').stdout().strip() |
| 306 | dynamic_linker = ['-Wl,-dynamic-linker,' + ld_so] |
| 307 | else |
| 308 | dynamic_linker = [] |
| 309 | endif |
| 310 | |
| 311 | gtest = dependency('gtest', main: true, disabler: true, required: build_tests) |
| 312 | include_srcs = declare_dependency(sources: [ |
George Liu | 0a06e97 | 2020-12-17 09:17:04 +0800 | [diff] [blame] | 313 | 'utils.cpp', |
Adriana Kobylak | 78e72d9 | 2020-05-05 14:01:54 -0500 | [diff] [blame] | 314 | 'image_verify.cpp', |
Adriana Kobylak | 73609bb | 2020-06-18 15:05:40 -0500 | [diff] [blame] | 315 | 'images.cpp', |
Adriana Kobylak | 78e72d9 | 2020-05-05 14:01:54 -0500 | [diff] [blame] | 316 | 'version.cpp'] |
| 317 | ) |
| 318 | |
| 319 | test('utest', |
| 320 | executable( |
| 321 | 'utest', |
| 322 | './test/utest.cpp', |
| 323 | link_args: dynamic_linker, |
| 324 | build_rpath: get_option('oe-sdk').enabled() ? rpath : '', |
| 325 | dependencies: [deps, gtest, include_srcs, ssl] |
| 326 | ) |
| 327 | ) |
| 328 | endif |