blob: f9a17936b998577c555b42916478c1a67fef04aa [file] [log] [blame]
Dung Caofaf6a6a2020-12-28 04:44:45 +00001project('ssifbridge', 'cpp',
2 default_options: [
3 'buildtype=debugoptimized',
4 'warning_level=3',
5 'werror=true',
6 'cpp_std=c++17'
7 ],
8 version: '1.0',
Thang Q. Nguyen20c6f952020-12-09 03:28:44 +00009)
10
Dung Caofaf6a6a2020-12-28 04:44:45 +000011add_project_arguments('-Wno-psabi', language: 'cpp')
Thang Q. Nguyen20c6f952020-12-09 03:28:44 +000012
13deps = [dependency('libsystemd', version : '>=221'),
14 dependency('systemd'),
Dung Caofaf6a6a2020-12-28 04:44:45 +000015 dependency('phosphor-logging'),
16 dependency('sdbusplus'),
17 dependency('threads')
Thang Q. Nguyen20c6f952020-12-09 03:28:44 +000018
Dung Caofaf6a6a2020-12-28 04:44:45 +000019]
20
Dung Caof6249412021-01-14 03:41:56 +000021# Configure and install systemd unit files
22systemd = dependency('systemd')
23systemd_system_unit_dir = systemd.get_pkgconfig_variable(
24 'systemdsystemunitdir',
25 define_variable: ['prefix', get_option('prefix')])
26
27configure_file(
28 copy: true,
29 input: 'ssifbridge.service',
30 install: true,
31 install_dir: systemd_system_unit_dir,
32 output: 'ssifbridge.service'
33)
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)