加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
meson.build 1.50 KB
一键复制 编辑 原始数据 按行查看 历史
project(
'openpower-debug-collector',
'cpp',
meson_version: '>=1.1.1',
default_options: [
'warning_level=3',
'werror=true',
'cpp_std=c++23'
],
license: 'Apache-2.0',
version: '1.0.0',
)
cxx = meson.get_compiler('cpp')
sdbusplus_dep = dependency('sdbusplus')
if cxx.has_header('CLI/CLI.hpp')
CLI11_dep = declare_dependency()
else
CLI11_dep = dependency('CLI11')
endif
phosphorlogging = dependency(
'phosphor-logging',
fallback: [
'phosphor-logging',
'phosphor_logging_dep'
]
)
realpath_prog = find_program('realpath')
conf_data = configuration_data()
if get_option('hostboot-dump-collection').allowed()
conf_data.set('WATCHDOG_DUMP_COLLECTION', true)
extra_deps = [
cxx.find_library('pdbg'),
cxx.find_library('libdt-api'),
cxx.find_library('phal')
]
subdir('watchdog')
else
conf_data.set('WATCHDOG_DUMP_COLLECTION', false)
watchdog_lib = []
extra_deps = []
endif
configure_file(output: 'config.h', configuration: conf_data)
if get_option('dump-collection').enabled()
subdir('dump')
endif
deps = [
CLI11_dep,
sdbusplus_dep,
phosphorlogging,
extra_deps
]
executable('watchdog_timeout',
'watchdog_timeout.cpp',
dependencies: deps,
link_with: watchdog_lib,
implicit_include_directories: true,
install: true
)
executable('checkstop_app',
'checkstop_app.cpp',
dependencies: deps,
implicit_include_directories: true,
install: true
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化