xref: /openbmc/phosphor-user-manager/phosphor-ldap-config/meson.build (revision 37d26c0ff074f30aebb3b378475f1092dc4367ff)
1ldap_dep = meson.get_compiler('cpp').find_library('ldap', required: true)
2
3phosphor_ldap_conf_deps = [
4    cereal_dep,
5    phosphor_dbus_interfaces_dep,
6    phosphor_logging_dep,
7    sdbusplus_dep,
8    ldap_dep,
9]
10
11phosphor_ldap_conf_lib = static_library(
12    'phosphor_ldap_conf',
13    [
14        'utils.cpp',
15        'ldap_config.cpp',
16        'ldap_config_mgr.cpp',
17        'ldap_mapper_entry.cpp',
18        'ldap_mapper_serialize.cpp'
19    ],
20    include_directories: '..',
21    dependencies: phosphor_ldap_conf_deps,
22)
23
24phosphor_ldap_conf_dep = declare_dependency(
25    link_with: phosphor_ldap_conf_lib,
26    dependencies: phosphor_ldap_conf_deps,
27)
28
29executable(
30    'phosphor-ldap-conf',
31    'main.cpp',
32    include_directories: '..',
33    dependencies: phosphor_ldap_conf_dep,
34    install: true,
35)
36