blob: 758f670eb63026f4543f2137f9fcfa530943f546 [file] [log] [blame]
Dung Caofaf6a6a2020-12-28 04:44:45 +00001project('ssifbridge', 'cpp',
Dung Caob62da092021-09-16 09:57:17 +00002 meson_version: '>=0.57.0',
Dung Caofaf6a6a2020-12-28 04:44:45 +00003 default_options: [
4 'buildtype=debugoptimized',
5 'warning_level=3',
6 'werror=true',
Dung Caob62da092021-09-16 09:57:17 +00007 'cpp_std=c++20',
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')
24systemd_system_unit_dir = systemd.get_pkgconfig_variable(
25 'systemdsystemunitdir',
26 define_variable: ['prefix', get_option('prefix')])
27
28configure_file(
29 copy: true,
30 input: 'ssifbridge.service',
31 install: true,
32 install_dir: systemd_system_unit_dir,
33 output: 'ssifbridge.service'
34)
35
Dung Caofaf6a6a2020-12-28 04:44:45 +000036executable('ssifbridged','ssifbridged.cpp',
Thang Q. Nguyen20c6f952020-12-09 03:28:44 +000037 dependencies: deps,
38 install: true)