Andrew Geissler | f245410 | 2019-12-06 15:14:08 -0600 | [diff] [blame] | 1 | project( |
| 2 | 'phosphor-state-manager', |
| 3 | 'cpp', |
| 4 | default_options: [ |
| 5 | 'warning_level=3', |
| 6 | 'werror=true', |
Andrew Geissler | 429100a | 2021-09-09 12:50:24 -0500 | [diff] [blame] | 7 | 'cpp_std=c++20' |
Andrew Geissler | f245410 | 2019-12-06 15:14:08 -0600 | [diff] [blame] | 8 | ], |
Andrew Geissler | 429100a | 2021-09-09 12:50:24 -0500 | [diff] [blame] | 9 | meson_version: '>= 0.57.0', |
Andrew Geissler | f245410 | 2019-12-06 15:14:08 -0600 | [diff] [blame] | 10 | license: 'Apache-2.0', |
| 11 | version: '0.1', |
| 12 | ) |
Patrick Williams | f8d5f3e | 2022-04-05 15:51:15 -0500 | [diff] [blame] | 13 | cpp = meson.get_compiler('cpp') |
Andrew Geissler | f245410 | 2019-12-06 15:14:08 -0600 | [diff] [blame] | 14 | |
Thang Tran | ba2241c | 2021-10-26 17:47:09 +0700 | [diff] [blame] | 15 | build_host_gpios = get_option('host-gpios') |
| 16 | |
Andrew Geissler | f245410 | 2019-12-06 15:14:08 -0600 | [diff] [blame] | 17 | conf = configuration_data() |
| 18 | conf.set_quoted( |
| 19 | 'HOST_BUSNAME', get_option('host-busname')) |
| 20 | conf.set_quoted( |
| 21 | 'HOST_OBJPATH', get_option('host-objpath')) |
| 22 | conf.set_quoted( |
Andrew Geissler | fe270d3 | 2021-01-27 14:06:46 -0600 | [diff] [blame] | 23 | 'HYPERVISOR_BUSNAME', get_option('hypervisor-busname')) |
| 24 | conf.set_quoted( |
| 25 | 'HYPERVISOR_OBJPATH', get_option('hypervisor-objpath')) |
| 26 | conf.set_quoted( |
Andrew Geissler | f245410 | 2019-12-06 15:14:08 -0600 | [diff] [blame] | 27 | 'CHASSIS_BUSNAME', get_option('chassis-busname')) |
| 28 | conf.set_quoted( |
| 29 | 'CHASSIS_OBJPATH', get_option('chassis-objpath')) |
| 30 | conf.set_quoted( |
| 31 | 'BMC_BUSNAME', get_option('bmc-busname')) |
| 32 | conf.set_quoted( |
| 33 | 'BMC_OBJPATH', get_option('bmc-objpath')) |
| 34 | conf.set_quoted( |
Andrew Geissler | f245410 | 2019-12-06 15:14:08 -0600 | [diff] [blame] | 35 | 'HOST_STATE_PERSIST_PATH', get_option('host-state-persist-path')) |
| 36 | conf.set_quoted( |
| 37 | 'POH_COUNTER_PERSIST_PATH', get_option('poh-counter-persist-path')) |
| 38 | conf.set_quoted( |
| 39 | 'CHASSIS_STATE_CHANGE_PERSIST_PATH', get_option('chassis-state-change-persist-path')) |
Carol Wang | 71230ef | 2020-02-18 17:39:49 +0800 | [diff] [blame] | 40 | conf.set_quoted( |
Carol Wang | 1dbbef4 | 2020-03-09 11:51:23 +0800 | [diff] [blame] | 41 | 'SCHEDULED_HOST_TRANSITION_PERSIST_PATH', get_option('scheduled-host-transition-persist-path')) |
| 42 | conf.set_quoted( |
Carol Wang | 71230ef | 2020-02-18 17:39:49 +0800 | [diff] [blame] | 43 | 'SCHEDULED_HOST_TRANSITION_BUSNAME', get_option('scheduled-host-transition-busname')) |
Andrew Geissler | f245410 | 2019-12-06 15:14:08 -0600 | [diff] [blame] | 44 | conf.set( |
| 45 | 'BOOT_COUNT_MAX_ALLOWED', get_option('boot-count-max-allowed')) |
| 46 | conf.set( |
| 47 | 'CLASS_VERSION', get_option('class-version')) |
Andrew Geissler | 8d8d731 | 2022-03-04 14:42:26 -0600 | [diff] [blame] | 48 | conf.set_quoted( |
| 49 | 'SYSFS_SECURE_BOOT_PATH', get_option('sysfs-secure-boot-path')) |
| 50 | conf.set_quoted( |
| 51 | 'SYSFS_ABR_IMAGE_PATH', get_option('sysfs-abr-image-path')) |
Thang Tran | ba2241c | 2021-10-26 17:47:09 +0700 | [diff] [blame] | 52 | if build_host_gpios.enabled() |
| 53 | conf.set_quoted( |
| 54 | 'HOST_GPIOS_BUSNAME', get_option('host-gpios-busname')) |
| 55 | conf.set_quoted( |
| 56 | 'HOST_GPIOS_OBJPATH', get_option('host-gpios-objpath')) |
| 57 | endif |
Andrew Geissler | f245410 | 2019-12-06 15:14:08 -0600 | [diff] [blame] | 58 | |
NodeMan97 | bcbee4a | 2022-05-27 15:28:45 -0500 | [diff] [blame] | 59 | conf.set10( |
| 60 | 'ONLY_RUN_APR_ON_POWER_LOSS', get_option('only-run-apr-on-power-loss')) |
| 61 | |
Andrew Geissler | 343dbf8 | 2021-03-16 16:56:09 -0500 | [diff] [blame] | 62 | # globals shared across applications |
| 63 | conf.set_quoted( |
NodeMan97 | bcbee4a | 2022-05-27 15:28:45 -0500 | [diff] [blame] | 64 | 'BASE_FILE_DIR', '/run/openbmc/') |
| 65 | |
| 66 | conf.set_quoted( |
| 67 | 'CHASSIS_LOST_POWER_FILE', '/run/openbmc/chassis@%d-lost-power') |
| 68 | |
| 69 | conf.set_quoted( |
Andrew Geissler | 343dbf8 | 2021-03-16 16:56:09 -0500 | [diff] [blame] | 70 | 'HOST_RUNNING_FILE', '/run/openbmc/host@%d-on') |
| 71 | |
Andrew Geissler | 5259f97 | 2021-08-30 15:46:55 -0500 | [diff] [blame] | 72 | conf.set_quoted( |
| 73 | 'CHASSIS_ON_FILE', '/run/openbmc/chassis@%d-on') |
| 74 | |
Andrew Geissler | f245410 | 2019-12-06 15:14:08 -0600 | [diff] [blame] | 75 | configure_file(output: 'config.h', configuration: conf) |
| 76 | |
Andrew Geissler | 7fdad60 | 2020-06-22 13:46:16 -0500 | [diff] [blame] | 77 | if(get_option('warm-reboot').enabled()) |
| 78 | add_project_arguments('-DENABLE_WARM_REBOOT',language:'cpp') |
| 79 | endif |
| 80 | |
Andrew Geissler | f245410 | 2019-12-06 15:14:08 -0600 | [diff] [blame] | 81 | sdbusplus = dependency('sdbusplus') |
| 82 | sdeventplus = dependency('sdeventplus') |
| 83 | phosphorlogging = dependency('phosphor-logging') |
| 84 | phosphordbusinterfaces = dependency('phosphor-dbus-interfaces') |
Ben Tyner | 2c36e5a | 2021-07-12 14:56:49 -0500 | [diff] [blame] | 85 | libgpiod = dependency('libgpiod', version : '>=1.4.1') |
Allen.Wang | 79b4500 | 2022-02-10 17:59:20 +0800 | [diff] [blame] | 86 | fmt = dependency('fmt') |
Andrew Geissler | f245410 | 2019-12-06 15:14:08 -0600 | [diff] [blame] | 87 | |
Patrick Williams | f8d5f3e | 2022-04-05 15:51:15 -0500 | [diff] [blame] | 88 | if cpp.has_header('nlohmann/json.hpp') |
| 89 | nlohmann_json = declare_dependency() |
| 90 | else |
| 91 | subproject('nlohmann-json') |
| 92 | nlohmann_json = declare_dependency( |
| 93 | include_directories: [ |
| 94 | 'subprojects/nlohmann-json/single_include', |
| 95 | 'subprojects/nlohmann-json/single_include/nlohmann', |
| 96 | ] |
| 97 | ) |
| 98 | endif |
| 99 | |
| 100 | if cpp.has_header('CLI/CLI.hpp') |
| 101 | CLI11 = declare_dependency() |
| 102 | else |
| 103 | CLI11 = dependency('CLI11') |
| 104 | endif |
| 105 | |
| 106 | # Get Cereal dependency. |
| 107 | cereal = dependency('cereal', required: false) |
| 108 | has_cereal = cpp.has_header_symbol( |
| 109 | 'cereal/cereal.hpp', |
| 110 | 'cereal::specialize', |
| 111 | dependencies: cereal, |
| 112 | required: false) |
| 113 | if not has_cereal |
| 114 | cereal_opts = import('cmake').subproject_options() |
| 115 | cereal_opts.add_cmake_defines({'BUILD_TESTS': 'OFF'}) |
| 116 | cereal_proj = import('cmake').subproject( |
| 117 | 'cereal', |
| 118 | options: cereal_opts, |
| 119 | required: false) |
| 120 | assert(cereal_proj.found(), 'cereal is required') |
| 121 | cereal = cereal_proj.dependency('cereal') |
| 122 | endif |
| 123 | |
Andrew Geissler | f245410 | 2019-12-06 15:14:08 -0600 | [diff] [blame] | 124 | executable('phosphor-host-state-manager', |
| 125 | 'host_state_manager.cpp', |
| 126 | 'host_state_manager_main.cpp', |
| 127 | 'settings.cpp', |
Andrew Geissler | 0d1c3f1 | 2021-07-27 16:21:01 -0400 | [diff] [blame] | 128 | 'host_check.cpp', |
Andrew Geissler | 1ab2b6c | 2022-03-10 16:16:15 -0600 | [diff] [blame] | 129 | 'utils.cpp', |
Andrew Geissler | f245410 | 2019-12-06 15:14:08 -0600 | [diff] [blame] | 130 | dependencies: [ |
Patrick Williams | f8d5f3e | 2022-04-05 15:51:15 -0500 | [diff] [blame] | 131 | cereal, |
| 132 | fmt, |
| 133 | libgpiod, |
| 134 | phosphordbusinterfaces, |
| 135 | phosphorlogging, |
| 136 | sdbusplus, |
| 137 | sdeventplus, |
Andrew Geissler | f245410 | 2019-12-06 15:14:08 -0600 | [diff] [blame] | 138 | ], |
| 139 | implicit_include_directories: true, |
| 140 | install: true |
| 141 | ) |
| 142 | |
Andrew Geissler | fe270d3 | 2021-01-27 14:06:46 -0600 | [diff] [blame] | 143 | executable('phosphor-hypervisor-state-manager', |
| 144 | 'hypervisor_state_manager.cpp', |
| 145 | 'hypervisor_state_manager_main.cpp', |
| 146 | 'settings.cpp', |
| 147 | dependencies: [ |
Patrick Williams | f8d5f3e | 2022-04-05 15:51:15 -0500 | [diff] [blame] | 148 | phosphordbusinterfaces, |
| 149 | phosphorlogging, |
| 150 | sdbusplus, |
| 151 | sdeventplus, |
Andrew Geissler | fe270d3 | 2021-01-27 14:06:46 -0600 | [diff] [blame] | 152 | ], |
| 153 | implicit_include_directories: true, |
| 154 | install: true |
| 155 | ) |
| 156 | |
Andrew Geissler | f245410 | 2019-12-06 15:14:08 -0600 | [diff] [blame] | 157 | executable('phosphor-chassis-state-manager', |
| 158 | 'chassis_state_manager.cpp', |
| 159 | 'chassis_state_manager_main.cpp', |
Andrew Geissler | f8ae6a0 | 2022-01-21 17:00:20 -0600 | [diff] [blame] | 160 | 'utils.cpp', |
Andrew Geissler | f245410 | 2019-12-06 15:14:08 -0600 | [diff] [blame] | 161 | dependencies: [ |
Patrick Williams | f8d5f3e | 2022-04-05 15:51:15 -0500 | [diff] [blame] | 162 | cereal, |
| 163 | fmt, |
| 164 | libgpiod, |
| 165 | nlohmann_json, |
| 166 | phosphordbusinterfaces, |
| 167 | phosphorlogging, |
| 168 | sdbusplus, |
| 169 | sdeventplus, |
Andrew Geissler | f245410 | 2019-12-06 15:14:08 -0600 | [diff] [blame] | 170 | ], |
| 171 | implicit_include_directories: true, |
| 172 | install: true |
| 173 | ) |
| 174 | |
Andrew Geissler | 378fe11 | 2022-02-03 16:39:44 -0600 | [diff] [blame] | 175 | executable('phosphor-chassis-check-power-status', |
| 176 | 'chassis_check_power_status.cpp', |
| 177 | 'utils.cpp', |
| 178 | dependencies: [ |
NodeMan97 | 27d1e14 | 2022-07-27 15:10:07 -0500 | [diff] [blame] | 179 | fmt, |
Patrick Williams | f8d5f3e | 2022-04-05 15:51:15 -0500 | [diff] [blame] | 180 | libgpiod, |
| 181 | phosphordbusinterfaces, |
| 182 | phosphorlogging, |
| 183 | sdbusplus, |
Andrew Geissler | 378fe11 | 2022-02-03 16:39:44 -0600 | [diff] [blame] | 184 | ], |
| 185 | implicit_include_directories: true, |
| 186 | install: true |
| 187 | ) |
| 188 | |
Andrew Geissler | f245410 | 2019-12-06 15:14:08 -0600 | [diff] [blame] | 189 | executable('phosphor-bmc-state-manager', |
| 190 | 'bmc_state_manager.cpp', |
| 191 | 'bmc_state_manager_main.cpp', |
Andrew Geissler | 98e64e6 | 2022-01-25 16:02:56 -0600 | [diff] [blame] | 192 | 'utils.cpp', |
Andrew Geissler | f245410 | 2019-12-06 15:14:08 -0600 | [diff] [blame] | 193 | dependencies: [ |
NodeMan97 | 27d1e14 | 2022-07-27 15:10:07 -0500 | [diff] [blame] | 194 | fmt, |
Patrick Williams | f8d5f3e | 2022-04-05 15:51:15 -0500 | [diff] [blame] | 195 | libgpiod, |
| 196 | phosphordbusinterfaces, |
| 197 | phosphorlogging, |
| 198 | sdbusplus, |
| 199 | sdeventplus, |
Andrew Geissler | f245410 | 2019-12-06 15:14:08 -0600 | [diff] [blame] | 200 | ], |
| 201 | implicit_include_directories: true, |
| 202 | install: true |
| 203 | ) |
| 204 | |
| 205 | executable('phosphor-discover-system-state', |
| 206 | 'discover_system_state.cpp', |
| 207 | 'settings.cpp', |
Andrew Geissler | 49e6713 | 2022-01-26 14:27:52 -0600 | [diff] [blame] | 208 | 'utils.cpp', |
Andrew Geissler | f245410 | 2019-12-06 15:14:08 -0600 | [diff] [blame] | 209 | dependencies: [ |
Patrick Williams | f8d5f3e | 2022-04-05 15:51:15 -0500 | [diff] [blame] | 210 | cereal, |
NodeMan97 | bcbee4a | 2022-05-27 15:28:45 -0500 | [diff] [blame] | 211 | fmt, |
Patrick Williams | f8d5f3e | 2022-04-05 15:51:15 -0500 | [diff] [blame] | 212 | libgpiod, |
| 213 | phosphorlogging, |
| 214 | sdbusplus, |
Andrew Geissler | f245410 | 2019-12-06 15:14:08 -0600 | [diff] [blame] | 215 | ], |
| 216 | implicit_include_directories: true, |
| 217 | install: true |
| 218 | ) |
| 219 | |
Andrew Geissler | f245410 | 2019-12-06 15:14:08 -0600 | [diff] [blame] | 220 | executable('phosphor-systemd-target-monitor', |
Andrew Geissler | 9e3afdf | 2022-02-10 15:06:16 -0600 | [diff] [blame] | 221 | 'systemd_service_parser.cpp', |
Andrew Geissler | f245410 | 2019-12-06 15:14:08 -0600 | [diff] [blame] | 222 | 'systemd_target_monitor.cpp', |
| 223 | 'systemd_target_parser.cpp', |
| 224 | 'systemd_target_signal.cpp', |
Andrew Geissler | 55e96ac | 2022-04-19 11:44:53 -0400 | [diff] [blame] | 225 | 'utils.cpp', |
Andrew Geissler | f245410 | 2019-12-06 15:14:08 -0600 | [diff] [blame] | 226 | dependencies: [ |
Patrick Williams | f8d5f3e | 2022-04-05 15:51:15 -0500 | [diff] [blame] | 227 | CLI11, |
Andrew Geissler | 55e96ac | 2022-04-19 11:44:53 -0400 | [diff] [blame] | 228 | libgpiod, |
Patrick Williams | f8d5f3e | 2022-04-05 15:51:15 -0500 | [diff] [blame] | 229 | nlohmann_json, |
| 230 | phosphorlogging, |
| 231 | sdbusplus, |
| 232 | sdeventplus, |
Andrew Geissler | f245410 | 2019-12-06 15:14:08 -0600 | [diff] [blame] | 233 | ], |
| 234 | implicit_include_directories: true, |
| 235 | install: true |
| 236 | ) |
Andrew Geissler | 3f12563 | 2019-12-11 17:08:19 -0600 | [diff] [blame] | 237 | |
Carol Wang | 71230ef | 2020-02-18 17:39:49 +0800 | [diff] [blame] | 238 | executable('phosphor-scheduled-host-transition', |
| 239 | 'scheduled_host_transition_main.cpp', |
| 240 | 'scheduled_host_transition.cpp', |
Carol Wang | dc05939 | 2020-03-13 17:39:17 +0800 | [diff] [blame] | 241 | 'utils.cpp', |
Carol Wang | 71230ef | 2020-02-18 17:39:49 +0800 | [diff] [blame] | 242 | dependencies: [ |
Patrick Williams | f8d5f3e | 2022-04-05 15:51:15 -0500 | [diff] [blame] | 243 | cereal, |
| 244 | libgpiod, |
| 245 | phosphorlogging, |
| 246 | sdbusplus, |
| 247 | sdeventplus, |
Carol Wang | 71230ef | 2020-02-18 17:39:49 +0800 | [diff] [blame] | 248 | ], |
| 249 | implicit_include_directories: true, |
| 250 | install: true |
| 251 | ) |
| 252 | |
Andrew Geissler | ba0163a | 2021-08-11 15:09:50 -0400 | [diff] [blame] | 253 | executable('phosphor-host-reset-recovery', |
| 254 | 'host_reset_recovery.cpp', |
| 255 | dependencies: [ |
Patrick Williams | f8d5f3e | 2022-04-05 15:51:15 -0500 | [diff] [blame] | 256 | phosphorlogging, |
| 257 | sdbusplus, |
Andrew Geissler | ba0163a | 2021-08-11 15:09:50 -0400 | [diff] [blame] | 258 | ], |
| 259 | implicit_include_directories: true, |
| 260 | install: true |
| 261 | ) |
| 262 | |
Andrew Geissler | 6b9421b | 2022-02-24 17:01:55 -0600 | [diff] [blame] | 263 | executable('phosphor-secure-boot-check', |
| 264 | 'secure_boot_check.cpp', |
| 265 | 'utils.cpp', |
| 266 | dependencies: [ |
NodeMan97 | 27d1e14 | 2022-07-27 15:10:07 -0500 | [diff] [blame] | 267 | fmt, sdbusplus, |
| 268 | phosphorlogging, libgpiod |
Andrew Geissler | 6b9421b | 2022-02-24 17:01:55 -0600 | [diff] [blame] | 269 | ], |
| 270 | implicit_include_directories: true, |
| 271 | install: true |
| 272 | ) |
| 273 | |
Andrew Geissler | dfa75fc | 2019-12-11 17:26:42 -0600 | [diff] [blame] | 274 | install_data('obmcutil', |
| 275 | install_mode: 'rwxr-xr-x', |
| 276 | install_dir: get_option('bindir') |
| 277 | ) |
| 278 | |
Andrew Geissler | 128ea8e | 2022-06-22 12:28:15 -0400 | [diff] [blame] | 279 | install_data('scripts/host-reboot', |
| 280 | install_mode: 'rwxr-xr-x', |
| 281 | install_dir: get_option('libexecdir') |
| 282 | ) |
| 283 | |
Andrew Geissler | 179d38c | 2019-12-10 15:05:23 -0600 | [diff] [blame] | 284 | systemd = dependency('systemd') |
Andrew Geissler | 429100a | 2021-09-09 12:50:24 -0500 | [diff] [blame] | 285 | systemd_system_unit_dir = systemd.get_variable( |
| 286 | pkgconfig : 'systemdsystemunitdir') |
Andrew Geissler | 179d38c | 2019-12-10 15:05:23 -0600 | [diff] [blame] | 287 | subdir('service_files') |
Andrew Geissler | c101157 | 2020-01-27 15:09:50 -0600 | [diff] [blame] | 288 | subdir('target_files') |
Andrew Geissler | 179d38c | 2019-12-10 15:05:23 -0600 | [diff] [blame] | 289 | |
Thang Tran | ba2241c | 2021-10-26 17:47:09 +0700 | [diff] [blame] | 290 | if build_host_gpios.enabled() |
| 291 | subdir('host_condition_gpio') |
| 292 | endif |
| 293 | |
Andrew Geissler | efef970 | 2019-12-10 16:56:57 -0600 | [diff] [blame] | 294 | datadir = join_paths( |
| 295 | get_option('sysconfdir'), |
| 296 | 'phosphor-systemd-target-monitor' |
| 297 | ) |
| 298 | subdir('data') |
| 299 | |
Andrew Geissler | 3f12563 | 2019-12-11 17:08:19 -0600 | [diff] [blame] | 300 | build_tests = get_option('tests') |
| 301 | |
| 302 | # If test coverage of source files within the root directory are wanted, |
| 303 | # need to define and build the tests from here |
| 304 | if not build_tests.disabled() |
| 305 | gtest = dependency('gtest', main: true, disabler: true, required: build_tests) |
Carol Wang | 4ca6f3f | 2020-02-19 16:28:59 +0800 | [diff] [blame] | 306 | gmock = dependency('gmock', disabler: true, required: build_tests) |
Andrew Geissler | 3f12563 | 2019-12-11 17:08:19 -0600 | [diff] [blame] | 307 | test( |
| 308 | 'test_systemd_parser', |
| 309 | executable('test_systemd_parser', |
| 310 | './test/systemd_parser.cpp', |
| 311 | 'systemd_target_parser.cpp', |
| 312 | dependencies: [ |
| 313 | gtest, |
Patrick Williams | f8d5f3e | 2022-04-05 15:51:15 -0500 | [diff] [blame] | 314 | nlohmann_json, |
Andrew Geissler | 3f12563 | 2019-12-11 17:08:19 -0600 | [diff] [blame] | 315 | ], |
| 316 | implicit_include_directories: true, |
| 317 | include_directories: '../' |
| 318 | ) |
| 319 | ) |
| 320 | |
| 321 | test( |
| 322 | 'test_systemd_signal', |
| 323 | executable('test_systemd_signal', |
| 324 | './test/systemd_signal.cpp', |
| 325 | 'systemd_target_signal.cpp', |
Andrew Geissler | 55e96ac | 2022-04-19 11:44:53 -0400 | [diff] [blame] | 326 | 'utils.cpp', |
Andrew Geissler | 3f12563 | 2019-12-11 17:08:19 -0600 | [diff] [blame] | 327 | dependencies: [ |
Patrick Williams | f8d5f3e | 2022-04-05 15:51:15 -0500 | [diff] [blame] | 328 | gtest, |
Andrew Geissler | 55e96ac | 2022-04-19 11:44:53 -0400 | [diff] [blame] | 329 | libgpiod, |
Patrick Williams | f8d5f3e | 2022-04-05 15:51:15 -0500 | [diff] [blame] | 330 | nlohmann_json, |
| 331 | phosphorlogging, |
| 332 | sdbusplus, |
| 333 | sdeventplus, |
Andrew Geissler | 3f12563 | 2019-12-11 17:08:19 -0600 | [diff] [blame] | 334 | ], |
| 335 | implicit_include_directories: true, |
| 336 | include_directories: '../' |
| 337 | ) |
| 338 | ) |
Carol Wang | 4ca6f3f | 2020-02-19 16:28:59 +0800 | [diff] [blame] | 339 | |
| 340 | test( |
| 341 | 'test_scheduled_host_transition', |
| 342 | executable('test_scheduled_host_transition', |
| 343 | './test/test_scheduled_host_transition.cpp', |
| 344 | 'scheduled_host_transition.cpp', |
Carol Wang | dc05939 | 2020-03-13 17:39:17 +0800 | [diff] [blame] | 345 | 'utils.cpp', |
Carol Wang | 4ca6f3f | 2020-02-19 16:28:59 +0800 | [diff] [blame] | 346 | dependencies: [ |
Patrick Williams | f8d5f3e | 2022-04-05 15:51:15 -0500 | [diff] [blame] | 347 | cereal, |
| 348 | gmock, |
| 349 | gtest, |
| 350 | libgpiod, |
| 351 | phosphorlogging, |
| 352 | sdbusplus, |
| 353 | sdeventplus, |
Carol Wang | 4ca6f3f | 2020-02-19 16:28:59 +0800 | [diff] [blame] | 354 | ], |
| 355 | implicit_include_directories: true, |
| 356 | include_directories: '../' |
| 357 | ) |
| 358 | ) |
Andrew Geissler | c74716e | 2021-02-09 15:11:10 -0600 | [diff] [blame] | 359 | |
| 360 | test( |
| 361 | 'test_hypervisor_state', |
| 362 | executable('test_hypervisor_state', |
| 363 | './test/hypervisor_state.cpp', |
| 364 | 'hypervisor_state_manager.cpp', |
| 365 | dependencies: [ |
Patrick Williams | f8d5f3e | 2022-04-05 15:51:15 -0500 | [diff] [blame] | 366 | gtest, |
| 367 | phosphorlogging, |
| 368 | sdbusplus, |
| 369 | sdeventplus, |
Andrew Geissler | c74716e | 2021-02-09 15:11:10 -0600 | [diff] [blame] | 370 | ], |
| 371 | implicit_include_directories: true, |
| 372 | include_directories: '../' |
| 373 | ) |
| 374 | ) |
Andrew Geissler | 3f12563 | 2019-12-11 17:08:19 -0600 | [diff] [blame] | 375 | endif |