Matt Spinler | ebf6989 | 2024-05-17 14:56:16 -0500 | [diff] [blame^] | 1 | librbmc_sources = files( |
| 2 | 'manager.cpp', |
| 3 | 'role_determination.cpp', |
| 4 | ) |
| 5 | |
| 6 | librbmc_deps = [ |
| 7 | sdbusplus, |
| 8 | phosphordbusinterfaces, |
| 9 | phosphorlogging, |
| 10 | ] |
| 11 | |
| 12 | librbmc_lib = static_library( |
| 13 | 'rbmc', |
| 14 | librbmc_sources, |
| 15 | dependencies: [ |
| 16 | librbmc_deps |
| 17 | ] |
| 18 | ) |
| 19 | |
| 20 | librbmc_dep = declare_dependency( |
| 21 | include_directories: include_directories('.'), |
| 22 | link_with: librbmc_lib, |
| 23 | dependencies: [ |
| 24 | sdbusplus, |
| 25 | phosphordbusinterfaces, |
| 26 | phosphorlogging, |
| 27 | ] |
| 28 | ) |
| 29 | |
| 30 | executable('phosphor-rbmc-state-manager', |
| 31 | 'rbmc_state_manager_main.cpp', |
| 32 | dependencies: [ |
| 33 | librbmc_dep |
| 34 | ], |
| 35 | install: true |
| 36 | ) |
| 37 | |
| 38 | if get_option('tests').allowed() |
| 39 | subdir('test') |
| 40 | endif |