blob: f28fd1ed7f0e23fda50d3c33f940644d59ae28e1 [file] [log] [blame]
project('ssifbridge', 'cpp',
meson_version: '>=1.1.1',
default_options: [
'buildtype=debugoptimized',
'warning_level=3',
'werror=true',
'cpp_std=c++23',
],
version: '1.0',
)
add_project_arguments(
[
'-Wno-psabi',
'-DBOOST_ASIO_DISABLE_THREADS',
'-DBOOST_ASIO_NO_DEPRECATED',
],
language: 'cpp'
)
deps = [dependency('libsystemd', version : '>=221'),
dependency('systemd'),
dependency('phosphor-logging'),
dependency('sdbusplus'),
dependency('threads')
]
# Configure and install systemd unit files
systemd = dependency('systemd')
systemd_system_unit_dir = systemd.get_variable(
'systemdsystemunitdir',
pkgconfig_define: ['prefix', get_option('prefix')])
fs = import('fs')
fs.copyfile(
'ssifbridge.service',
install: true,
install_dir: systemd_system_unit_dir
)
executable('ssifbridged','ssifbridged.cpp',
dependencies: deps,
install: true)