blob: 7ca6c9b6c4d9ca200f69f719ffede9a5d53e51c1 [file] [log] [blame]
Dung Caofaf6a6a2020-12-28 04:44:45 +00001project('ssifbridge', 'cpp',
Patrick Williams16592b32023-07-12 11:15:51 -05002 meson_version: '>=1.1.1',
Dung Caofaf6a6a2020-12-28 04:44:45 +00003 default_options: [
4 'buildtype=debugoptimized',
5 'warning_level=3',
6 'werror=true',
Patrick Williams16592b32023-07-12 11:15:51 -05007 'cpp_std=c++23',
Dung Caofaf6a6a2020-12-28 04:44:45 +00008 ],
9 version: '1.0',
Thang Q. Nguyen20c6f952020-12-09 03:28:44 +000010)
11
Dung Caofaf6a6a2020-12-28 04:44:45 +000012add_project_arguments('-Wno-psabi', language: 'cpp')
Thang Q. Nguyen20c6f952020-12-09 03:28:44 +000013
14deps = [dependency('libsystemd', version : '>=221'),
15 dependency('systemd'),
Dung Caofaf6a6a2020-12-28 04:44:45 +000016 dependency('phosphor-logging'),
17 dependency('sdbusplus'),
18 dependency('threads')
Thang Q. Nguyen20c6f952020-12-09 03:28:44 +000019
Dung Caofaf6a6a2020-12-28 04:44:45 +000020]
21
Dung Caof6249412021-01-14 03:41:56 +000022# Configure and install systemd unit files
23systemd = dependency('systemd')
Patrick Williams6f25d7b2023-04-12 08:05:49 -050024systemd_system_unit_dir = systemd.get_variable(
Dung Caof6249412021-01-14 03:41:56 +000025 'systemdsystemunitdir',
Patrick Williams6f25d7b2023-04-12 08:05:49 -050026 pkgconfig_define: ['prefix', get_option('prefix')])
Dung Caof6249412021-01-14 03:41:56 +000027
George Liud122cff2023-08-16 16:04:49 +080028fs = import('fs')
29fs.copyfile(
30 'ssifbridge.service',
Dung Caof6249412021-01-14 03:41:56 +000031 install: true,
George Liud122cff2023-08-16 16:04:49 +080032 install_dir: systemd_system_unit_dir
Dung Caof6249412021-01-14 03:41:56 +000033)
34
Dung Caofaf6a6a2020-12-28 04:44:45 +000035executable('ssifbridged','ssifbridged.cpp',
Thang Q. Nguyen20c6f952020-12-09 03:28:44 +000036 dependencies: deps,
37 install: true)