blob: f28fd1ed7f0e23fda50d3c33f940644d59ae28e1 [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
Ed Tanous8e3f0ad2024-02-14 08:58:32 -080012add_project_arguments(
13 [
14 '-Wno-psabi',
15 '-DBOOST_ASIO_DISABLE_THREADS',
16 '-DBOOST_ASIO_NO_DEPRECATED',
17 ],
18 language: 'cpp'
19)
Thang Q. Nguyen20c6f952020-12-09 03:28:44 +000020
21deps = [dependency('libsystemd', version : '>=221'),
22 dependency('systemd'),
Dung Caofaf6a6a2020-12-28 04:44:45 +000023 dependency('phosphor-logging'),
24 dependency('sdbusplus'),
25 dependency('threads')
Thang Q. Nguyen20c6f952020-12-09 03:28:44 +000026
Dung Caofaf6a6a2020-12-28 04:44:45 +000027]
28
Dung Caof6249412021-01-14 03:41:56 +000029# Configure and install systemd unit files
30systemd = dependency('systemd')
Patrick Williams6f25d7b2023-04-12 08:05:49 -050031systemd_system_unit_dir = systemd.get_variable(
Dung Caof6249412021-01-14 03:41:56 +000032 'systemdsystemunitdir',
Patrick Williams6f25d7b2023-04-12 08:05:49 -050033 pkgconfig_define: ['prefix', get_option('prefix')])
Dung Caof6249412021-01-14 03:41:56 +000034
George Liud122cff2023-08-16 16:04:49 +080035fs = import('fs')
36fs.copyfile(
37 'ssifbridge.service',
Dung Caof6249412021-01-14 03:41:56 +000038 install: true,
George Liud122cff2023-08-16 16:04:49 +080039 install_dir: systemd_system_unit_dir
Dung Caof6249412021-01-14 03:41:56 +000040)
41
Dung Caofaf6a6a2020-12-28 04:44:45 +000042executable('ssifbridged','ssifbridged.cpp',
Thang Q. Nguyen20c6f952020-12-09 03:28:44 +000043 dependencies: deps,
44 install: true)