meson.build (f0865dee9a54f382c38e1b5a0752907042eecb3f) | meson.build (78c066f6078704fd202c8a4b02fcf73091481ef1) |
---|---|
1project( 2 'phosphor-state-manager', 3 'cpp', 4 default_options: [ 5 'warning_level=3', 6 'werror=true', 7 'cpp_std=c++23' 8 ], --- 61 unchanged lines hidden (view full) --- 70conf.set10( 71 'ONLY_ALLOW_BOOT_WHEN_BMC_READY', get_option('only-allow-boot-when-bmc-ready')) 72 73# globals shared across applications 74conf.set_quoted( 75 'BASE_FILE_DIR', '/run/openbmc/') 76 77conf.set_quoted( | 1project( 2 'phosphor-state-manager', 3 'cpp', 4 default_options: [ 5 'warning_level=3', 6 'werror=true', 7 'cpp_std=c++23' 8 ], --- 61 unchanged lines hidden (view full) --- 70conf.set10( 71 'ONLY_ALLOW_BOOT_WHEN_BMC_READY', get_option('only-allow-boot-when-bmc-ready')) 72 73# globals shared across applications 74conf.set_quoted( 75 'BASE_FILE_DIR', '/run/openbmc/') 76 77conf.set_quoted( |
78 'CHASSIS_LOST_POWER_FILE', '/run/openbmc/chassis@%d-lost-power') | 78 'CHASSIS_LOST_POWER_FILE', '/run/openbmc/chassis@{}-lost-power') |
79 80conf.set_quoted( | 79 80conf.set_quoted( |
81 'HOST_RUNNING_FILE', '/run/openbmc/host@%d-on') | 81 'HOST_RUNNING_FILE', '/run/openbmc/host@{}-on') |
82 83conf.set_quoted( 84 'CHASSIS_ON_FILE', '/run/openbmc/chassis@%d-on') 85 86configure_file(output: 'config.h', configuration: conf) 87 88if(get_option('warm-reboot').allowed()) 89 add_project_arguments('-DENABLE_WARM_REBOOT',language:'cpp') 90endif 91 92nlohmann_json_dep = dependency('nlohmann_json', include_type: 'system') 93sdbusplus = dependency('sdbusplus') 94sdeventplus = dependency('sdeventplus') 95phosphorlogging = dependency('phosphor-logging') 96phosphordbusinterfaces = dependency('phosphor-dbus-interfaces') 97libgpiod = dependency('libgpiod', version : '>=1.4.1') | 82 83conf.set_quoted( 84 'CHASSIS_ON_FILE', '/run/openbmc/chassis@%d-on') 85 86configure_file(output: 'config.h', configuration: conf) 87 88if(get_option('warm-reboot').allowed()) 89 add_project_arguments('-DENABLE_WARM_REBOOT',language:'cpp') 90endif 91 92nlohmann_json_dep = dependency('nlohmann_json', include_type: 'system') 93sdbusplus = dependency('sdbusplus') 94sdeventplus = dependency('sdeventplus') 95phosphorlogging = dependency('phosphor-logging') 96phosphordbusinterfaces = dependency('phosphor-dbus-interfaces') 97libgpiod = dependency('libgpiod', version : '>=1.4.1') |
98fmt = dependency('fmt') | |
99 100if cpp.has_header('CLI/CLI.hpp') 101 CLI11 = declare_dependency() 102else 103 CLI11 = dependency('CLI11') 104endif 105 106# Get Cereal dependency. --- 17 unchanged lines hidden (view full) --- 124executable('phosphor-host-state-manager', 125 'host_state_manager.cpp', 126 'host_state_manager_main.cpp', 127 'settings.cpp', 128 'host_check.cpp', 129 'utils.cpp', 130 dependencies: [ 131 cereal, | 98 99if cpp.has_header('CLI/CLI.hpp') 100 CLI11 = declare_dependency() 101else 102 CLI11 = dependency('CLI11') 103endif 104 105# Get Cereal dependency. --- 17 unchanged lines hidden (view full) --- 123executable('phosphor-host-state-manager', 124 'host_state_manager.cpp', 125 'host_state_manager_main.cpp', 126 'settings.cpp', 127 'host_check.cpp', 128 'utils.cpp', 129 dependencies: [ 130 cereal, |
132 fmt, | |
133 libgpiod, 134 phosphordbusinterfaces, 135 phosphorlogging, 136 sdbusplus, 137 sdeventplus, 138 ], 139 implicit_include_directories: true, 140 install: true --- 14 unchanged lines hidden (view full) --- 155) 156 157executable('phosphor-chassis-state-manager', 158 'chassis_state_manager.cpp', 159 'chassis_state_manager_main.cpp', 160 'utils.cpp', 161 dependencies: [ 162 cereal, | 131 libgpiod, 132 phosphordbusinterfaces, 133 phosphorlogging, 134 sdbusplus, 135 sdeventplus, 136 ], 137 implicit_include_directories: true, 138 install: true --- 14 unchanged lines hidden (view full) --- 153) 154 155executable('phosphor-chassis-state-manager', 156 'chassis_state_manager.cpp', 157 'chassis_state_manager_main.cpp', 158 'utils.cpp', 159 dependencies: [ 160 cereal, |
163 fmt, | |
164 libgpiod, 165 nlohmann_json_dep, 166 phosphordbusinterfaces, 167 phosphorlogging, 168 sdbusplus, 169 sdeventplus, 170 ], 171 implicit_include_directories: true, 172 install: true 173) 174 175executable('phosphor-chassis-check-power-status', 176 'chassis_check_power_status.cpp', 177 'utils.cpp', 178 dependencies: [ | 161 libgpiod, 162 nlohmann_json_dep, 163 phosphordbusinterfaces, 164 phosphorlogging, 165 sdbusplus, 166 sdeventplus, 167 ], 168 implicit_include_directories: true, 169 install: true 170) 171 172executable('phosphor-chassis-check-power-status', 173 'chassis_check_power_status.cpp', 174 'utils.cpp', 175 dependencies: [ |
179 fmt, | |
180 libgpiod, 181 phosphordbusinterfaces, 182 phosphorlogging, 183 sdbusplus, 184 ], 185 implicit_include_directories: true, 186 install: true 187) 188 189executable('phosphor-bmc-state-manager', 190 'bmc_state_manager.cpp', 191 'bmc_state_manager_main.cpp', 192 'utils.cpp', 193 dependencies: [ | 176 libgpiod, 177 phosphordbusinterfaces, 178 phosphorlogging, 179 sdbusplus, 180 ], 181 implicit_include_directories: true, 182 install: true 183) 184 185executable('phosphor-bmc-state-manager', 186 'bmc_state_manager.cpp', 187 'bmc_state_manager_main.cpp', 188 'utils.cpp', 189 dependencies: [ |
194 fmt, | |
195 libgpiod, 196 phosphordbusinterfaces, 197 phosphorlogging, 198 sdbusplus, 199 sdeventplus, 200 ], 201 implicit_include_directories: true, 202 install: true 203) 204 205executable('phosphor-discover-system-state', 206 'discover_system_state.cpp', 207 'settings.cpp', 208 'utils.cpp', 209 dependencies: [ 210 cereal, | 190 libgpiod, 191 phosphordbusinterfaces, 192 phosphorlogging, 193 sdbusplus, 194 sdeventplus, 195 ], 196 implicit_include_directories: true, 197 install: true 198) 199 200executable('phosphor-discover-system-state', 201 'discover_system_state.cpp', 202 'settings.cpp', 203 'utils.cpp', 204 dependencies: [ 205 cereal, |
211 fmt, | |
212 libgpiod, 213 phosphorlogging, 214 sdbusplus, 215 ], 216 implicit_include_directories: true, 217 install: true 218) 219 --- 39 unchanged lines hidden (view full) --- 259 implicit_include_directories: true, 260 install: true 261) 262 263executable('phosphor-secure-boot-check', 264 'secure_boot_check.cpp', 265 'utils.cpp', 266 dependencies: [ | 206 libgpiod, 207 phosphorlogging, 208 sdbusplus, 209 ], 210 implicit_include_directories: true, 211 install: true 212) 213 --- 39 unchanged lines hidden (view full) --- 253 implicit_include_directories: true, 254 install: true 255) 256 257executable('phosphor-secure-boot-check', 258 'secure_boot_check.cpp', 259 'utils.cpp', 260 dependencies: [ |
267 fmt, sdbusplus, | 261 sdbusplus, |
268 phosphorlogging, libgpiod 269 ], 270 implicit_include_directories: true, 271 install: true 272) 273 274install_data('obmcutil', 275 install_mode: 'rwxr-xr-x', --- 100 unchanged lines hidden --- | 262 phosphorlogging, libgpiod 263 ], 264 implicit_include_directories: true, 265 install: true 266) 267 268install_data('obmcutil', 269 install_mode: 'rwxr-xr-x', --- 100 unchanged lines hidden --- |