blob: ed9a730b42fd41bf469f9ae7a02d5abeb98d3e39 [file] [log] [blame]
Jason M. Bills3570b9e2023-07-31 12:26:30 -07001project(
2 'peci-pcie',
3 'cpp',
4 version : '1.0',
5 meson_version: '>=1.1.1',
6 default_options: [
7 'b_ndebug=if-release',
8 'cpp_rtti=false',
Patrick Williams65836c72023-08-23 06:31:02 -05009 'cpp_std=c++23',
Jason M. Bills3570b9e2023-07-31 12:26:30 -070010 'warning_level=3',
11 'werror=true',
12 ]
13)
14
Patrick Williamsf0f39a92023-11-29 06:45:01 -060015if(get_option('wait-for-os-standby').allowed())
Jason M. Bills3570b9e2023-07-31 12:26:30 -070016 add_project_arguments('-DWAIT_FOR_OS_STANDBY', language : 'cpp')
17endif
18
Patrick Williamsf0f39a92023-11-29 06:45:01 -060019if(get_option('use-rdendpointcfg').allowed())
Jason M. Bills3570b9e2023-07-31 12:26:30 -070020 add_project_arguments('-DUSE_RDENDPOINTCFG', language : 'cpp')
21endif
22
23sdbusplus = dependency('sdbusplus')
24
25systemd = dependency('systemd', required: true)
26systemd_system_unit_dir = systemd.get_variable(pkgconfig:
27 'systemdsystemunitdir'
28)
29
30peci = dependency('libpeci')
31
32boost = dependency('boost', version: '>=1.82')
33add_project_arguments(
34 [
35 '-DBOOST_ASIO_DISABLE_THREADS',
36 '-DBOOST_ASIO_EXCEPTION_DISABLE',
37 '-DBOOST_ASIO_NO_DEPRECATED',
38 '-DBOOST_NO_RTTI',
39 '-DBOOST_NO_TYPEID',
40 ],
41 language : 'cpp'
42)
43
44executable(
45 'peci-pcie',
46 'src/peci_pcie.cpp',
47 include_directories: include_directories('include'),
48 dependencies: [
49 boost,
50 peci,
51 sdbusplus,
52 ],
53 install: true,
54)
55
56subdir('service_files')