-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
71 lines (64 loc) · 1.85 KB
/
meson.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
project(
'ampere-ipmi-oem',
'cpp',
version: '0.1',
meson_version: '>=1.1.1',
default_options: [
'werror=true',
'warning_level=3',
'cpp_std=c++23',
])
# Project Arguments
cpp = meson.get_compiler('cpp')
add_project_arguments(
cpp.get_supported_arguments([
'-DBOOST_ERROR_CODE_HEADER_ONLY',
'-DBOOST_SYSTEM_NO_DEPRECATED',
'-DBOOST_ALL_NO_LIB',
'-DBOOST_NO_RTTI',
'-DBOOST_NO_TYPEID',
'-DBOOST_ASIO_DISABLE_THREADS',
'-DBOOST_COROUTINES_NO_DEPRECATION_WARNING',
'-Wno-psabi',
'-Wno-pedantic',
]),
language : 'cpp')
if get_option('mac-address-fru-bus') != 0
add_project_arguments(
'-DMAC_ADDRESS_FRU_BUS='+get_option('mac-address-fru-bus').to_string(),
language : 'cpp')
endif
if get_option('mac-address-fru-addr') != 0
add_project_arguments(
'-DMAC_ADDRESS_FRU_ADDR='+get_option('mac-address-fru-addr').to_string(),
language : 'cpp')
endif
root_inc = include_directories('.', 'include')
# Dependencies
phosphor_logging_dep = dependency('phosphor-logging')
sdbusplus_dep = dependency('sdbusplus', required : false, include_type: 'system')
ipmid_dep = dependency('libipmid')
channellayer_dep = cpp.find_library('channellayer', required: true)
userlayer_dep = cpp.find_library('userlayer', required: true)
zampoemcmds_pre = declare_dependency(
include_directories: root_inc,
dependencies: [
phosphor_logging_dep,
sdbusplus_dep,
ipmid_dep,
channellayer_dep,
userlayer_dep,
])
zampoemcmds_lib = library(
'zampoemcmds',
'src/appcommands.cpp',
'src/bootprogress.cpp',
'src/bridgingcommands.cpp',
'src/oemcommands.cpp',
'src/redfishhostinterface.cpp',
implicit_include_directories: false,
dependencies: zampoemcmds_pre,
version: meson.project_version(),
override_options: ['b_lundef=false'],
install: true,
install_dir: get_option('libdir') / 'ipmid-providers')