blob: 933c1d9eedea0f2e83ea665734a282abb53c961b [file] [log] [blame]
Jason M. Bills3570b9e2023-07-31 12:26:30 -07001project(
Patrick Williams97e73032025-02-01 08:38:10 -05002 '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',
9 'cpp_std=c++23',
10 'warning_level=3',
11 'werror=true',
12 ],
Jason M. Bills3570b9e2023-07-31 12:26:30 -070013)
14
Patrick Williams97e73032025-02-01 08:38:10 -050015if (get_option('wait-for-os-standby').allowed())
16 add_project_arguments('-DWAIT_FOR_OS_STANDBY', language: 'cpp')
Jason M. Bills3570b9e2023-07-31 12:26:30 -070017endif
18
Patrick Williams97e73032025-02-01 08:38:10 -050019if (get_option('use-rdendpointcfg').allowed())
20 add_project_arguments('-DUSE_RDENDPOINTCFG', language: 'cpp')
Jason M. Bills3570b9e2023-07-31 12:26:30 -070021endif
22
23sdbusplus = dependency('sdbusplus')
24
25systemd = dependency('systemd', required: true)
Patrick Williams97e73032025-02-01 08:38:10 -050026systemd_system_unit_dir = systemd.get_variable(pkgconfig: 'systemdsystemunitdir')
Jason M. Bills3570b9e2023-07-31 12:26:30 -070027
28peci = dependency('libpeci')
29
30boost = dependency('boost', version: '>=1.82')
31add_project_arguments(
Patrick Williams97e73032025-02-01 08:38:10 -050032 [
33 '-DBOOST_ASIO_DISABLE_THREADS',
34 '-DBOOST_ASIO_EXCEPTION_DISABLE',
35 '-DBOOST_ASIO_NO_DEPRECATED',
36 '-DBOOST_NO_RTTI',
37 '-DBOOST_NO_TYPEID',
38 ],
39 language: 'cpp',
Jason M. Bills3570b9e2023-07-31 12:26:30 -070040)
41
42executable(
Patrick Williams97e73032025-02-01 08:38:10 -050043 'peci-pcie',
44 'src/peci_pcie.cpp',
45 include_directories: include_directories('include'),
46 dependencies: [boost, peci, sdbusplus],
47 install: true,
Jason M. Bills3570b9e2023-07-31 12:26:30 -070048)
49
50subdir('service_files')