xref: /openbmc/smbios-mdr/src/meson.build (revision abdccd3a)
1cpp_args_smbios = boost_args
2if get_option('dimm-dbus').allowed()
3  cpp_args_smbios += ['-DDIMM_DBUS']
4endif
5
6if get_option('assoc-trim-path').allowed()
7  cpp_args_smbios += ['-DASSOC_TRIM_PATH']
8endif
9
10if get_option('dimm-only-locator').allowed()
11  cpp_args_smbios += ['-DDIMM_ONLY_LOCATOR']
12endif
13
14executable(
15  'smbiosmdrv2app',
16  'mdrv2.cpp',
17  'mdrv2_main.cpp',
18  'cpu.cpp',
19  'dimm.cpp',
20  'system.cpp',
21  'pcieslot.cpp',
22  cpp_args: cpp_args_smbios,
23  dependencies: [
24    boost_dep,
25    sdbusplus_dep,
26    phosphor_logging_dep,
27    phosphor_dbus_interfaces_dep,
28  ],
29  implicit_include_directories: false,
30  include_directories: root_inc,
31  install: true,
32)
33
34if get_option('cpuinfo').allowed()
35  cpp = meson.get_compiler('cpp')
36  # i2c-tools provides no pkgconfig so we need to find it manually
37  i2c_dep = cpp.find_library('i2c')
38
39  peci_dep = dependency('libpeci')
40
41  executable(
42    'cpuinfoapp',
43    'cpuinfo_main.cpp',
44    'speed_select.cpp',
45    'sst_mailbox.cpp',
46    'cpuinfo_utils.cpp',
47    cpp_args: boost_args,
48    dependencies: [
49      boost_dep,
50      sdbusplus_dep,
51      phosphor_logging_dep,
52      phosphor_dbus_interfaces_dep,
53      i2c_dep,
54      peci_dep,
55    ],
56    implicit_include_directories: false,
57    include_directories: root_inc,
58    install: true,
59  )
60endif
61
62if get_option('smbios-ipmi-blob').allowed()
63  subdir('smbios-ipmi-blobs')
64endif
65